Home | History | Annotate | Download | only in base

Lines Matching refs:kWidth

67   static const int kWidth = 1280;
80 kWidth, kHeight, frame);
545 CreateYuvSample(kWidth, kHeight, 12));
547 kWidth, kHeight, &frame));
550 const uint8_t* u = y + kWidth * kHeight;
551 const uint8_t* v = u + kWidth * kHeight / 4;
552 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, y, kWidth, u,
553 kWidth / 2, v, kWidth / 2, 0));
560 CreateYuvSample(kWidth, kHeight, 12));
562 kWidth, kHeight, &frame));
565 const uint8_t* v = y + kWidth * kHeight;
566 const uint8_t* u = v + kWidth * kHeight / 4;
567 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, y, kWidth, u,
568 kWidth / 2, v, kWidth / 2, 0));
575 size_t buf_size = kWidth * kHeight * 2;
578 uint8_t* u = y + kWidth * kHeight;
579 uint8_t* v = u + (kWidth / 2) * kHeight;
583 y, kWidth,
584 u, kWidth / 2,
585 v, kWidth / 2,
586 kWidth, kHeight));
588 kWidth, kHeight, &frame2));
596 size_t buf_size = kWidth * kHeight * 2;
602 yuy2, kWidth * 2,
603 kWidth, kHeight));
605 kWidth, kHeight, &frame2));
613 size_t buf_size = kWidth * kHeight * 2;
619 yuy2, kWidth * 2,
620 kWidth, kHeight));
622 kWidth, kHeight, &frame2));
631 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth * 10, kHeight / 10));
634 kWidth * 10, kHeight / 10,
637 kWidth * 10, kHeight / 10, &frame2));
645 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
647 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
650 kWidth, kHeight, &frame2));
659 CreateYuvSample(kWidth, kHeight, 12));
662 kWidth, kHeight, &frame));
668 CreateYuvSample(kWidth, kHeight, 12));
671 kWidth, kHeight, &frame));
677 CreateYuvSample(kWidth, kHeight, 12));
680 kWidth, kHeight, &frame));
688 CreateRgbSample(cricket::FOURCC_ABGR, kWidth, kHeight));
690 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ABGR, kWidth, kHeight,
693 kWidth, kHeight, &frame2));
702 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight));
704 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
707 kWidth, kHeight, &frame2));
716 CreateRgbSample(cricket::FOURCC_ARGB, kWidth * 10, kHeight / 10));
719 kWidth * 10, kHeight / 10, &frame1));
721 kWidth * 10, kHeight / 10, &frame2));
730 CreateRgbSample(cricket::FOURCC_BGRA, kWidth, kHeight));
732 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_BGRA, kWidth, kHeight,
735 kWidth, kHeight, &frame2));
744 CreateRgbSample(cricket::FOURCC_24BG, kWidth, kHeight));
746 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_24BG, kWidth, kHeight,
749 kWidth, kHeight, &frame2));
758 CreateRgbSample(cricket::FOURCC_RAW, kWidth, kHeight));
760 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_RAW, kWidth, kHeight,
763 kWidth, kHeight, &frame2));
770 size_t out_size = kWidth * kHeight * 2;
777 out_size, kWidth * 2));
779 kWidth, kHeight, &frame2));
786 size_t out_size = kWidth * kHeight * 2;
793 out_size, kWidth * 2));
795 kWidth, kHeight, &frame2));
802 size_t out_size = kWidth * kHeight * 2;
809 out_size, kWidth * 2));
811 kWidth, kHeight, &frame2));
820 CreateYuvSample(kWidth, kHeight, BPP)); \
822 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_##FOURCC, kWidth, \
823 -kHeight, kWidth, kHeight, \
828 EXPECT_TRUE(frame2.Init(cricket::FOURCC_##FOURCC, kWidth, kHeight, kWidth, \
839 frame3.GetUPitch(), frame3.GetVPlane(), frame3.GetVPitch(), kWidth, \
851 CreateYuvSample(kWidth, kHeight, BPP)); \
853 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_##FOURCC, kWidth, kHeight, \
854 kWidth, kHeight, webrtc::kVideoRotation_##ROTATE, \
859 EXPECT_TRUE(frame2.Init(cricket::FOURCC_##FOURCC, kWidth, kHeight, kWidth, \
870 frame3.GetUPitch(), frame3.GetVPlane(), frame3.GetVPitch(), kWidth, \
905 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
907 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
908 kWidth, kHeight, webrtc::kVideoRotation_90, &frame2));
915 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
917 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
918 kWidth, kHeight, webrtc::kVideoRotation_180,
926 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
928 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
929 kWidth, kHeight, webrtc::kVideoRotation_270,
937 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
939 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
940 kWidth, kHeight, webrtc::kVideoRotation_90, &frame2));
947 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
949 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
950 kWidth, kHeight, webrtc::kVideoRotation_180,
958 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
960 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
961 kWidth, kHeight, webrtc::kVideoRotation_270,
1060 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1061 kWidth * 3 / 4, kHeight, webrtc::kVideoRotation_0,
1063 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, kWidth / 8, 0, 0));
1070 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
1072 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1074 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1075 kWidth * 3 / 4, kHeight, webrtc::kVideoRotation_0,
1077 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, kWidth / 8, 0, 0));
1084 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight));
1086 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
1088 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
1089 kWidth * 3 / 4, kHeight, webrtc::kVideoRotation_0,
1091 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, kWidth / 8, 0, 2));
1098 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1099 kWidth, kHeight * 3 / 4, webrtc::kVideoRotation_0,
1107 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1109 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_IYUV, kWidth, kHeight,
1111 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_YU12, kWidth, kHeight,
1122 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1131 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1140 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1149 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1159 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1162 kWidth, kHeight, 32));
1195 EXPECT_EQ(expected_result, frame.Validate(fourcc, kWidth, kHeight,
1291 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
1293 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1296 kWidth, kHeight, &frame2));
1298 kWidth, kHeight, &frame3));
1300 kWidth, kHeight, &frame4));
1310 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
1312 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
1315 kWidth, kHeight, &frame2));
1317 kWidth, kHeight, &frame3));
1319 kWidth, kHeight, &frame4));
1352 EXPECT_TRUE(frame.InitToBlack(kWidth, kHeight, 1, 1, 0));
1354 EXPECT_TRUE(IsSize(frame, kWidth, kHeight));
1418 EXPECT_TRUE(frame1.InitToBlack(kWidth, kHeight, 1, 1, 0));
1419 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0));
1422 EXPECT_TRUE(frame1.Reset(cricket::FOURCC_I420, kWidth, kHeight, kWidth,
1435 EXPECT_TRUE(kWidth == frame1.GetHeight());
1437 EXPECT_TRUE(kWidth == frame1.GetWidth());
1479 int astride = kWidth * bpp + rowpad;
1497 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0));
1503 kWidth, kHeight));
1506 EXPECT_EQ(0, outtop[kWidth * bpp]); // Ensure stride skipped end of row.
1509 EXPECT_NE(0, outtop[kWidth * bpp]); // Expect something to be here.
1798 size_t out_size = kWidth * kHeight * 2;
1801 uint8_t* u = y + kWidth * kHeight;
1802 uint8_t* v = u + (kWidth / 2) * kHeight;
1808 y, kWidth,
1809 u, kWidth / 2,
1810 v, kWidth / 2,
1811 kWidth, kHeight));
1813 EXPECT_TRUE(frame2.Init(cricket::FOURCC_I422, kWidth, kHeight, kWidth,
1862 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
1864 size_t out_size = kWidth * kHeight * 3 / 2;
1877 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
1900 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
1907 size_t out_size = cricket::VideoFrame::SizeOf(kWidth, kHeight);
1932 EXPECT_TRUE(source.InitToBlack(kWidth * 2, kHeight * 2, 1, 1, 0));
1933 EXPECT_TRUE(IsSize(source, kWidth * 2, kHeight * 2));