Lines Matching refs:kWidth
62 static const int kWidth = 1280; variable
501 int y_pitch = kWidth; in TEST_F()
502 int u_pitch = (kWidth + 1) >> 1; in TEST_F()
503 int v_pitch = (kWidth + 1) >> 1; in TEST_F()
504 int y_size = kHeight * kWidth; in TEST_F()
505 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F()
509 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer, in TEST_F()
513 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment]); in TEST_F()
525 kWidth, kHeight); in TEST_F()
530 I420_SIZE(kHeight, kWidth), 1.e-6)); in TEST_F()
532 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); } in TEST_F()
539 int y_pitch = kWidth; in TEST_F()
540 int u_pitch = (kWidth + 1) >> 1; in TEST_F()
541 int v_pitch = (kWidth + 1) >> 1; in TEST_F()
542 int y_size = kHeight * kWidth; in TEST_F()
543 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F()
547 kHeight, kWidth, block_size, libyuv::kJpegYuv422, y_pointer, u_pointer, in TEST_F()
551 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment]); in TEST_F()
560 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer, in TEST_F()
570 kWidth, kHeight); in TEST_F()
577 I420_SIZE(kHeight, kWidth), 1.e-6)); in TEST_F()
579 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); } in TEST_F()
586 int y_pitch = kWidth; in TEST_P()
587 int m420_pitch = kWidth; in TEST_P()
588 int u_pitch = (kWidth + 1) >> 1; in TEST_P()
589 int v_pitch = (kWidth + 1) >> 1; in TEST_P()
590 int y_size = kHeight * kWidth; in TEST_P()
591 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_P()
595 CreateFakeM420TestingImage(kHeight, kWidth, block_size, m420_pointer)); in TEST_P()
598 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]); in TEST_P()
608 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer, in TEST_P()
616 kWidth, kHeight); in TEST_P()
622 I420_SIZE(kHeight, kWidth), 1.e-6)); in TEST_P()
624 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); } in TEST_P()
632 int y_pitch = kWidth; in TEST_P()
633 int uv_pitch = 2 * ((kWidth + 1) >> 1); in TEST_P()
634 int u_pitch = (kWidth + 1) >> 1; in TEST_P()
635 int v_pitch = (kWidth + 1) >> 1; in TEST_P()
636 int y_size = kHeight * kWidth; in TEST_P()
637 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_P()
641 kHeight, kWidth, block_size, y_pointer, uv_pointer)); in TEST_P()
644 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]); in TEST_P()
654 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer, in TEST_P()
663 kWidth, kHeight); in TEST_P()
669 I420_SIZE(kHeight, kWidth), 1.e-6)); in TEST_P()
671 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); } in TEST_P()
680 int yuv_pitch = 2 * ((kWidth + 1) & ~1); \
681 int y_pitch = kWidth; \
682 int u_pitch = (kWidth + 1) >> 1; \
683 int v_pitch = (kWidth + 1) >> 1; \
684 int y_size = kHeight * kWidth; \
685 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); \
689 kHeight, kWidth, BLOCK_SIZE, yuv_pointer, FOURCC_##SRC_NAME)); \
692 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]); \
702 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer, \
707 v_output_pointer, v_pitch, kWidth, kHeight); \
713 I420_SIZE(kHeight, kWidth), MSE)); \
715 DumpYuvImage(y_output_pointer, kWidth, kHeight); \
731 int y_pitch = kWidth; \
732 int u_pitch = (kWidth + 1) >> 1; \
733 int v_pitch = (kWidth + 1) >> 1; \
736 CreateFakeYuvTestingImage(kHeight, kWidth, BLOCK_SIZE, JPG_TYPE, \
740 CreateFakeArgbTestingImage(kHeight, kWidth, BLOCK_SIZE, \
744 new uint8_t[kHeight * kWidth * 4 + kAlignment]); \
749 kWidth * 4, kWidth, kHeight); \
752 kHeight* kWidth * 4, MSE)); \
754 DumpArgbImage(argb_pointer, kWidth, kHeight); \
775 int y_pitch = kWidth; in TEST_F()
776 int u_pitch = (kWidth + 1) >> 1; in TEST_F()
777 int v_pitch = (kWidth + 1) >> 1; in TEST_F()
781 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer, in TEST_F()
785 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F()
793 new uint8_t[kHeight * kWidth * 4 + kAlignment]); in TEST_F()
795 new uint8_t[kHeight * kWidth * 4 + kAlignment]); in TEST_F()
802 argb_expected_pointer, kWidth * 4, in TEST_F()
803 kWidth, kHeight); in TEST_F()
806 argb_pointer, kWidth * 4, in TEST_F()
807 kWidth, kHeight); in TEST_F()
812 kHeight * kWidth * 4, 2.)); in TEST_F()
813 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); } in TEST_F()
822 int y_pitch = kWidth; in TEST_P()
823 int u_pitch = (kWidth + 1) >> 1; in TEST_P()
824 int v_pitch = (kWidth + 1) >> 1; in TEST_P()
828 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer, in TEST_P()
832 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_P()
843 new uint8_t[kHeight * kWidth * 4 + kAlignment]); in TEST_P()
846 new uint8_t[kHeight * kWidth * 4 + kAlignment + unalignment]); in TEST_P()
853 argb_expected_pointer, kWidth * 4, in TEST_P()
854 kWidth, kHeight); in TEST_P()
857 argb_pointer, kWidth * 4, in TEST_P()
858 kWidth, kHeight); in TEST_P()
864 kHeight * kWidth * 4, 64.0)); in TEST_P()
865 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); } in TEST_P()
877 kHeight, kWidth, block_size, argb_pointer, FOURCC_ARGB)); in TEST_P()
880 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer, in TEST_P()
884 new uint8_t[kHeight * kWidth + kAlignment + unalignment]); in TEST_P()
888 libyuv::ARGBToI400(argb_pointer, kWidth * 4, y_output_pointer, kWidth, in TEST_P()
889 kWidth, kHeight); in TEST_P()
895 kHeight * kWidth, 2.)); in TEST_P()
896 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); } in TEST_P()
907 kHeight, kWidth, BLOCK_SIZE, src_pointer, FOURCC_##FC_ID)); \
910 kHeight, kWidth, BLOCK_SIZE, argb_expected_pointer, FOURCC_ARGB)); \
913 new uint8_t[kHeight * kWidth * 4 + kAlignment + unalignment]); \
917 libyuv::SRC_NAME##ToARGB(src_pointer, kWidth*(BPP), argb_pointer, \
918 kWidth * 4, kWidth, kHeight); \
922 kHeight* kWidth * 4, 1.e-6)); \
924 DumpArgbImage(argb_pointer, kWidth, kHeight); \