Home | History | Annotate | Download | only in media

Lines Matching refs:kWidth

62 static const int kWidth = 1280;
501 int y_pitch = kWidth;
502 int u_pitch = (kWidth + 1) >> 1;
503 int v_pitch = (kWidth + 1) >> 1;
504 int y_size = kHeight * kWidth;
505 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
509 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer,
513 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment]);
525 kWidth, kHeight);
530 I420_SIZE(kHeight, kWidth), 1.e-6));
532 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
539 int y_pitch = kWidth;
540 int u_pitch = (kWidth + 1) >> 1;
541 int v_pitch = (kWidth + 1) >> 1;
542 int y_size = kHeight * kWidth;
543 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
547 kHeight, kWidth, block_size, libyuv::kJpegYuv422, y_pointer, u_pointer,
551 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment]);
560 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer,
570 kWidth, kHeight);
577 I420_SIZE(kHeight, kWidth), 1.e-6));
579 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
586 int y_pitch = kWidth;
587 int m420_pitch = kWidth;
588 int u_pitch = (kWidth + 1) >> 1;
589 int v_pitch = (kWidth + 1) >> 1;
590 int y_size = kHeight * kWidth;
591 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
595 CreateFakeM420TestingImage(kHeight, kWidth, block_size, m420_pointer));
598 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]);
608 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer,
616 kWidth, kHeight);
622 I420_SIZE(kHeight, kWidth), 1.e-6));
624 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
632 int y_pitch = kWidth;
633 int uv_pitch = 2 * ((kWidth + 1) >> 1);
634 int u_pitch = (kWidth + 1) >> 1;
635 int v_pitch = (kWidth + 1) >> 1;
636 int y_size = kHeight * kWidth;
637 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
641 kHeight, kWidth, block_size, y_pointer, uv_pointer));
644 new uint8_t[I420_SIZE(kHeight, kWidth) + kAlignment + unalignment]);
654 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_expected_pointer,
663 kWidth, kHeight);
669 I420_SIZE(kHeight, kWidth), 1.e-6));
671 if (dump_) { DumpYuvImage(y_output_pointer, kWidth, kHeight); }
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;
776 int u_pitch = (kWidth + 1) >> 1;
777 int v_pitch = (kWidth + 1) >> 1;
781 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer,
785 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
793 new uint8_t[kHeight * kWidth * 4 + kAlignment]);
795 new uint8_t[kHeight * kWidth * 4 + kAlignment]);
802 argb_expected_pointer, kWidth * 4,
803 kWidth, kHeight);
806 argb_pointer, kWidth * 4,
807 kWidth, kHeight);
812 kHeight * kWidth * 4, 2.));
813 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); }
822 int y_pitch = kWidth;
823 int u_pitch = (kWidth + 1) >> 1;
824 int v_pitch = (kWidth + 1) >> 1;
828 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer,
832 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1);
843 new uint8_t[kHeight * kWidth * 4 + kAlignment]);
846 new uint8_t[kHeight * kWidth * 4 + kAlignment + unalignment]);
853 argb_expected_pointer, kWidth * 4,
854 kWidth, kHeight);
857 argb_pointer, kWidth * 4,
858 kWidth, kHeight);
864 kHeight * kWidth * 4, 64.0));
865 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); }
877 kHeight, kWidth, block_size, argb_pointer, FOURCC_ARGB));
880 kHeight, kWidth, block_size, libyuv::kJpegYuv420, y_pointer, u_pointer,
884 new uint8_t[kHeight * kWidth + kAlignment + unalignment]);
888 libyuv::ARGBToI400(argb_pointer, kWidth * 4, y_output_pointer, kWidth,
889 kWidth, kHeight);
895 kHeight * kWidth, 2.));
896 if (dump_) { DumpArgbImage(argb_pointer, kWidth, kHeight); }
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); \