Home | History | Annotate | Download | only in base

Lines Matching refs:kHeight

67   static const int kHeight = 720;
79 kWidth, kHeight, frame);
486 CreateYuvSample(kWidth, kHeight, 12));
488 kWidth, kHeight, &frame));
491 const uint8* u = y + kWidth * kHeight;
492 const uint8* v = u + kWidth * kHeight / 4;
493 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, 0,
501 CreateYuvSample(kWidth, kHeight, 12));
503 kWidth, kHeight, &frame));
506 const uint8* v = y + kWidth * kHeight;
507 const uint8* u = v + kWidth * kHeight / 4;
508 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, 0,
516 size_t buf_size = kWidth * kHeight * 2;
519 uint8* u = y + kWidth * kHeight;
520 uint8* v = u + (kWidth / 2) * kHeight;
527 kWidth, kHeight));
529 kWidth, kHeight, &frame2));
537 size_t buf_size = kWidth * kHeight * 2;
544 kWidth, kHeight));
546 kWidth, kHeight, &frame2));
554 size_t buf_size = kWidth * kHeight * 2;
561 kWidth, kHeight));
563 kWidth, kHeight, &frame2));
572 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth * 10, kHeight / 10));
575 kWidth * 10, kHeight / 10,
578 kWidth * 10, kHeight / 10, &frame2));
586 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
588 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
591 kWidth, kHeight, &frame2));
600 CreateYuvSample(kWidth, kHeight, 12));
603 kWidth, kHeight, &frame));
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));
638 CreateRgbSample(cricket::FOURCC_ABGR, kWidth, kHeight));
640 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ABGR, kWidth, kHeight,
643 kWidth, kHeight, &frame2));
652 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight));
654 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
657 kWidth, kHeight, &frame2));
666 CreateRgbSample(cricket::FOURCC_ARGB, kWidth * 10, kHeight / 10));
669 kWidth * 10, kHeight / 10, &frame1));
671 kWidth * 10, kHeight / 10, &frame2));
680 CreateRgbSample(cricket::FOURCC_BGRA, kWidth, kHeight));
682 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_BGRA, kWidth, kHeight,
685 kWidth, kHeight, &frame2));
694 CreateRgbSample(cricket::FOURCC_24BG, kWidth, kHeight));
696 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_24BG, kWidth, kHeight,
699 kWidth, kHeight, &frame2));
708 CreateRgbSample(cricket::FOURCC_RAW, kWidth, kHeight));
710 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_RAW, kWidth, kHeight,
713 kWidth, kHeight, &frame2));
720 size_t out_size = kWidth * kHeight * 2;
729 kWidth, kHeight, &frame2));
736 size_t out_size = kWidth * kHeight * 2;
745 kWidth, kHeight, &frame2));
752 size_t out_size = kWidth * kHeight * 2;
761 kWidth, kHeight, &frame2));
771 size_t bayer_size = kWidth * kHeight; \
777 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
782 kWidth, kHeight); \
784 kWidth, kHeight, &frame1)); \
785 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight, \
802 CreateYuvSample(kWidth, kHeight, BPP)); \
805 kWidth, -kHeight, kWidth, kHeight, \
811 kWidth, kHeight, kWidth, kHeight, \
824 kWidth, kHeight); \
835 CreateYuvSample(kWidth, kHeight, BPP)); \
838 kWidth, kHeight, kWidth, kHeight, \
844 kWidth, kHeight, kWidth, kHeight, \
857 kWidth, kHeight, libyuv::kRotate##ROTATE); \
891 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
894 kWidth, kHeight, kWidth, kHeight,
902 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
905 kWidth, kHeight, kWidth, kHeight,
913 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
916 kWidth, kHeight, kWidth, kHeight,
924 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
927 kWidth, kHeight, kWidth, kHeight,
935 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
938 kWidth, kHeight, kWidth, kHeight,
946 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
949 kWidth, kHeight, kWidth, kHeight,
1050 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1051 kWidth * 3 / 4, kHeight, 0, &frame2));
1059 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
1061 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1063 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1064 kWidth * 3 / 4, kHeight, 0, &frame2));
1072 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight));
1074 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
1076 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight,
1077 kWidth * 3 / 4, kHeight, 0, &frame2));
1085 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1086 kWidth, kHeight * 3 / 4, 0, &frame2));
1087 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, 0, kHeight / 8, 0));
1093 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight,
1095 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_IYUV, kWidth, kHeight,
1097 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_YU12, kWidth, kHeight,
1108 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1117 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1126 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1135 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1145 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2));
1148 kWidth, kHeight, 32));
1177 EXPECT_EQ(expected_result, frame.Validate(fourcc, kWidth, kHeight,
1273 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight));
1275 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight,
1278 kWidth, kHeight, &frame2));
1280 kWidth, kHeight, &frame3));
1282 kWidth, kHeight, &frame4));
1292 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight));
1294 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight,
1297 kWidth, kHeight, &frame2));
1299 kWidth, kHeight, &frame3));
1301 kWidth, kHeight, &frame4));
1334 EXPECT_TRUE(frame.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1336 EXPECT_TRUE(IsSize(frame, kWidth, kHeight));
1400 EXPECT_TRUE(frame1.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1401 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1405 kWidth, kHeight, kWidth, kHeight,
1431 size_t out_size = astride * kHeight;
1438 out += (kHeight - 1) * stride; // Point to last row.
1448 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0, 0));
1454 kWidth, kHeight));
1845 size_t out_size = kWidth * kHeight * 2;
1848 uint8* u = y + kWidth * kHeight;
1849 uint8* v = u + (kWidth / 2) * kHeight;
1858 kWidth, kHeight));
1861 kWidth, kHeight, kWidth, kHeight,
1869 size_t bayer_size = kWidth * kHeight; \
1875 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1881 kWidth, kHeight); \
1884 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1891 kWidth, kHeight); \
1895 kWidth * 4, kHeight, 240)); \
1898 size_t bayer_size = kWidth * kHeight; \
1904 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1910 kWidth, kHeight); \
1913 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1920 kWidth, kHeight); \
1924 kWidth * 4, kHeight, 240)); \
1935 size_t bayer_size = kWidth * kHeight; \
1939 for (int i = 0; i < kWidth * kHeight; ++i) { \
1944 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); \
1950 kWidth, kHeight); \
1958 kWidth, kHeight); \
1962 kWidth, kHeight, 0)); \
2013 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
2015 size_t out_size = kWidth * kHeight * 3 / 2;
2028 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
2051 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight,
2058 size_t out_size = cricket::VideoFrame::SizeOf(kWidth, kHeight);
2083 EXPECT_TRUE(source.InitToBlack(kWidth * 2, kHeight * 2, 1, 1, 0, 0));
2084 EXPECT_TRUE(IsSize(source, kWidth * 2, kHeight * 2));