Home
last modified time | relevance | path

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

12

/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_and_cursor_composer.cc30 uint32_t base_alpha = 255 - src[x * DesktopFrame::kBytesPerPixel + 3]; in AlphaBlend()
34 memcpy(dest + x * DesktopFrame::kBytesPerPixel, in AlphaBlend()
35 src + x * DesktopFrame::kBytesPerPixel, in AlphaBlend()
36 DesktopFrame::kBytesPerPixel); in AlphaBlend()
38 dest[x * DesktopFrame::kBytesPerPixel] = in AlphaBlend()
39 dest[x * DesktopFrame::kBytesPerPixel] * base_alpha / 255 + in AlphaBlend()
40 src[x * DesktopFrame::kBytesPerPixel]; in AlphaBlend()
41 dest[x * DesktopFrame::kBytesPerPixel + 1] = in AlphaBlend()
42 dest[x * DesktopFrame::kBytesPerPixel + 1] * base_alpha / 255 + in AlphaBlend()
43 src[x * DesktopFrame::kBytesPerPixel + 1]; in AlphaBlend()
[all …]
Ddesktop_frame.cc18 DesktopFrame::DesktopFrame(DesktopSize size, in DesktopFrame() function in webrtc::DesktopFrame
29 DesktopFrame::~DesktopFrame() {} in ~DesktopFrame()
31 void DesktopFrame::CopyPixelsFrom(uint8_t* src_buffer, int src_stride, in CopyPixelsFrom()
37 memcpy(dest, src_buffer, DesktopFrame::kBytesPerPixel * dest_rect.width()); in CopyPixelsFrom()
43 void DesktopFrame::CopyPixelsFrom(const DesktopFrame& src_frame, in CopyPixelsFrom()
53 uint8_t* DesktopFrame::GetFrameDataAtPos(const DesktopVector& pos) const { in GetFrameDataAtPos()
54 return data() + stride() * pos.y() + DesktopFrame::kBytesPerPixel * pos.x(); in GetFrameDataAtPos()
58 : DesktopFrame(size, kBytesPerPixel * size.width(), in BasicDesktopFrame()
67 DesktopFrame* BasicDesktopFrame::CopyOf(const DesktopFrame& frame) { in CopyOf()
68 DesktopFrame* result = new BasicDesktopFrame(frame.size()); in CopyOf()
[all …]
Ddesktop_frame.h23 class DesktopFrame {
28 virtual ~DesktopFrame();
66 void CopyPixelsFrom(const DesktopFrame& src_frame,
74 DesktopFrame(DesktopSize size,
94 RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrame);
98 class BasicDesktopFrame : public DesktopFrame {
104 static DesktopFrame* CopyOf(const DesktopFrame& frame);
111 class SharedMemoryDesktopFrame : public DesktopFrame {
Dcropped_desktop_frame.cc16 class CroppedDesktopFrame : public DesktopFrame {
18 CroppedDesktopFrame(DesktopFrame* frame, const DesktopRect& rect);
21 rtc::scoped_ptr<DesktopFrame> frame_;
26 DesktopFrame*
27 CreateCroppedDesktopFrame(DesktopFrame* frame, const DesktopRect& rect) { in CreateCroppedDesktopFrame()
36 CroppedDesktopFrame::CroppedDesktopFrame(DesktopFrame* frame, in CroppedDesktopFrame()
38 : DesktopFrame(rect.size(), in CroppedDesktopFrame()
Dshared_desktop_frame.cc20 Core(DesktopFrame* frame) : frame_(frame) {} in Core()
22 DesktopFrame* frame() { return frame_.get(); } in frame()
42 rtc::scoped_ptr<DesktopFrame> frame_;
51 DesktopFrame* desktop_frame) { in Wrap()
56 DesktopFrame* SharedDesktopFrame::GetUnderlyingFrame() { in GetUnderlyingFrame()
73 : DesktopFrame(core->frame()->size(), in SharedDesktopFrame()
Dmouse_cursor.h20 class DesktopFrame; variable
27 MouseCursor(DesktopFrame* image, const DesktopVector& hotspot);
33 void set_image(DesktopFrame* image) { image_.reset(image); } in set_image()
34 const DesktopFrame* image() const { return image_.get(); } in image()
40 rtc::scoped_ptr<DesktopFrame> image_;
Ddesktop_and_cursor_composer_unittest.cc45 uint32_t GetFramePixel(const DesktopFrame& frame, const DesktopVector& pos) { in GetFramePixel()
47 pos.x() * DesktopFrame::kBytesPerPixel); in GetFramePixel()
61 DesktopFrame* CreateTestFrame() { in CreateTestFrame()
62 DesktopFrame* frame = in CreateTestFrame()
83 void SetNextFrame(DesktopFrame* next_frame) { in SetNextFrame()
90 rtc::scoped_ptr<DesktopFrame> next_frame_;
112 rtc::scoped_ptr<DesktopFrame> image( in Capture()
139 void VerifyFrame(const DesktopFrame& frame, in VerifyFrame()
173 void OnCaptureCompleted(DesktopFrame* frame) override { frame_.reset(frame); } in OnCaptureCompleted()
181 rtc::scoped_ptr<DesktopFrame> frame_;
[all …]
Dscreen_capturer_mac_unittest.cc34 void CaptureDoneCallback1(DesktopFrame* frame);
38 void CaptureDoneCallback2(DesktopFrame* frame);
48 DesktopFrame* frame) { in CaptureDoneCallback1()
49 rtc::scoped_ptr<DesktopFrame> owned_frame(frame); in CaptureDoneCallback1()
60 DesktopFrame* frame) { in CaptureDoneCallback2()
61 rtc::scoped_ptr<DesktopFrame> owned_frame(frame); in CaptureDoneCallback2()
Dscreen_capturer_x11.cc66 DesktopFrame* CaptureScreen();
256 rtc::scoped_ptr<DesktopFrame> frame( in Capture()
262 DesktopFrame* frame = queue_.current_frame(); in Capture()
269 DesktopFrame::kBytesPerPixel, in Capture()
273 DesktopFrame* result = CaptureScreen(); in Capture()
309 DesktopFrame* ScreenCapturerLinux::CaptureScreen() { in CaptureScreen()
310 DesktopFrame* frame = queue_.current_frame()->Share(); in CaptureScreen()
401 DesktopFrame* current = queue_.current_frame(); in SynchronizeFrame()
402 DesktopFrame* last = queue_.previous_frame(); in SynchronizeFrame()
Dshared_desktop_frame.h21 class SharedDesktopFrame : public DesktopFrame {
25 static SharedDesktopFrame* Wrap(DesktopFrame* desktop_frame);
28 DesktopFrame* GetUnderlyingFrame();
Dscreen_capturer_unittest.cc76 DesktopFrame* frame = NULL; in TEST_F()
91 frame->size().width() * DesktopFrame::kBytesPerPixel); in TEST_F()
108 DesktopFrame* frame = NULL; in TEST_F()
131 DesktopFrame* frame = NULL; in TEST_F()
Dcropped_desktop_frame.h20 DesktopFrame* CreateCroppedDesktopFrame(DesktopFrame* frame,
Dcropping_window_capturer.cc76 void CroppingWindowCapturer::OnCaptureCompleted(DesktopFrame* frame) { in OnCaptureCompleted()
77 rtc::scoped_ptr<DesktopFrame> screen_frame(frame); in OnCaptureCompleted()
98 rtc::scoped_ptr<DesktopFrame> window_frame( in OnCaptureCompleted()
Dscreen_capture_frame_queue.h19 class DesktopFrame; variable
48 void ReplaceCurrentFrame(DesktopFrame* frame);
Ddesktop_capturer.h20 class DesktopFrame; variable
38 virtual void OnCaptureCompleted(DesktopFrame* frame) = 0;
Dscreen_capturer_mac.mm206 void GlBlitFast(const DesktopFrame& frame,
208 void GlBlitSlow(const DesktopFrame& frame);
209 void CgBlitPreLion(const DesktopFrame& frame,
212 bool CgBlitPostLion(const DesktopFrame& frame,
234 DesktopFrame* CreateFrame();
286 // DesktopFrame wrapper that flips wrapped frame upside down by inverting
288 class InvertedDesktopFrame : public DesktopFrame {
291 InvertedDesktopFrame(DesktopFrame* frame)
292 : DesktopFrame(
304 rtc::scoped_ptr<DesktopFrame> original_frame_;
[all …]
Dwindow_capturer_unittest.cc35 void OnCaptureCompleted(DesktopFrame* frame) override { frame_.reset(frame); } in OnCaptureCompleted()
39 rtc::scoped_ptr<DesktopFrame> frame_;
Dmouse_cursor_monitor_mac.mm244 if (CGImageGetBitsPerPixel(cg_image) != DesktopFrame::kBytesPerPixel * 8 ||
246 static_cast<size_t>(DesktopFrame::kBytesPerPixel * size.width()) ||
271 rtc::scoped_ptr<DesktopFrame> image(
274 size.width() * size.height() * DesktopFrame::kBytesPerPixel);
Dscreen_capture_frame_queue.cc35 void ScreenCaptureFrameQueue::ReplaceCurrentFrame(DesktopFrame* frame) { in ReplaceCurrentFrame()
Ddesktop_frame_win.h24 class DesktopFrameWin : public DesktopFrame {
/external/webrtc/webrtc/modules/desktop_capture/x11/
Dx_server_pixel_buffer.h23 class DesktopFrame; variable
57 void CaptureRect(const DesktopRect& rect, DesktopFrame* frame);
67 DesktopFrame* frame);
70 DesktopFrame* frame);
Dx_server_pixel_buffer.cc237 DesktopFrame* frame) { in CaptureRect()
270 DesktopFrame* frame) { in FastBlit()
276 dst_pos += dst_x * DesktopFrame::kBytesPerPixel; in FastBlit()
279 int row_bytes = rect.width() * DesktopFrame::kBytesPerPixel; in FastBlit()
289 DesktopFrame* frame) { in SlowBlit()
306 dst_pos += dst_x * DesktopFrame::kBytesPerPixel; in SlowBlit()
/external/webrtc/webrtc/modules/desktop_capture/win/
Dscreen_capturer_win_magnifier.cc132 const DesktopFrame* current_frame = queue_.current_frame(); in Capture()
133 const DesktopFrame* last_frame = queue_.previous_frame(); in Capture()
142 DesktopFrame::kBytesPerPixel, in Capture()
160 DesktopFrame* frame = queue_.current_frame()->Share(); in Capture()
390 DesktopFrame* current_frame = queue_.current_frame(); in OnCaptured()
399 captured_bytes_per_pixel != DesktopFrame::kBytesPerPixel) { in OnCaptured()
426 size.width() * size.height() * DesktopFrame::kBytesPerPixel; in CreateCurrentFrameIfNecessary()
429 rtc::scoped_ptr<DesktopFrame> buffer; in CreateCurrentFrameIfNecessary()
432 size, size.width() * DesktopFrame::kBytesPerPixel, shared_memory)); in CreateCurrentFrameIfNecessary()
Dscreen_capturer_win_gdi.cc95 const DesktopFrame* current_frame = queue_.current_frame(); in Capture()
96 const DesktopFrame* last_frame = queue_.previous_frame(); in Capture()
106 DesktopFrame::kBytesPerPixel, in Capture()
124 DesktopFrame* frame = queue_.current_frame()->Share(); in Capture()
241 DesktopFrame::kBytesPerPixel; in CaptureImage()
244 rtc::scoped_ptr<DesktopFrame> buffer( in CaptureImage()
Dcursor.cc45 const int kBytesPerPixel = DesktopFrame::kBytesPerPixel;
165 rtc::scoped_ptr<DesktopFrame> image( in CreateMouseCursorFromHCursor()

12