Lines Matching refs:kWidth

66   static const int kWidth = 1280;
79 kWidth, kHeight, frame);
495 CreateYuvSample(kWidth, kHeight, 12));
497 kWidth, kHeight, &frame));
500 const uint8* u = y + kWidth * kHeight;
501 const uint8* v = u + kWidth * kHeight / 4;
502 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, 0,
503 y, kWidth, u, kWidth / 2, v, kWidth / 2, 0));
510 CreateYuvSample(kWidth, kHeight, 12));
512 kWidth, kHeight, &frame));
515 const uint8* v = y + kWidth * kHeight;
516 const uint8* u = v + kWidth * kHeight / 4;
517 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, 0,
518 y, kWidth, u, kWidth / 2, v, kWidth / 2, 0));
525 size_t buf_size = kWidth * kHeight * 2;
528 uint8* u = y + kWidth * kHeight;
529 uint8* v = u + (kWidth / 2) * kHeight;
533 y, kWidth,
534 u, kWidth / 2,
535 v, kWidth / 2,
536 kWidth, kHeight));
538 kWidth, kHeight, &frame2));
546 size_t buf_size = kWidth * kHeight * 2;
552 yuy2, kWidth * 2,
553 kWidth, kHeight));
555 kWidth, kHeight, &frame2));
563 size_t buf_size = kWidth * kHeight * 2;
569 yuy2, kWidth * 2,
570 kWidth, kHeight));
572 kWidth, kHeight, &frame2));
581 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth * 10, kHeight / 10));
584 kWidth * 10, kHeight / 10,
587 kWidth * 10, kHeight / 10, &frame2));
595 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
597 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
600 kWidth, kHeight, &frame2));
609 CreateYuvSample(kWidth, kHeight, 12));
612 kWidth, kHeight, &frame));
618 CreateYuvSample(kWidth, kHeight, 12));
621 kWidth, kHeight, &frame));
627 CreateYuvSample(kWidth, kHeight, 12));
630 kWidth, kHeight, &frame));
636 CreateYuvSample(kWidth, kHeight, 12));
639 kWidth, kHeight, &frame));
647 CreateRgbSample(cricket::FOURCC_ABGR, kWidth, kHeight));
649 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ABGR, kWidth, kHeight,
652 kWidth, kHeight, &frame2));
661 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight));
663 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
666 kWidth, kHeight, &frame2));
675 CreateRgbSample(cricket::FOURCC_ARGB, kWidth * 10, kHeight / 10));
678 kWidth * 10, kHeight / 10, &frame1));
680 kWidth * 10, kHeight / 10, &frame2));
689 CreateRgbSample(cricket::FOURCC_BGRA, kWidth, kHeight));
691 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_BGRA, kWidth, kHeight,
694 kWidth, kHeight, &frame2));
703 CreateRgbSample(cricket::FOURCC_24BG, kWidth, kHeight));
705 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_24BG, kWidth, kHeight,
708 kWidth, kHeight, &frame2));
717 CreateRgbSample(cricket::FOURCC_RAW, kWidth, kHeight));
719 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_RAW, kWidth, kHeight,
722 kWidth, kHeight, &frame2));
729 size_t out_size = kWidth * kHeight * 2;
736 out_size, kWidth * 2));
738 kWidth, kHeight, &frame2));
745 size_t out_size = kWidth * kHeight * 2;
752 out_size, kWidth * 2));
754 kWidth, kHeight, &frame2));
761 size_t out_size = kWidth * kHeight * 2;
768 out_size, kWidth * 2));
770 kWidth, kHeight, &frame2));
780 size_t bayer_size = kWidth * kHeight; \
786 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
789 kWidth * 4, \
790 bayer, kWidth, \
791 kWidth, kHeight); \
793 kWidth, kHeight, &frame1)); \
794 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight, \
811 CreateYuvSample(kWidth, kHeight, BPP)); \
814 kWidth, -kHeight, kWidth, kHeight, \
820 kWidth, kHeight, kWidth, kHeight, \
833 kWidth, kHeight); \
844 CreateYuvSample(kWidth, kHeight, BPP)); \
847 kWidth, kHeight, kWidth, kHeight, \
853 kWidth, kHeight, kWidth, kHeight, \
866 kWidth, kHeight, libyuv::kRotate##ROTATE); \
900 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
903 kWidth, kHeight, kWidth, kHeight,
911 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
914 kWidth, kHeight, kWidth, kHeight,
922 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
925 kWidth, kHeight, kWidth, kHeight,
933 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
936 kWidth, kHeight, kWidth, kHeight,
944 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
947 kWidth, kHeight, kWidth, kHeight,
955 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
958 kWidth, kHeight, kWidth, kHeight,
1059 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1060 kWidth * 3 / 4, kHeight, 0, &frame2));
1061 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, kWidth / 8, 0, 0));
1068 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
1070 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1072 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1073 kWidth * 3 / 4, kHeight, 0, &frame2));
1074 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, kWidth / 8, 0, 0));
1081 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight));
1083 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
1085 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
1086 kWidth * 3 / 4, kHeight, 0, &frame2));
1087 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, kWidth / 8, 0, 2));
1094 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1095 kWidth, kHeight * 3 / 4, 0, &frame2));
1102 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1104 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_IYUV, kWidth, kHeight,
1106 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_YU12, kWidth, kHeight,
1117 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1126 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1135 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1144 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1154 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1157 kWidth, kHeight, 32));
1186 EXPECT_EQ(expected_result, frame.Validate(fourcc, kWidth, kHeight,
1282 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
1284 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1287 kWidth, kHeight, &frame2));
1289 kWidth, kHeight, &frame3));
1291 kWidth, kHeight, &frame4));
1301 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
1303 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
1306 kWidth, kHeight, &frame2));
1308 kWidth, kHeight, &frame3));
1310 kWidth, kHeight, &frame4));
1343 EXPECT_TRUE(frame.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1345 EXPECT_TRUE(IsSize(frame, kWidth, kHeight));
1409 EXPECT_TRUE(frame1.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1410 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1414 kWidth, kHeight, kWidth, kHeight,
1439 int astride = kWidth * bpp + rowpad;
1457 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1463 kWidth, kHeight));
1466 EXPECT_EQ(0, outtop[kWidth * bpp]); // Ensure stride skipped end of row.
1469 EXPECT_NE(0, outtop[kWidth * bpp]); // Expect something to be here.
1854 size_t out_size = kWidth * kHeight * 2;
1857 uint8* u = y + kWidth * kHeight;
1858 uint8* v = u + (kWidth / 2) * kHeight;
1864 y, kWidth,
1865 u, kWidth / 2,
1866 v, kWidth / 2,
1867 kWidth, kHeight));
1870 kWidth, kHeight, kWidth, kHeight,
1878 size_t bayer_size = kWidth * kHeight; \
1884 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1888 kWidth * 4, \
1889 bayer, kWidth, \
1890 kWidth, kHeight); \
1893 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1897 libyuv::Bayer##BAYER##ToARGB(bayer, kWidth, \
1899 kWidth * 4, \
1900 kWidth, kHeight); \
1902 reinterpret_cast<uint8*>(ms->GetBuffer()), kWidth * 4, \
1903 reinterpret_cast<uint8*>(ms2->GetBuffer()), kWidth * 4, \
1904 kWidth * 4, kHeight, 240)); \
1907 size_t bayer_size = kWidth * kHeight; \
1913 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1917 kWidth * 4, \
1918 bayer, kWidth, \
1919 kWidth, kHeight); \
1922 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1926 libyuv::Bayer##BAYER##ToARGB(bayer, kWidth, \
1928 kWidth * 4, \
1929 kWidth, kHeight); \
1931 reinterpret_cast<uint8*>(ms->GetBuffer()), kWidth * 4, \
1932 reinterpret_cast<uint8*>(ms2->GetBuffer()), kWidth * 4, \
1933 kWidth * 4, kHeight, 240)); \
1944 size_t bayer_size = kWidth * kHeight; \
1948 for (int i = 0; i < kWidth * kHeight; ++i) { \
1953 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1956 libyuv::Bayer##BAYER##ToARGB(bayer1, kWidth, \
1958 kWidth * 4, \
1959 kWidth, kHeight); \
1965 kWidth * 4, \
1966 bayer2, kWidth, \
1967 kWidth, kHeight); \
1969 bayer1, kWidth, \
1970 bayer2, kWidth, \
1971 kWidth, kHeight, 0)); \
2022 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
2024 size_t out_size = kWidth * kHeight * 3 / 2;
2037 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
2060 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
2067 size_t out_size = cricket::VideoFrame::SizeOf(kWidth, kHeight);
2092 EXPECT_TRUE(source.InitToBlack(kWidth * 2, kHeight * 2, 1, 1, 0, 0));
2093 EXPECT_TRUE(IsSize(source, kWidth * 2, kHeight * 2));