Home
last modified time | relevance | path

Searched refs:DesktopVector (Results 1 – 18 of 18) sorted by relevance

/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_geometry.h20 class DesktopVector {
22 DesktopVector() : x_(0), y_(0) {} in DesktopVector() function
23 DesktopVector(int32_t x, int32_t y) : x_(x), y_(y) {} in DesktopVector() function
29 bool equals(const DesktopVector& other) const { in equals()
38 DesktopVector add(const DesktopVector& other) const { in add()
39 return DesktopVector(x() + other.x(), y() + other.y()); in add()
41 DesktopVector subtract(const DesktopVector& other) const { in subtract()
42 return DesktopVector(x() - other.x(), y() - other.y()); in subtract()
94 static DesktopRect MakeOriginSize(const DesktopVector& origin, in MakeOriginSize()
108 DesktopVector top_left() const { return DesktopVector(left_, top_); } in top_left()
[all …]
Ddesktop_and_cursor_composer_unittest.cc38 uint32_t GetFakeFramePixelValue(const DesktopVector& p) { in GetFakeFramePixelValue()
45 uint32_t GetFramePixel(const DesktopFrame& frame, const DesktopVector& pos) { in GetFramePixel()
67 *(data++) = GetFakeFramePixelValue(DesktopVector(x, y)); in CreateTestFrame()
97 void SetState(CursorState state, const DesktopVector& pos) { in SetState()
102 void SetHotspot(const DesktopVector& hotspot) { in SetHotspot()
134 DesktopVector position_;
135 DesktopVector hotspot_;
141 const DesktopVector& pos) { in VerifyFrame()
149 DesktopVector p(x, y); in VerifyFrame()
189 fake_cursor_->SetHotspot(DesktopVector()); in TEST_F()
[all …]
Dmouse_cursor.h27 MouseCursor(DesktopFrame* image, const DesktopVector& hotspot);
36 void set_hotspot(const DesktopVector& hotspot ) { hotspot_ = hotspot; } in set_hotspot()
37 const DesktopVector& hotspot() const { return hotspot_; } in hotspot()
41 DesktopVector hotspot_;
Ddesktop_frame.h50 const DesktopVector& dpi() const { return dpi_; } in dpi()
51 void set_dpi(const DesktopVector& dpi) { dpi_ = dpi; } in set_dpi()
67 const DesktopVector& src_pos,
71 uint8_t* GetFrameDataAtPos(const DesktopVector& pos) const;
89 DesktopVector dpi_;
Ddesktop_and_cursor_composer.cc61 const DesktopVector& position);
67 DesktopVector restore_position_;
75 const DesktopVector& position) in DesktopFrameWithCursor()
83 DesktopVector image_pos = position.subtract(cursor.hotspot()); in DesktopFrameWithCursor()
86 DesktopVector target_origin = target_rect.top_left(); in DesktopFrameWithCursor()
102 DesktopVector origin_shift = target_rect.top_left().subtract(target_origin); in DesktopFrameWithCursor()
169 const DesktopVector& position) { in OnMouseCursorPosition()
Ddesktop_and_cursor_composer.h47 const DesktopVector& position) override;
56 DesktopVector cursor_position_;
Ddesktop_frame.cc44 const DesktopVector& src_pos, in CopyPixelsFrom()
53 uint8_t* DesktopFrame::GetFrameDataAtPos(const DesktopVector& pos) const { in GetFrameDataAtPos()
Dmouse_cursor_monitor_unittest.cc36 const DesktopVector& position) override { in OnMouseCursorPosition()
45 DesktopVector position_;
Dmouse_cursor_monitor_x11.cc165 webrtc::DesktopVector(win_x, win_y)); in Capture()
204 DesktopVector hotspot(std::min(img->width, img->xhot), in CaptureCursor()
Dmouse_cursor.cc21 MouseCursor::MouseCursor(DesktopFrame* image, const DesktopVector& hotspot) in MouseCursor()
Dmouse_cursor_monitor.h53 const DesktopVector& position) = 0;
Ddesktop_geometry.cc17 bool DesktopRect::Contains(const DesktopVector& point) const { in Contains()
Dmouse_cursor_monitor_mac.mm103 DesktopVector position(gc_position.x, gc_position.y);
223 position = DesktopVector(round(position.x() * scale),
236 DesktopVector hotspot(
Dmouse_cursor_monitor_win.cc105 DesktopVector position(cursor_info.ptScreenPos.x, cursor_info.ptScreenPos.y); in Capture()
Dscreen_capturer_mac.mm913 DesktopVector translate_vector =
914 DesktopVector().subtract(screen_pixel_bounds_.top_left());
963 frame->set_dpi(DesktopVector(kStandardDPI * dip_to_pixel_scale_,
/external/webrtc/webrtc/modules/desktop_capture/win/
Dcursor.cc245 image.release(), DesktopVector(hotspot_x, hotspot_y)); in CreateMouseCursorFromHCursor()
Dscreen_capturer_win_gdi.cc125 frame->set_dpi(DesktopVector( in Capture()
Dscreen_capturer_win_magnifier.cc161 frame->set_dpi(DesktopVector(GetDeviceCaps(desktop_dc_, LOGPIXELSX), in Capture()