/external/webrtc/modules/desktop_capture/ |
D | desktop_region_unittest.cc | 29 const DesktopRect rects[], in CompareRegion() 56 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 0, 0); in TEST() 64 DesktopRect rect = DesktopRect::MakeXYWH(1, 2, 3, 4); in TEST() 73 DesktopRect rects[4]; in TEST() 75 {1, {DesktopRect::MakeXYWH(10, 10, 10, 10)}}, in TEST() 77 {DesktopRect::MakeXYWH(10, 10, 10, 10), in TEST() 78 DesktopRect::MakeXYWH(30, 10, 10, 15)}}, in TEST() 80 {DesktopRect::MakeXYWH(10, 10, 10, 10), in TEST() 81 DesktopRect::MakeXYWH(10, 30, 10, 5)}}, in TEST() 83 {DesktopRect::MakeXYWH(10, 10, 10, 9), in TEST() [all …]
|
D | desktop_frame_unittest.cc | 24 std::unique_ptr<DesktopFrame> CreateTestFrame(DesktopRect rect, in CreateTestFrame() 35 DesktopRect dest_frame_rect; 36 DesktopRect src_frame_rect; 39 DesktopRect expected_overlap_rect; 52 DesktopRect relative_expected_overlap_rect = test.expected_overlap_rect; in RunTest() 93 DesktopRect::MakeXYWH(0, 0, 2, 2), in TEST() 94 DesktopRect::MakeXYWH(0, 0, 2, 2), in TEST() 96 DesktopRect::MakeXYWH(0, 0, 2, 2)}, in TEST() 99 DesktopRect::MakeXYWH(-1, -1, 2, 2), in TEST() 100 DesktopRect::MakeXYWH(-1, -1, 2, 2), in TEST() [all …]
|
D | desktop_geometry_unittest.cc | 18 DesktopRect rect = DesktopRect::MakeLTRB(1, 1, 2, 2); in TEST() 19 rect.UnionWith(DesktopRect::MakeLTRB(-2, -2, -1, -1)); in TEST() 20 ASSERT_TRUE(rect.equals(DesktopRect::MakeLTRB(-2, -2, 2, 2))); in TEST() 24 DesktopRect rect = DesktopRect::MakeWH(1, 1); in TEST() 25 rect.UnionWith(DesktopRect()); in TEST() 26 ASSERT_TRUE(rect.equals(DesktopRect::MakeWH(1, 1))); in TEST() 28 rect = DesktopRect::MakeXYWH(1, 1, 2, 2); in TEST() 29 rect.UnionWith(DesktopRect()); in TEST() 30 ASSERT_TRUE(rect.equals(DesktopRect::MakeXYWH(1, 1, 2, 2))); in TEST() 32 rect = DesktopRect::MakeXYWH(1, 1, 2, 2); in TEST() [all …]
|
D | screen_capturer_helper_unittest.cc | 23 DesktopRegion region(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F() 35 region.SetRect(DesktopRect::MakeXYWH(1, 2, 3, 4)); in TEST_F() 38 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4)).Equals(region)); in TEST_F() 41 DesktopRegion(DesktopRect::MakeXYWH(1, 2, 3, 4))); in TEST_F() 43 DesktopRegion(DesktopRect::MakeXYWH(4, 2, 3, 4))); in TEST_F() 45 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(1, 2, 6, 4)).Equals(region)); in TEST_F() 52 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeWH(12, 34)).Equals(region)); in TEST_F() 69 DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1))); in TEST_F() 71 EXPECT_TRUE(DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1)).Equals(region)); in TEST_F() 75 DesktopRegion(DesktopRect::MakeXYWH(7, 7, 1, 1))); in TEST_F() [all …]
|
D | desktop_frame_rotation_unittest.cc | 52 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 68 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 83 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 99 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 116 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 133 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 148 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 165 RotateDesktopFrame(frame, DesktopRect::MakeSize(frame.size()), in TEST() 190 RotateDesktopFrame(frame, DesktopRect::MakeXYWH(1, 1, 3, 1), in TEST() 205 RotateDesktopFrame(frame, DesktopRect::MakeXYWH(1, 0, 3, 2), in TEST() [all …]
|
D | desktop_frame_rotation.cc | 35 DesktopRect RotateAndOffsetRect(DesktopRect rect, in RotateAndOffsetRect() 39 DesktopRect result = RotateRect(rect, size, rotation); in RotateAndOffsetRect() 74 DesktopRect RotateRect(DesktopRect rect, DesktopSize size, Rotation rotation) { in RotateRect() 79 return DesktopRect::MakeXYWH(size.height() - rect.bottom(), rect.left(), in RotateRect() 82 return DesktopRect::MakeXYWH(size.width() - rect.right(), in RotateRect() 86 return DesktopRect::MakeXYWH(rect.top(), size.width() - rect.right(), in RotateRect() 90 return DesktopRect(); in RotateRect() 94 const DesktopRect& source_rect, in RotateDesktopFrame() 99 RTC_DCHECK(DesktopRect::MakeSize(source.size()).ContainsRect(source_rect)); in RotateDesktopFrame() 101 const DesktopRect target_rect = in RotateDesktopFrame() [all …]
|
D | desktop_geometry.h | 79 class RTC_EXPORT DesktopRect { 81 static DesktopRect MakeSize(const DesktopSize& size) { in MakeSize() 82 return DesktopRect(0, 0, size.width(), size.height()); in MakeSize() 84 static DesktopRect MakeWH(int32_t width, int32_t height) { in MakeWH() 85 return DesktopRect(0, 0, width, height); in MakeWH() 87 static DesktopRect MakeXYWH(int32_t x, in MakeXYWH() 91 return DesktopRect(x, y, x + width, y + height); in MakeXYWH() 93 static DesktopRect MakeLTRB(int32_t left, in MakeLTRB() 97 return DesktopRect(left, top, right, bottom); in MakeLTRB() 99 static DesktopRect MakeOriginSize(const DesktopVector& origin, in MakeOriginSize() [all …]
|
D | desktop_geometry.cc | 18 bool DesktopRect::Contains(const DesktopVector& point) const { in Contains() 23 bool DesktopRect::ContainsRect(const DesktopRect& rect) const { in ContainsRect() 28 void DesktopRect::IntersectWith(const DesktopRect& rect) { in IntersectWith() 41 void DesktopRect::UnionWith(const DesktopRect& rect) { in UnionWith() 57 void DesktopRect::Translate(int32_t dx, int32_t dy) { in Translate() 64 void DesktopRect::Extend(int32_t left_offset, in Extend() 74 void DesktopRect::Scale(double horizontal, double vertical) { in Scale()
|
D | desktop_region.h | 78 const DesktopRect& rect() const { return rect_; } in rect() 91 DesktopRect rect_; 95 explicit DesktopRegion(const DesktopRect& rect); 96 DesktopRegion(const DesktopRect* rects, int count); 110 void SetRect(const DesktopRect& rect); 113 void AddRect(const DesktopRect& rect); 114 void AddRects(const DesktopRect* rects, int count); 124 void IntersectWith(const DesktopRect& rect); 130 void Subtract(const DesktopRect& rect);
|
D | desktop_capturer_differ_wrapper_unittest.cc | 38 const T<DesktopRect, Rect...>& rects) { in AssertUpdatedRegionIs() argument 53 const T<DesktopRect, Rect...>& rects) { in AssertUpdatedRegionCovers() argument 117 const T<DesktopRect, Rect...>& updated_region, in ExecuteDifferWrapperCase() argument 179 {DesktopRect::MakeSize((*frame)->size())}); in ExecuteDifferWrapperTest() 184 {DesktopRect::MakeLTRB(100, 100, 200, 200), in ExecuteDifferWrapperTest() 185 DesktopRect::MakeLTRB(300, 300, 400, 400)}, in ExecuteDifferWrapperTest() 191 {DesktopRect::MakeLTRB(0, 0, 40, 40), in ExecuteDifferWrapperTest() 192 DesktopRect::MakeLTRB(0, frame_generator.size()->height() - 40, 40, in ExecuteDifferWrapperTest() 194 DesktopRect::MakeLTRB(frame_generator.size()->width() - 40, 0, in ExecuteDifferWrapperTest() 196 DesktopRect::MakeLTRB(frame_generator.size()->width() - 40, in ExecuteDifferWrapperTest() [all …]
|
D | mouse_cursor_monitor_win.cc | 51 DesktopRect GetScreenRect(); 145 DesktopRect original_rect; in Capture() 146 DesktopRect cropped_rect; in Capture() 162 DesktopRect rect = GetScreenRect(); in Capture() 171 DesktopRect MouseCursorMonitorWin::GetScreenRect() { in GetScreenRect() 174 return DesktopRect::MakeXYWH(GetSystemMetrics(SM_XVIRTUALSCREEN), in GetScreenRect() 183 return DesktopRect(); in GetScreenRect() 191 return DesktopRect(); in GetScreenRect() 193 return DesktopRect::MakeXYWH( in GetScreenRect()
|
D | screen_drawer_win.cc | 52 DesktopRect GetScreenRect() { in GetScreenRect() 54 DesktopRect rect = DesktopRect::MakeWH(GetDeviceCaps(hdc, HORZRES), in GetScreenRect() 60 HWND CreateDrawerWindow(DesktopRect rect) { in CreateDrawerWindow() 80 DesktopRect DrawableRegion() override; 81 void DrawRectangle(DesktopRect rect, RgbaColor color) override; 98 const DesktopRect rect_; 124 DesktopRect ScreenDrawerWin::DrawableRegion() { in DrawableRegion() 128 void ScreenDrawerWin::DrawRectangle(DesktopRect rect, RgbaColor color) { in DrawRectangle()
|
D | cropping_window_capturer_win.cc | 28 DesktopRect selected_window_rect, in TopWindowVerifierContext() 139 DesktopRect GetWindowRectInVirtualScreen() override; 147 DesktopRect window_region_rect_; 208 DesktopRect content_rect; in ShouldUseScreenCapturer() 213 DesktopRect region_rect; in ShouldUseScreenCapturer() 258 DesktopRect CroppingWindowCapturerWin::GetWindowRectInVirtualScreen() { in GetWindowRectInVirtualScreen() 261 DesktopRect window_rect; in GetWindowRectInVirtualScreen() 271 DesktopRect screen_rect(GetFullscreenRect()); in GetWindowRectInVirtualScreen()
|
D | cropped_desktop_frame_unittest.cc | 31 std::move(original), DesktopRect::MakeWH(10, 20)); in TEST() 37 DesktopRect::MakeWH(11, 10))); in TEST() 45 std::move(frame), DesktopRect::MakeLTRB(101, 203, 109, 218))); in TEST() 50 CreateTestFrame(), DesktopRect::MakeLTRB(1, 2, 9, 19)); in TEST() 61 DesktopRect::MakeLTRB(1, 3, 9, 18)); in TEST() 73 std::move(frame), DesktopRect::MakeOriginSize(frame_origin, frame_size)); in TEST() 96 DesktopRect::MakeLTRB(2, 2, 8, 18)); in TEST()
|
D | desktop_and_cursor_composer.cc | 71 const DesktopRect& previous_cursor_rect, 75 DesktopRect cursor_rect() const { return cursor_rect_; } in cursor_rect() 82 DesktopRect cursor_rect_; 91 const DesktopRect& previous_cursor_rect, in DesktopFrameWithCursor() 101 cursor_rect_ = DesktopRect::MakeSize(cursor.image()->size()); in DesktopFrameWithCursor() 104 cursor_rect_.IntersectWith(DesktopRect::MakeSize(size())); in DesktopFrameWithCursor() 120 DesktopRect::MakeSize(restore_frame_->size())); in DesktopFrameWithCursor() 137 DesktopRect target_rect = DesktopRect::MakeSize(restore_frame_->size()); in ~DesktopFrameWithCursor()
|
D | desktop_frame.cc | 43 const DesktopRect& dest_rect) { in CopyPixelsFrom() 44 RTC_CHECK(DesktopRect::MakeSize(size()).ContainsRect(dest_rect)); in CopyPixelsFrom() 56 const DesktopRect& dest_rect) { in CopyPixelsFrom() 57 RTC_CHECK(DesktopRect::MakeSize(src_frame.size()) in CopyPixelsFrom() 59 DesktopRect::MakeOriginSize(src_pos, dest_rect.size()))); in CopyPixelsFrom() 75 DesktopRect intersection_rect = src_frame.rect(); in CopyIntersectingPixelsFrom() 106 DesktopRect DesktopFrame::rect() const { in rect() 109 return DesktopRect::MakeXYWH(top_left().x(), top_left().y(), in rect()
|
D | desktop_frame_generator.cc | 37 const DesktopRect screen_rect = DesktopRect::MakeSize(frame->size()); in SetUpdatedRegion() 42 DesktopRect rect = it.rect(); in SetUpdatedRegion() 59 DesktopRect::MakeLTRB(left, top, right, bottom)); in SetUpdatedRegion() 65 void PaintRect(DesktopFrame* frame, DesktopRect rect, RgbaColor rgba_color) { in PaintRect() 85 region->IntersectWith(DesktopRect::MakeSize(frame->size())); in PaintRegion() 129 DesktopRect::MakeSize(frame->size())); in GetNextFrame()
|
D | cropped_desktop_frame.cc | 26 const DesktopRect& rect); 36 const DesktopRect& rect) { in CreateCroppedDesktopFrame() 39 if (!DesktopRect::MakeSize(frame->size()).ContainsRect(rect)) { in CreateCroppedDesktopFrame() 52 const DesktopRect& rect) in CroppedDesktopFrame()
|
D | blank_detector_desktop_capturer_wrapper_unittest.cc | 94 painter_.updated_region()->AddRect(DesktopRect::MakeXYWH(0, 0, 100, 100)); in TEST_F() 101 DesktopRect::MakeXYWH(frame_width_ - 100, frame_height_ - 100, 100, 100)); in TEST_F() 108 DesktopRect::MakeXYWH(0, frame_height_ - 100, 100, 100)); in TEST_F() 115 DesktopRect::MakeXYWH(frame_width_ - 100, 0, 100, 100)); in TEST_F() 121 painter_.updated_region()->AddRect(DesktopRect::MakeXYWH( in TEST_F() 137 DesktopRect::MakeXYWH(frame_width_ - 100, 0, 100, 100)); in TEST_F()
|
D | screen_drawer_linux.cc | 38 DesktopRect DrawableRegion() override; 39 void DrawRectangle(DesktopRect rect, RgbaColor color) override; 52 DesktopRect rect_; 94 rect_ = DesktopRect::MakeLTRB(x, y, root_attributes.width, in ScreenDrawerLinux() 108 DesktopRect ScreenDrawerLinux::DrawableRegion() { in DrawableRegion() 112 void ScreenDrawerLinux::DrawRectangle(DesktopRect rect, RgbaColor color) { in DrawRectangle()
|
/external/webrtc/modules/desktop_capture/win/ |
D | screen_capture_utils.cc | 69 DesktopRect GetFullscreenRect() { in GetFullscreenRect() 70 return DesktopRect::MakeXYWH(GetSystemMetrics(SM_XVIRTUALSCREEN), in GetFullscreenRect() 76 DesktopRect GetScreenRect(DesktopCapturer::SourceId screen, in GetScreenRect() 86 return DesktopRect(); in GetScreenRect() 93 return DesktopRect(); in GetScreenRect() 101 return DesktopRect(); in GetScreenRect() 103 return DesktopRect::MakeXYWH( in GetScreenRect()
|
D | window_capture_utils.h | 27 bool GetWindowRect(HWND window, DesktopRect* result); 48 DesktopRect* cropped_rect, 49 DesktopRect* original_rect); 56 bool GetWindowContentRect(HWND window, DesktopRect* result); 60 int GetWindowRegionTypeWithBoundary(HWND window, DesktopRect* result); 93 const DesktopRect& selected_window_rect);
|
D | dxgi_output_duplicator.cc | 40 DesktopRect RECTToDesktopRect(const RECT& rect) { in RECTToDesktopRect() 41 return DesktopRect::MakeLTRB(rect.left, rect.top, rect.right, rect.bottom); in RECTToDesktopRect() 157 if (!DesktopRect::MakeSize(target->size()) in Duplicate() 195 const DesktopRect source_rect = in Duplicate() 203 DesktopRect dest_rect = it.rect(); in Duplicate() 222 DesktopRect source_rect = it.rect(); in Duplicate() 224 DesktopRect target_rect = source_rect; in Duplicate() 241 DesktopRect DxgiOutputDuplicator::GetTranslatedDesktopRect( in GetTranslatedDesktopRect() 243 DesktopRect result(DesktopRect::MakeSize(desktop_size())); in GetTranslatedDesktopRect() 248 DesktopRect DxgiOutputDuplicator::GetUntranslatedDesktopRect() const { in GetUntranslatedDesktopRect() [all …]
|
D | window_capture_utils.cc | 33 bool GetWindowRect(HWND window, DesktopRect* result) { in GetWindowRect() 38 *result = DesktopRect::MakeLTRB(rect.left, rect.top, rect.right, rect.bottom); in GetWindowRect() 44 DesktopRect* cropped_rect, in GetCroppedWindowRect() 45 DesktopRect* original_rect) { in GetCroppedWindowRect() 46 DesktopRect window_rect; in GetCroppedWindowRect() 90 bool GetWindowContentRect(HWND window, DesktopRect* result) { in GetWindowContentRect() 126 int GetWindowRegionTypeWithBoundary(HWND window, DesktopRect* result) { in GetWindowRegionTypeWithBoundary() 135 DesktopRect::MakeLTRB(rect.left, rect.top, rect.right, rect.bottom); in GetWindowRegionTypeWithBoundary() 306 const DesktopRect& selected_window_rect) { in AreWindowsOverlapping() 307 DesktopRect content_rect; in AreWindowsOverlapping()
|
/external/webrtc/modules/desktop_capture/mac/ |
D | desktop_configuration.h | 37 DesktopRect bounds; 40 DesktopRect pixel_bounds; 82 DesktopRect bounds; 85 DesktopRect pixel_bounds;
|