• Home
  • Raw
  • Download

Lines Matching refs:kHeight

68   static const int kHeight = 720;  variable
80 kWidth, kHeight, frame); in LoadFrameNoRepeat()
545 CreateYuvSample(kWidth, kHeight, 12)); in ConstructI420()
547 kWidth, kHeight, &frame)); in ConstructI420()
550 const uint8_t* u = y + kWidth * kHeight; in ConstructI420()
551 const uint8_t* v = u + kWidth * kHeight / 4; in ConstructI420()
552 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, y, kWidth, u, in ConstructI420()
560 CreateYuvSample(kWidth, kHeight, 12)); in ConstructYV12()
562 kWidth, kHeight, &frame)); in ConstructYV12()
565 const uint8_t* v = y + kWidth * kHeight; in ConstructYV12()
566 const uint8_t* u = v + kWidth * kHeight / 4; in ConstructYV12()
567 EXPECT_TRUE(IsEqual(frame, kWidth, kHeight, 1, 1, 0, y, kWidth, u, in ConstructYV12()
575 size_t buf_size = kWidth * kHeight * 2; in ConstructI422()
578 uint8_t* u = y + kWidth * kHeight; in ConstructI422()
579 uint8_t* v = u + (kWidth / 2) * kHeight; in ConstructI422()
586 kWidth, kHeight)); in ConstructI422()
588 kWidth, kHeight, &frame2)); in ConstructI422()
596 size_t buf_size = kWidth * kHeight * 2; in ConstructYuy2()
603 kWidth, kHeight)); in ConstructYuy2()
605 kWidth, kHeight, &frame2)); in ConstructYuy2()
613 size_t buf_size = kWidth * kHeight * 2; in ConstructYuy2Unaligned()
620 kWidth, kHeight)); in ConstructYuy2Unaligned()
622 kWidth, kHeight, &frame2)); in ConstructYuy2Unaligned()
631 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth * 10, kHeight / 10)); in ConstructYuy2Wide()
634 kWidth * 10, kHeight / 10, in ConstructYuy2Wide()
637 kWidth * 10, kHeight / 10, &frame2)); in ConstructYuy2Wide()
645 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight)); in ConstructUyvy()
647 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight, in ConstructUyvy()
650 kWidth, kHeight, &frame2)); in ConstructUyvy()
659 CreateYuvSample(kWidth, kHeight, 12)); in ConstructM420()
662 kWidth, kHeight, &frame)); in ConstructM420()
668 CreateYuvSample(kWidth, kHeight, 12)); in ConstructNV21()
671 kWidth, kHeight, &frame)); in ConstructNV21()
677 CreateYuvSample(kWidth, kHeight, 12)); in ConstructNV12()
680 kWidth, kHeight, &frame)); in ConstructNV12()
688 CreateRgbSample(cricket::FOURCC_ABGR, kWidth, kHeight)); in ConstructABGR()
690 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ABGR, kWidth, kHeight, in ConstructABGR()
693 kWidth, kHeight, &frame2)); in ConstructABGR()
702 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); in ConstructARGB()
704 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight, in ConstructARGB()
707 kWidth, kHeight, &frame2)); in ConstructARGB()
716 CreateRgbSample(cricket::FOURCC_ARGB, kWidth * 10, kHeight / 10)); in ConstructARGBWide()
719 kWidth * 10, kHeight / 10, &frame1)); in ConstructARGBWide()
721 kWidth * 10, kHeight / 10, &frame2)); in ConstructARGBWide()
730 CreateRgbSample(cricket::FOURCC_BGRA, kWidth, kHeight)); in ConstructBGRA()
732 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_BGRA, kWidth, kHeight, in ConstructBGRA()
735 kWidth, kHeight, &frame2)); in ConstructBGRA()
744 CreateRgbSample(cricket::FOURCC_24BG, kWidth, kHeight)); in Construct24BG()
746 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_24BG, kWidth, kHeight, in Construct24BG()
749 kWidth, kHeight, &frame2)); in Construct24BG()
758 CreateRgbSample(cricket::FOURCC_RAW, kWidth, kHeight)); in ConstructRaw()
760 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_RAW, kWidth, kHeight, in ConstructRaw()
763 kWidth, kHeight, &frame2)); in ConstructRaw()
770 size_t out_size = kWidth * kHeight * 2; in ConstructRGB565()
779 kWidth, kHeight, &frame2)); in ConstructRGB565()
786 size_t out_size = kWidth * kHeight * 2; in ConstructARGB1555()
795 kWidth, kHeight, &frame2)); in ConstructARGB1555()
802 size_t out_size = kWidth * kHeight * 2; in ConstructARGB4444()
811 kWidth, kHeight, &frame2)); in ConstructARGB4444()
820 CreateYuvSample(kWidth, kHeight, BPP)); \
823 -kHeight, kWidth, kHeight, \
828 EXPECT_TRUE(frame2.Init(cricket::FOURCC_##FOURCC, kWidth, kHeight, kWidth, \
829 kHeight, \
840 kHeight); \
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, \
860 kHeight, \
871 kHeight, libyuv::kRotate##ROTATE); \
905 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight)); in ConstructUyvyRotate90()
907 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight, in ConstructUyvyRotate90()
908 kWidth, kHeight, webrtc::kVideoRotation_90, &frame2)); in ConstructUyvyRotate90()
915 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight)); in ConstructUyvyRotate180()
917 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight, in ConstructUyvyRotate180()
918 kWidth, kHeight, webrtc::kVideoRotation_180, in ConstructUyvyRotate180()
926 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight)); in ConstructUyvyRotate270()
928 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight, in ConstructUyvyRotate270()
929 kWidth, kHeight, webrtc::kVideoRotation_270, in ConstructUyvyRotate270()
937 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight)); in ConstructYuy2Rotate90()
939 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight, in ConstructYuy2Rotate90()
940 kWidth, kHeight, webrtc::kVideoRotation_90, &frame2)); in ConstructYuy2Rotate90()
947 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight)); in ConstructYuy2Rotate180()
949 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight, in ConstructYuy2Rotate180()
950 kWidth, kHeight, webrtc::kVideoRotation_180, in ConstructYuy2Rotate180()
958 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight)); in ConstructYuy2Rotate270()
960 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight, in ConstructYuy2Rotate270()
961 kWidth, kHeight, webrtc::kVideoRotation_270, in ConstructYuy2Rotate270()
1060 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight, in ConstructI420CropHorizontal()
1061 kWidth * 3 / 4, kHeight, webrtc::kVideoRotation_0, in ConstructI420CropHorizontal()
1070 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight)); in ConstructYuy2CropHorizontal()
1072 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight, in ConstructYuy2CropHorizontal()
1074 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight, in ConstructYuy2CropHorizontal()
1075 kWidth * 3 / 4, kHeight, webrtc::kVideoRotation_0, in ConstructYuy2CropHorizontal()
1084 CreateRgbSample(cricket::FOURCC_ARGB, kWidth, kHeight)); in ConstructARGBCropHorizontal()
1086 EXPECT_TRUE(ConvertRgb(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight, in ConstructARGBCropHorizontal()
1088 EXPECT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_ARGB, kWidth, kHeight, in ConstructARGBCropHorizontal()
1089 kWidth * 3 / 4, kHeight, webrtc::kVideoRotation_0, in ConstructARGBCropHorizontal()
1098 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight, in ConstructI420CropVertical()
1099 kWidth, kHeight * 3 / 4, webrtc::kVideoRotation_0, in ConstructI420CropVertical()
1101 EXPECT_TRUE(IsEqualWithCrop(frame2, frame1, 0, kHeight / 8, 0)); in ConstructI420CropVertical()
1107 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_I420, kWidth, kHeight, in ConstructI420Aliases()
1109 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_IYUV, kWidth, kHeight, in ConstructI420Aliases()
1111 ASSERT_TRUE(LoadFrame(kImageFilename, cricket::FOURCC_YU12, kWidth, kHeight, in ConstructI420Aliases()
1122 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2)); in ConstructMjpgI420()
1131 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2)); in ConstructMjpgI422()
1140 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2)); in ConstructMjpgI444()
1149 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2)); in ConstructMjpgI411()
1159 cricket::FOURCC_MJPG, kWidth, kHeight, &frame2)); in ConstructMjpgI400()
1162 kWidth, kHeight, 32)); in ConstructMjpgI400()
1195 EXPECT_EQ(expected_result, frame.Validate(fourcc, kWidth, kHeight, in ValidateFrame()
1291 CreateYuv422Sample(cricket::FOURCC_YUY2, kWidth, kHeight)); in ConstructYuy2Aliases()
1293 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_YUY2, kWidth, kHeight, in ConstructYuy2Aliases()
1296 kWidth, kHeight, &frame2)); in ConstructYuy2Aliases()
1298 kWidth, kHeight, &frame3)); in ConstructYuy2Aliases()
1300 kWidth, kHeight, &frame4)); in ConstructYuy2Aliases()
1310 CreateYuv422Sample(cricket::FOURCC_UYVY, kWidth, kHeight)); in ConstructUyvyAliases()
1312 EXPECT_TRUE(ConvertYuv422(ms.get(), cricket::FOURCC_UYVY, kWidth, kHeight, in ConstructUyvyAliases()
1315 kWidth, kHeight, &frame2)); in ConstructUyvyAliases()
1317 kWidth, kHeight, &frame3)); in ConstructUyvyAliases()
1319 kWidth, kHeight, &frame4)); in ConstructUyvyAliases()
1352 EXPECT_TRUE(frame.InitToBlack(kWidth, kHeight, 1, 1, 0)); in ConstructBlack()
1354 EXPECT_TRUE(IsSize(frame, kWidth, kHeight)); in ConstructBlack()
1418 EXPECT_TRUE(frame1.InitToBlack(kWidth, kHeight, 1, 1, 0)); in Reset()
1419 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0)); in Reset()
1422 EXPECT_TRUE(frame1.Reset(cricket::FOURCC_I420, kWidth, kHeight, kWidth, in Reset()
1423 kHeight, in Reset()
1434 EXPECT_TRUE(kHeight == frame1.GetWidth()); in Reset()
1438 EXPECT_TRUE(kHeight == frame1.GetHeight()); in Reset()
1480 size_t out_size = astride * kHeight; in ConvertToBuffer()
1487 out += (kHeight - 1) * stride; // Point to last row. in ConvertToBuffer()
1497 EXPECT_TRUE(frame2.InitToBlack(kWidth, kHeight, 1, 1, 0)); in ConvertToBuffer()
1503 kWidth, kHeight)); in ConvertToBuffer()
1798 size_t out_size = kWidth * kHeight * 2; in ConvertToI422Buffer()
1801 uint8_t* u = y + kWidth * kHeight; in ConvertToI422Buffer()
1802 uint8_t* v = u + (kWidth / 2) * kHeight; in ConvertToI422Buffer()
1811 kWidth, kHeight)); in ConvertToI422Buffer()
1813 EXPECT_TRUE(frame2.Init(cricket::FOURCC_I422, kWidth, kHeight, kWidth, in ConvertToI422Buffer()
1814 kHeight, y, out_size, 1, 1, 0, in ConvertToI422Buffer()
1862 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight, in CopyToBuffer()
1864 size_t out_size = kWidth * kHeight * 3 / 2; in CopyToBuffer()
1877 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight, in CopyToFrame()
1900 ASSERT_TRUE(LoadFrame(ms.get(), cricket::FOURCC_I420, kWidth, kHeight, in Write()
1907 size_t out_size = cricket::VideoFrame::SizeOf(kWidth, kHeight); in Write()
1932 EXPECT_TRUE(source.InitToBlack(kWidth * 2, kHeight * 2, 1, 1, 0)); in StretchToFrame()
1933 EXPECT_TRUE(IsSize(source, kWidth * 2, kHeight * 2)); in StretchToFrame()