Home
last modified time | relevance | path

Searched refs:DesktopFrame (Results 1 – 25 of 75) sorted by relevance

123

/external/webrtc/modules/desktop_capture/
Ddesktop_frame.cc25 DesktopFrame::DesktopFrame(DesktopSize size, in DesktopFrame() function in webrtc::DesktopFrame
39 DesktopFrame::~DesktopFrame() = default;
41 void DesktopFrame::CopyPixelsFrom(const uint8_t* src_buffer, in CopyPixelsFrom()
48 memcpy(dest, src_buffer, DesktopFrame::kBytesPerPixel * dest_rect.width()); in CopyPixelsFrom()
54 void DesktopFrame::CopyPixelsFrom(const DesktopFrame& src_frame, in CopyPixelsFrom()
65 bool DesktopFrame::CopyIntersectingPixelsFrom(const DesktopFrame& src_frame, in CopyIntersectingPixelsFrom()
106 DesktopRect DesktopFrame::rect() const { in rect()
113 float DesktopFrame::scale_factor() const { in scale_factor()
126 uint8_t* DesktopFrame::GetFrameDataAtPos(const DesktopVector& pos) const { in GetFrameDataAtPos()
127 return data() + stride() * pos.y() + DesktopFrame::kBytesPerPixel * pos.x(); in GetFrameDataAtPos()
[all …]
Ddesktop_and_cursor_composer.cc39 uint32_t base_alpha = 255 - src[x * DesktopFrame::kBytesPerPixel + 3]; in AlphaBlend()
43 memcpy(dest + x * DesktopFrame::kBytesPerPixel, in AlphaBlend()
44 src + x * DesktopFrame::kBytesPerPixel, in AlphaBlend()
45 DesktopFrame::kBytesPerPixel); in AlphaBlend()
47 dest[x * DesktopFrame::kBytesPerPixel] = in AlphaBlend()
48 dest[x * DesktopFrame::kBytesPerPixel] * base_alpha / 255 + in AlphaBlend()
49 src[x * DesktopFrame::kBytesPerPixel]; in AlphaBlend()
50 dest[x * DesktopFrame::kBytesPerPixel + 1] = in AlphaBlend()
51 dest[x * DesktopFrame::kBytesPerPixel + 1] * base_alpha / 255 + in AlphaBlend()
52 src[x * DesktopFrame::kBytesPerPixel + 1]; in AlphaBlend()
[all …]
Ddesktop_frame.h30 class RTC_EXPORT DesktopFrame {
35 virtual ~DesktopFrame();
84 void CopyPixelsFrom(const DesktopFrame& src_frame,
94 bool CopyIntersectingPixelsFrom(const DesktopFrame& src_frame,
112 void CopyFrameInfoFrom(const DesktopFrame& other);
123 void MoveFrameInfoFrom(DesktopFrame* other);
135 DesktopFrame(DesktopSize size,
157 RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrame);
161 class RTC_EXPORT BasicDesktopFrame : public DesktopFrame {
170 static DesktopFrame* CopyOf(const DesktopFrame& frame);
[all …]
Dcropped_desktop_frame.cc23 class CroppedDesktopFrame : public DesktopFrame {
25 CroppedDesktopFrame(std::unique_ptr<DesktopFrame> frame,
29 const std::unique_ptr<DesktopFrame> frame_;
34 std::unique_ptr<DesktopFrame> CreateCroppedDesktopFrame( in CreateCroppedDesktopFrame()
35 std::unique_ptr<DesktopFrame> frame, in CreateCroppedDesktopFrame()
47 return std::unique_ptr<DesktopFrame>( in CreateCroppedDesktopFrame()
51 CroppedDesktopFrame::CroppedDesktopFrame(std::unique_ptr<DesktopFrame> frame, in CroppedDesktopFrame()
53 : DesktopFrame(rect.size(), in CroppedDesktopFrame()
Dcropped_desktop_frame_unittest.cc22 std::unique_ptr<DesktopFrame> CreateTestFrame() { in CreateTestFrame()
27 std::unique_ptr<DesktopFrame> original = CreateTestFrame(); in TEST()
29 DesktopFrame* raw_original = original.get(); in TEST()
30 std::unique_ptr<DesktopFrame> cropped = CreateCroppedDesktopFrame( in TEST()
41 std::unique_ptr<DesktopFrame> frame = CreateTestFrame(); in TEST()
49 std::unique_ptr<DesktopFrame> cropped = CreateCroppedDesktopFrame( in TEST()
58 std::unique_ptr<DesktopFrame> frame = CreateTestFrame(); in TEST()
69 std::unique_ptr<DesktopFrame> frame = CreateTestFrame(); in TEST()
72 std::unique_ptr<DesktopFrame> cropped = CreateCroppedDesktopFrame( in TEST()
88 std::unique_ptr<DesktopFrame> frame = CreateTestFrame(); in TEST()
[all …]
Dshared_desktop_frame.h26 class RTC_EXPORT SharedDesktopFrame : public DesktopFrame {
31 std::unique_ptr<DesktopFrame> desktop_frame);
35 static SharedDesktopFrame* Wrap(DesktopFrame* desktop_frame);
41 DesktopFrame* GetUnderlyingFrame();
54 typedef rtc::RefCountedObject<std::unique_ptr<DesktopFrame>> Core;
Dtest_utils.cc21 void ClearDesktopFrame(DesktopFrame* frame) { in ClearDesktopFrame()
25 memset(data, 0, frame->size().width() * DesktopFrame::kBytesPerPixel); in ClearDesktopFrame()
30 bool DesktopFrameDataEquals(const DesktopFrame& left, in DesktopFrameDataEquals()
31 const DesktopFrame& right) { in DesktopFrameDataEquals()
40 DesktopFrame::kBytesPerPixel * left.size().width()) != 0) { in DesktopFrameDataEquals()
Dshared_desktop_frame.cc23 std::unique_ptr<DesktopFrame> desktop_frame) { in Wrap()
28 SharedDesktopFrame* SharedDesktopFrame::Wrap(DesktopFrame* desktop_frame) { in Wrap()
29 return Wrap(std::unique_ptr<DesktopFrame>(desktop_frame)).release(); in Wrap()
32 DesktopFrame* SharedDesktopFrame::GetUnderlyingFrame() { in GetUnderlyingFrame()
51 : DesktopFrame((*core)->size(), in SharedDesktopFrame()
Ddesktop_frame_generator.cc32 void SetUpdatedRegion(DesktopFrame* frame, in SetUpdatedRegion()
65 void PaintRect(DesktopFrame* frame, DesktopRect rect, RgbaColor rgba_color) { in PaintRect()
66 static_assert(DesktopFrame::kBytesPerPixel == sizeof(uint32_t), in PaintRect()
82 void PaintRegion(DesktopFrame* frame, in PaintRegion()
109 std::unique_ptr<DesktopFrame> PainterDesktopFrameGenerator::GetNextFrame( in GetNextFrame()
115 std::unique_ptr<DesktopFrame> frame = std::unique_ptr<DesktopFrame>( in GetNextFrame()
175 bool BlackWhiteDesktopFramePainter::Paint(DesktopFrame* frame, in Paint()
Dmouse_cursor.h28 MouseCursor(DesktopFrame* image, const DesktopVector& hotspot);
34 void set_image(DesktopFrame* image) { image_.reset(image); } in set_image()
35 const DesktopFrame* image() const { return image_.get(); } in image()
41 std::unique_ptr<DesktopFrame> image_;
Ddesktop_frame_generator.h29 virtual std::unique_ptr<DesktopFrame> GetNextFrame(
40 virtual bool Paint(DesktopFrame* frame, DesktopRegion* updated_region) = 0;
51 std::unique_ptr<DesktopFrame> GetNextFrame(
113 bool Paint(DesktopFrame* frame, DesktopRegion* updated_region) override;
Dtest_utils.h19 void ClearDesktopFrame(DesktopFrame* frame);
22 bool DesktopFrameDataEquals(const DesktopFrame& left,
23 const DesktopFrame& right);
Dscreen_capturer_unittest.cc127 std::unique_ptr<DesktopFrame> frame; in TEST_F()
139 frame->size().width() * DesktopFrame::kBytesPerPixel); in TEST_F()
154 std::unique_ptr<DesktopFrame> frame; in TEST_F()
171 std::unique_ptr<DesktopFrame> frame; in TEST_F()
186 std::unique_ptr<DesktopFrame> frame; in TEST_F()
201 std::unique_ptr<DesktopFrame> frame; in TEST_F()
Dscreen_capturer_mac_unittest.cc35 std::unique_ptr<DesktopFrame>* frame);
40 std::unique_ptr<DesktopFrame>* frame);
54 std::unique_ptr<DesktopFrame>* frame) { in CaptureDoneCallback1()
67 std::unique_ptr<DesktopFrame>* frame) { in CaptureDoneCallback2()
Ddesktop_and_cursor_composer_unittest.cc61 uint32_t GetFramePixel(const DesktopFrame& frame, const DesktopVector& pos) { in GetFramePixel()
76 DesktopFrame* CreateTestFrame() { in CreateTestFrame()
77 DesktopFrame* frame = in CreateTestFrame()
89 std::unique_ptr<DesktopFrame> image( in CreateTestCursor()
114 void SetNextFrame(std::unique_ptr<DesktopFrame> next_frame) { in SetNextFrame()
125 std::unique_ptr<DesktopFrame> next_frame_;
161 void VerifyFrame(const DesktopFrame& frame, in VerifyFrame()
197 std::unique_ptr<DesktopFrame> frame) override { in OnCaptureResult()
207 std::unique_ptr<DesktopFrame> frame_;
Dblank_detector_desktop_capturer_wrapper.cc72 std::unique_ptr<DesktopFrame> frame) { in OnCaptureResult()
96 std::unique_ptr<DesktopFrame>()); in OnCaptureResult()
100 const DesktopFrame& frame) const { in IsBlankFrame()
116 const DesktopFrame& frame, in IsBlankPixel()
Dblank_detector_desktop_capturer_wrapper.h54 std::unique_ptr<DesktopFrame> frame) override;
56 bool IsBlankFrame(const DesktopFrame& frame) const;
59 bool IsBlankPixel(const DesktopFrame& frame, int x, int y) const;
Ddesktop_capturer_differ_wrapper.cc37 const int width_bytes = width * DesktopFrame::kBytesPerPixel; in PartialBlockDifference()
60 const int block_x_offset = kBlockSize * DesktopFrame::kBytesPerPixel; in CompareRow()
114 void CompareFrames(const DesktopFrame& old_frame, in CompareFrames()
115 const DesktopFrame& new_frame, in CompareFrames()
191 std::unique_ptr<DesktopFrame> input_frame) { in OnCaptureResult()
Dcropped_desktop_frame.h27 std::unique_ptr<DesktopFrame> RTC_EXPORT
28 CreateCroppedDesktopFrame(std::unique_ptr<DesktopFrame> frame,
Dmock_desktop_capturer_callback.h28 std::unique_ptr<DesktopFrame>* frame));
30 std::unique_ptr<DesktopFrame> frame) final;
Ddesktop_frame_rotation.h34 void RotateDesktopFrame(const DesktopFrame& source,
38 DesktopFrame* target);
Dtest_utils_unittest.cc24 void PaintDesktopFrame(DesktopFrame* frame, in PaintDesktopFrame()
35 class DoubleSizeDesktopFrame : public DesktopFrame {
42 : DesktopFrame( in DoubleSizeDesktopFrame()
Dscreen_capturer_integration_test.cc51 bool ArePixelsColoredBy(const DesktopFrame& frame, in ArePixelsColoredBy()
72 column += DesktopFrame::kBytesPerPixel; in ArePixelsColoredBy()
208 std::unique_ptr<DesktopFrame> frame = CaptureFrame(capturers[j]); in TestCaptureOneFrame()
266 std::unique_ptr<DesktopFrame> CaptureFrame(DesktopCapturer* capturer) { in CaptureFrame()
268 std::unique_ptr<DesktopFrame> frame; in CaptureFrame()
/external/webrtc/modules/desktop_capture/win/
Ddxgi_texture.cc27 class DxgiDesktopFrame : public DesktopFrame {
30 : DesktopFrame(texture.desktop_size(), in DxgiDesktopFrame()
65 const DesktopFrame& DxgiTexture::AsDesktopFrame() { in AsDesktopFrame()
/external/webrtc/modules/desktop_capture/linux/
Dx_server_pixel_buffer.cc68 DesktopFrame* frame) { in FastBlit()
77 dst_pos += dst_x * DesktopFrame::kBytesPerPixel; in FastBlit()
80 int row_bytes = rect.width() * DesktopFrame::kBytesPerPixel; in FastBlit()
91 DesktopFrame* frame) { in SlowBlit()
111 dst_pos += dst_x * DesktopFrame::kBytesPerPixel; in SlowBlit()
335 DesktopFrame* frame) { in CaptureRect()

123