/external/webrtc/modules/desktop_capture/ |
D | desktop_frame.cc | 25 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 …]
|
D | desktop_and_cursor_composer.cc | 39 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 …]
|
D | desktop_frame.h | 30 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 …]
|
D | cropped_desktop_frame.cc | 23 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()
|
D | cropped_desktop_frame_unittest.cc | 22 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 …]
|
D | shared_desktop_frame.h | 26 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;
|
D | test_utils.cc | 21 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()
|
D | shared_desktop_frame.cc | 23 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()
|
D | desktop_frame_generator.cc | 32 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()
|
D | mouse_cursor.h | 28 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_;
|
D | desktop_frame_generator.h | 29 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;
|
D | test_utils.h | 19 void ClearDesktopFrame(DesktopFrame* frame); 22 bool DesktopFrameDataEquals(const DesktopFrame& left, 23 const DesktopFrame& right);
|
D | screen_capturer_unittest.cc | 127 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()
|
D | screen_capturer_mac_unittest.cc | 35 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()
|
D | desktop_and_cursor_composer_unittest.cc | 61 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_;
|
D | blank_detector_desktop_capturer_wrapper.cc | 72 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()
|
D | blank_detector_desktop_capturer_wrapper.h | 54 std::unique_ptr<DesktopFrame> frame) override; 56 bool IsBlankFrame(const DesktopFrame& frame) const; 59 bool IsBlankPixel(const DesktopFrame& frame, int x, int y) const;
|
D | desktop_capturer_differ_wrapper.cc | 37 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()
|
D | cropped_desktop_frame.h | 27 std::unique_ptr<DesktopFrame> RTC_EXPORT 28 CreateCroppedDesktopFrame(std::unique_ptr<DesktopFrame> frame,
|
D | mock_desktop_capturer_callback.h | 28 std::unique_ptr<DesktopFrame>* frame)); 30 std::unique_ptr<DesktopFrame> frame) final;
|
D | desktop_frame_rotation.h | 34 void RotateDesktopFrame(const DesktopFrame& source, 38 DesktopFrame* target);
|
D | test_utils_unittest.cc | 24 void PaintDesktopFrame(DesktopFrame* frame, in PaintDesktopFrame() 35 class DoubleSizeDesktopFrame : public DesktopFrame { 42 : DesktopFrame( in DoubleSizeDesktopFrame()
|
D | screen_capturer_integration_test.cc | 51 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/ |
D | dxgi_texture.cc | 27 class DxgiDesktopFrame : public DesktopFrame { 30 : DesktopFrame(texture.desktop_size(), in DxgiDesktopFrame() 65 const DesktopFrame& DxgiTexture::AsDesktopFrame() { in AsDesktopFrame()
|
/external/webrtc/modules/desktop_capture/linux/ |
D | x_server_pixel_buffer.cc | 68 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()
|