Home | History | Annotate | Download | only in codec

Lines Matching defs:rects

27 // Some sample rects for testing.
30 std::vector<DesktopRect> rects;
31 rects.push_back(DesktopRect::MakeXYWH(0, 0, size.width(), size.height()));
32 rect_lists.push_back(rects);
33 rects.clear();
34 rects.push_back(DesktopRect::MakeXYWH(
36 rect_lists.push_back(rects);
37 rects.clear();
38 rects.push_back(DesktopRect::MakeXYWH(
41 rect_lists.push_back(rects);
42 rects.clear();
43 rects.push_back(DesktopRect::MakeXYWH(16, 16, 16, 16));
44 rects.push_back(DesktopRect::MakeXYWH(128, 64, 32, 32));
45 rect_lists.push_back(rects);
113 void AddRects(const DesktopRect* rects, int count) {
114 region_.AddRects(rects, count);
192 void AddRects(const DesktopRect* rects, int count) {
194 expected_region_.AddRect(rects[i]);
321 void AddRects(const DesktopRect* rects, int count) {
322 message_tester_->AddRects(rects, count);
352 const DesktopRect* rects,
356 frame->mutable_updated_region()->AddRect(rects[i]);
358 tester->AddRects(rects, count);
391 const DesktopRect* rects, int count) {
394 frame->mutable_updated_region()->AddRect(rects[i]);
396 encoder_tester->AddRects(rects, count);
397 decoder_tester->AddRects(rects, count);
403 webrtc::DesktopFrame::kBytesPerPixel * rects[i].width();
405 frame->stride() * rects[i].top() +
406 webrtc::DesktopFrame::kBytesPerPixel * rects[i].left();
407 for (int y = 0; y < rects[i].height(); ++y) {