Lines Matching refs:kWidth

61 static const int kWidth = 1280;
525 int y_pitch = kWidth;
526 int u_pitch = (kWidth + 1) >> 1;
527 int v_pitch = (kWidth + 1) >> 1;
528 int y_size = kHeight * kWidth;
529 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
533 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
538 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment]);
550 kWidth, kHeight);
555 I420_SIZE(kHeight, kWidth), 1.e-6));
557 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
562 int y_pitch = kWidth;
563 int u_pitch = (kWidth + 1) >> 1;
564 int v_pitch = (kWidth + 1) >> 1;
565 int y_size = kHeight * kWidth;
566 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
570 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
575 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment]);
583 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
594 kWidth, kHeight);
601 I420_SIZE(kHeight, kWidth), 1.e-6));
603 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
610 int y_pitch = kWidth;
611 int yuy2_pitch = 2 * ((kWidth + 1) & ~1);
612 int u_pitch = (kWidth + 1) >> 1;
613 int v_pitch = (kWidth + 1) >> 1;
614 int y_size = kHeight * kWidth;
615 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
619 CreateFakeQ420TestingImage(kHeight, kWidth, block_size,
623 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]);
632 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
642 kWidth, kHeight);
648 I420_SIZE(kHeight, kWidth), 1.e-6));
650 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
657 int y_pitch = kWidth;
658 int m420_pitch = kWidth;
659 int u_pitch = (kWidth + 1) >> 1;
660 int v_pitch = (kWidth + 1) >> 1;
661 int y_size = kHeight * kWidth;
662 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
666 CreateFakeM420TestingImage(kHeight, kWidth, block_size, m420_pointer));
669 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]);
677 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
686 kWidth, kHeight);
692 I420_SIZE(kHeight, kWidth), 1.e-6));
694 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
701 int y_pitch = kWidth;
702 int uv_pitch = 2 * ((kWidth + 1) >> 1);
703 int u_pitch = (kWidth + 1) >> 1;
704 int v_pitch = (kWidth + 1) >> 1;
705 int y_size = kHeight * kWidth;
706 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
710 CreateFakeNV12TestingImage(kHeight, kWidth, block_size,
714 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]);
722 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
732 kWidth, kHeight);
738 I420_SIZE(kHeight, kWidth), 1.e-6));
740 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
749 int yuv_pitch = 2 * ((kWidth + 1) & ~1); \
750 int y_pitch = kWidth; \
751 int u_pitch = (kWidth + 1) >> 1; \
752 int v_pitch = (kWidth + 1) >> 1; \
753 int y_size = kHeight * kWidth; \
754 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); \
758 CreateFakeInterleaveYuvTestingImage(kHeight, kWidth, BLOCK_SIZE, \
762 new uint8[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]); \
771 CreateFakeYuvTestingImage(kHeight, kWidth, block_size, \
779 kWidth, kHeight); \
785 I420_SIZE(kHeight, kWidth), MSE)); \
786 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); } \
799 int y_pitch = kWidth; \
800 int u_pitch = (kWidth + 1) >> 1; \
801 int v_pitch = (kWidth + 1) >> 1; \
804 CreateFakeYuvTestingImage(kHeight, kWidth, BLOCK_SIZE, JPG_TYPE, \
808 CreateFakeArgbTestingImage(kHeight, kWidth, BLOCK_SIZE, \
812 new uint8[kHeight * kWidth * 4 + kAlignment]); \
819 kWidth * 4, \
820 kWidth, kHeight); \
823 kHeight * kWidth * 4, MSE)); \
824 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); } \
842 int y_pitch = kWidth;
843 int u_pitch = (kWidth + 1) >> 1;
844 int v_pitch = (kWidth + 1) >> 1;
848 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
853 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
861 new uint8[kHeight * kWidth * 4 + kAlignment]);
863 new uint8[kHeight * kWidth * 4 + kAlignment]);
870 argb_expected_pointer, kWidth * 4,
871 kWidth, kHeight);
874 argb_pointer, kWidth * 4,
875 kWidth, kHeight);
880 kHeight * kWidth * 4, 2.));
881 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); }
888 int y_pitch = kWidth;
889 int u_pitch = (kWidth + 1) >> 1;
890 int v_pitch = (kWidth + 1) >> 1;
894 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
899 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
910 new uint8[kHeight * kWidth * 4 + kAlignment]);
913 new uint8[kHeight * kWidth * 4 + kAlignment + unalignment]);
920 argb_expected_pointer, kWidth * 4,
921 kWidth, kHeight);
924 argb_pointer, kWidth * 4,
925 kWidth, kHeight);
931 kHeight * kWidth * 4, 64.0));
932 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); }
944 CreateFakeArgbTestingImage(kHeight, kWidth, block_size,
948 CreateFakeYuvTestingImage(kHeight, kWidth, block_size,
953 new uint8[kHeight * kWidth + kAlignment + unalignment]);
957 libyuv::ARGBToI400(argb_pointer, kWidth * 4, y_output_pointer, kWidth,
958 kWidth, kHeight);
964 kHeight * kWidth, 2.));
965 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); }
976 CreateFakeArgbTestingImage(kHeight, kWidth, BLOCK_SIZE, \
980 CreateFakeArgbTestingImage(kHeight, kWidth, BLOCK_SIZE, \
984 new uint8[kHeight * kWidth * 4 + kAlignment + unalignment]); \
987 libyuv:: SRC_NAME##ToARGB(src_pointer, kWidth * (BPP), argb_pointer, \
988 kWidth * 4, kWidth, kHeight); \
992 kHeight * kWidth * 4, 1.e-6)); \
993 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); } \