Lines Matching refs:kWidth
36 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
38 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
39 align_buffer_page_end(src_u, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
42 align_buffer_page_end(src_v, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
45 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
46 align_buffer_page_end(dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
48 align_buffer_page_end(dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
50 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
51 align_buffer_page_end(dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
53 align_buffer_page_end(dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
56 for (int j = 0; j < kWidth; ++j) \
57 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
59 for (int j = 0; j < SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
60 src_u[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
62 src_v[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
66 memset(dst_y_c, 1, kWidth* kHeight); \
68 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
70 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
71 memset(dst_y_opt, 101, kWidth* kHeight); \
73 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
75 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
78 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
79 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), dst_y_c, kWidth, \
80 dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X), dst_v_c, \
81 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
85 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
86 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), dst_y_opt, kWidth, \
87 dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X), dst_v_opt, \
88 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
92 for (int j = 0; j < kWidth; ++j) { \
93 int abs_diff = abs(static_cast<int>(dst_y_c[i * kWidth + j]) - \
94 static_cast<int>(dst_y_opt[i * kWidth + j])); \
102 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
104 static_cast<int>(dst_u_c[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
106 dst_u_opt[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
114 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
116 static_cast<int>(dst_v_c[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
118 dst_v_opt[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
161 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
164 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); \
165 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
168 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
169 align_buffer_page_end(dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
171 align_buffer_page_end(dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
173 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
174 align_buffer_page_end(dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
176 align_buffer_page_end(dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
180 int src_stride_uv = SUBSAMPLE(kWidth, SUBSAMP_X) * PIXEL_STRIDE; \
182 for (int j = 0; j < kWidth; ++j) \
183 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
185 for (int j = 0; j < SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
192 memset(dst_y_c, 1, kWidth* kHeight); \
194 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
196 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
197 memset(dst_y_opt, 101, kWidth* kHeight); \
199 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
201 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
204 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
205 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), PIXEL_STRIDE, dst_y_c, \
206 kWidth, dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X), dst_v_c, \
207 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
211 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
212 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), PIXEL_STRIDE, \
213 dst_y_opt, kWidth, dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
214 dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
218 for (int j = 0; j < kWidth; ++j) { \
219 int abs_diff = abs(static_cast<int>(dst_y_c[i * kWidth + j]) - \
220 static_cast<int>(dst_y_opt[i * kWidth + j])); \
228 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
230 static_cast<int>(dst_u_c[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
232 dst_u_opt[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
240 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
242 static_cast<int>(dst_v_c[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
244 dst_v_opt[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
284 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
286 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
287 align_buffer_page_end(src_u, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
290 align_buffer_page_end(src_v, SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
293 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
294 align_buffer_page_end(dst_uv_c, SUBSAMPLE(kWidth * 2, SUBSAMP_X) * \
296 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
297 align_buffer_page_end(dst_uv_opt, SUBSAMPLE(kWidth * 2, SUBSAMP_X) * \
300 for (int j = 0; j < kWidth; ++j) \
301 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
303 for (int j = 0; j < SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
304 src_u[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
306 src_v[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
310 memset(dst_y_c, 1, kWidth* kHeight); \
312 SUBSAMPLE(kWidth * 2, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
313 memset(dst_y_opt, 101, kWidth* kHeight); \
315 SUBSAMPLE(kWidth * 2, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
318 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
319 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), dst_y_c, kWidth, \
320 dst_uv_c, SUBSAMPLE(kWidth * 2, SUBSAMP_X), kWidth, NEG kHeight); \
324 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
325 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), dst_y_opt, kWidth, \
326 dst_uv_opt, SUBSAMPLE(kWidth * 2, SUBSAMP_X), kWidth, NEG kHeight); \
330 for (int j = 0; j < kWidth; ++j) { \
331 int abs_diff = abs(static_cast<int>(dst_y_c[i * kWidth + j]) - \
332 static_cast<int>(dst_y_opt[i * kWidth + j])); \
340 for (int j = 0; j < SUBSAMPLE(kWidth * 2, SUBSAMP_X); ++j) { \
343 dst_uv_c[i * SUBSAMPLE(kWidth * 2, SUBSAMP_X) + j]) - \
345 dst_uv_opt[i * SUBSAMPLE(kWidth * 2, SUBSAMP_X) + j])); \
379 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
381 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
382 align_buffer_page_end(src_uv, 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
385 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
386 align_buffer_page_end(dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
388 align_buffer_page_end(dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X) * \
390 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
391 align_buffer_page_end(dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
393 align_buffer_page_end(dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * \
396 for (int j = 0; j < kWidth; ++j) \
397 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
399 for (int j = 0; j < 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
400 src_uv[(i * 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
404 memset(dst_y_c, 1, kWidth* kHeight); \
406 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
408 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
409 memset(dst_y_opt, 101, kWidth* kHeight); \
411 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
413 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
416 src_y + OFF, kWidth, src_uv + OFF, \
417 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X), DOY ? dst_y_c : NULL, kWidth, \
418 dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X), dst_v_c, \
419 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
423 src_y + OFF, kWidth, src_uv + OFF, \
424 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X), DOY ? dst_y_opt : NULL, \
425 kWidth, dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X), dst_v_opt, \
426 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
431 for (int j = 0; j < kWidth; ++j) { \
432 int abs_diff = abs(static_cast<int>(dst_y_c[i * kWidth + j]) - \
433 static_cast<int>(dst_y_opt[i * kWidth + j])); \
442 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
444 static_cast<int>(dst_u_c[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
446 dst_u_opt[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
454 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
456 static_cast<int>(dst_v_c[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
458 dst_v_opt[i * SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
497 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
499 const int kStrideB = ALIGNINT(kWidth * BPP_B, ALIGN); \
500 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
502 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
507 for (int i = 0; i < kWidth * kHeight; ++i) { \
517 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
519 kWidth, NEG kHeight); \
522 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
524 kStrideB, kWidth, NEG kHeight); \
528 align_buffer_page_end(dst_argb32_c, kWidth* BPP_C* kHeight); \
529 align_buffer_page_end(dst_argb32_opt, kWidth* BPP_C* kHeight); \
530 memset(dst_argb32_c, 2, kWidth* BPP_C* kHeight); \
531 memset(dst_argb32_opt, 102, kWidth* BPP_C* kHeight); \
532 FMT_B##To##FMT_C(dst_argb_c + OFF, kStrideB, dst_argb32_c, kWidth * BPP_C, \
533 kWidth, kHeight); \
535 kWidth * BPP_C, kWidth, kHeight); \
536 for (int i = 0; i < kWidth * BPP_C * kHeight; ++i) { \
600 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
602 const int kStrideB = ALIGNINT(kWidth * BPP_B, ALIGN); \
603 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
605 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
608 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
611 for (int i = 0; i < kWidth * kHeight; ++i) { \
622 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
623 src_v + OFF, kStrideUV, src_a + OFF, kWidth, \
624 dst_argb_c + OFF, kStrideB, kWidth, NEG kHeight, \
628 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
629 src_v + OFF, kStrideUV, src_a + OFF, kWidth, \
630 dst_argb_opt + OFF, kStrideB, kWidth, NEG kHeight, \
634 for (int i = 0; i < kWidth * BPP_B * kHeight; ++i) { \
669 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
671 const int kStrideB = kWidth * BPP_B; \
672 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
673 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
679 for (int j = 0; j < kWidth; ++j) \
680 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
689 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_uv + OFF, kStrideUV * 2, \
690 dst_argb_c, kWidth * BPP_B, kWidth, NEG kHeight); \
693 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_uv + OFF, kStrideUV * 2, \
694 dst_argb_opt, kWidth * BPP_B, kWidth, \
698 align_buffer_page_end(dst_argb32_c, kWidth * 4 * kHeight); \
699 align_buffer_page_end(dst_argb32_opt, kWidth * 4 * kHeight); \
700 memset(dst_argb32_c, 2, kWidth * 4 * kHeight); \
701 memset(dst_argb32_opt, 102, kWidth * 4 * kHeight); \
702 FMT_B##ToARGB(dst_argb_c, kStrideB, dst_argb32_c, kWidth * 4, kWidth, \
704 FMT_B##ToARGB(dst_argb_opt, kStrideB, dst_argb32_opt, kWidth * 4, kWidth, \
708 for (int j = 0; j < kWidth * 4; ++j) { \
710 abs(static_cast<int>(dst_argb32_c[i * kWidth * 4 + j]) - \
711 static_cast<int>(dst_argb32_opt[i * kWidth * 4 + j])); \
747 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
749 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
752 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
755 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
760 memset(dst_y_c, 1, kWidth* kHeight); \
763 memset(dst_y_opt, 101, kWidth* kHeight); \
770 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_u_c, \
771 kStrideUV, dst_v_c, kStrideUV, kWidth, NEG kHeight); \
774 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
776 kWidth, NEG kHeight); \
779 for (int j = 0; j < kWidth; ++j) { \
780 EXPECT_NEAR(static_cast<int>(dst_y_c[i * kWidth + j]), \
781 static_cast<int>(dst_y_opt[i * kWidth + j]), DIFF); \
808 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
810 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
813 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
816 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
819 memset(dst_y_c, 1, kWidth* kHeight); \
821 memset(dst_y_opt, 101, kWidth* kHeight); \
827 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_uv_c, \
829 kWidth, NEG kHeight); \
832 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
834 kStrideUV * 2, kWidth, NEG kHeight); \
837 for (int j = 0; j < kWidth; ++j) { \
838 EXPECT_NEAR(static_cast<int>(dst_y_c[i * kWidth + j]), \
839 static_cast<int>(dst_y_opt[i * kWidth + j]), DIFF); \
898 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
900 const int kStride = SUBSAMPLE(kWidth, SUB_A) * BPP_A; \
901 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
903 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
906 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
912 memset(dst_y_c, 1, kWidth* kHeight); \
914 memset(dst_y_opt, 101, kWidth* kHeight); \
917 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_uv_c, \
918 kStrideUV * 2, kWidth, NEG kHeight); \
921 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
922 dst_uv_opt, kStrideUV * 2, kWidth, NEG kHeight); \
926 for (int j = 0; j < kWidth; ++j) { \
927 int abs_diff = abs(static_cast<int>(dst_y_c[i * kWidth + j]) - \
928 static_cast<int>(dst_y_opt[i * kWidth + j])); \
971 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
976 (kWidth * BPP_A + STRIDE_A - 1) / STRIDE_A * STRIDE_A; \
978 (kWidth * BPP_B + STRIDE_B - 1) / STRIDE_B * STRIDE_B; \
988 FMT_A##To##FMT_B(src_argb + OFF, kStrideA, dst_argb_c, kStrideB, kWidth, \
993 kWidth, NEG kHeight); \
1013 const int kWidth = (fastrand() & 63) + 1; \
1018 (kWidth * BPP_A + STRIDE_A - 1) / STRIDE_A * STRIDE_A; \
1020 (kWidth * BPP_B + STRIDE_B - 1) / STRIDE_B * STRIDE_B; \
1030 FMT_A##To##FMT_B(src_argb, kStrideA, dst_argb_c, kStrideB, kWidth, \
1033 FMT_A##To##FMT_B(src_argb, kStrideA, dst_argb_opt, kStrideB, kWidth, \
1098 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
1103 (kWidth * BPP_A + STRIDE_A - 1) / STRIDE_A * STRIDE_A; \
1105 (kWidth * BPP_B + STRIDE_B - 1) / STRIDE_B * STRIDE_B; \
1116 NULL, kWidth, NEG kHeight); \
1120 kStrideB, NULL, kWidth, NEG kHeight); \
1140 const int kWidth = (fastrand() & 63) + 1; \
1145 (kWidth * BPP_A + STRIDE_A - 1) / STRIDE_A * STRIDE_A; \
1147 (kWidth * BPP_B + STRIDE_B - 1) / STRIDE_B * STRIDE_B; \
1158 kWidth, kHeight); \
1161 NULL, kWidth, kHeight); \
1194 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
1198 (kWidth * BPP_A + STRIDE_A - 1) / STRIDE_A * STRIDE_A; \
1208 FMT_ATOB(src_argb + OFF, kStrideA, dst_argb_c, kStrideA, kWidth, \
1212 FMT_ATOB(src_argb + OFF, kStrideA, dst_argb_opt, kStrideA, kWidth, \
1216 FMT_ATOB(dst_argb_c, kStrideA, dst_argb_c, kStrideA, kWidth, NEG kHeight); \
1218 FMT_ATOB(dst_argb_opt, kStrideA, dst_argb_opt, kStrideA, kWidth, \
1437 const int kWidth = benchmark_width_; in TEST_F() local
1443 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); in TEST_F()
1445 kWidth * kHeight + kStrideUV * SUBSAMPLE(kHeight, SUBSAMP_Y) * 2; in TEST_F()
1447 uint8* src_uv = src_y + kWidth * kHeight; in TEST_F()
1461 for (int i = 0; i < kHeight * kWidth; ++i) { in TEST_F()
1480 SUBSAMPLE(kDestWidth, SUBSAMP_X), 0, crop_y, kWidth, kHeight, in TEST_F()
1483 NV12ToI420(src_y + crop_y * kWidth, kWidth, in TEST_F()
1490 EXPECT_EQ(dst_y[i * kWidth + j], dst_y_2[i * kWidth + j]); in TEST_F()
1600 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
1602 const int kStrideB = ALIGNINT(kWidth * BPP_B, ALIGN); \
1603 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \
1605 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1610 for (int i = 0; i < kWidth * kHeight; ++i) { \
1620 FMT_PLANAR##To##FMT_B##Dither(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
1622 kStrideB, NULL, kWidth, NEG kHeight); \
1626 src_y + OFF, kWidth, src_u + OFF, kStrideUV, src_v + OFF, kStrideUV, \
1627 dst_argb_opt + OFF, kStrideB, NULL, kWidth, NEG kHeight); \
1631 align_buffer_page_end(dst_argb32_c, kWidth* BPP_C* kHeight); \
1632 align_buffer_page_end(dst_argb32_opt, kWidth* BPP_C* kHeight); \
1633 memset(dst_argb32_c, 2, kWidth* BPP_C* kHeight); \
1634 memset(dst_argb32_opt, 102, kWidth* BPP_C* kHeight); \
1635 FMT_B##To##FMT_C(dst_argb_c + OFF, kStrideB, dst_argb32_c, kWidth * BPP_C, \
1636 kWidth, kHeight); \
1638 kWidth * BPP_C, kWidth, kHeight); \
1639 for (int i = 0; i < kWidth * BPP_C * kHeight; ++i) { \
1673 const int kWidth = benchmark_width_; \
1676 align_buffer_page_end(orig_uyvy, 4 * SUBSAMPLE(kWidth, 2) * kHeight); \
1677 align_buffer_page_end(orig_y, kWidth* kHeight); \
1679 SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1681 SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1683 align_buffer_page_end(dst_y_orig, kWidth* kHeight); \
1685 2 * SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1687 align_buffer_page_end(dst_y, kWidth* kHeight); \
1689 2 * SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1691 MemRandomize(orig_uyvy, 4 * SUBSAMPLE(kWidth, 2) * kHeight); \
1694 libyuv::UYVYTOI420(orig_uyvy, 4 * SUBSAMPLE(kWidth, 2), orig_y, kWidth, \
1695 orig_u, SUBSAMPLE(kWidth, 2), orig_v, \
1696 SUBSAMPLE(kWidth, 2), kWidth, kHeight); \
1697 libyuv::I420ToNV12(orig_y, kWidth, orig_u, SUBSAMPLE(kWidth, 2), orig_v, \
1698 SUBSAMPLE(kWidth, 2), dst_y_orig, kWidth, dst_uv_orig, \
1699 2 * SUBSAMPLE(kWidth, 2), kWidth, kHeight); \
1703 libyuv::UYVYTONV12(orig_uyvy, 4 * SUBSAMPLE(kWidth, 2), dst_y, kWidth, \
1704 dst_uv, 2 * SUBSAMPLE(kWidth, 2), kWidth, kHeight); \
1707 for (int i = 0; i < kWidth * kHeight; ++i) { \
1710 for (int i = 0; i < kWidth * kHeight; ++i) { \
1713 for (int i = 0; i < 2 * SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2); \
1734 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \ in TESTPTOB()
1736 const int kStrideB = SUBSAMPLE(kWidth, SUB_B) * BPP_B; \ in TESTPTOB()
1737 const int kStrideUV = SUBSAMPLE(kWidth, SUBSAMP_X); \ in TESTPTOB()
1739 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \ in TESTPTOB()
1743 for (int i = 0; i < kWidth * kHeight; ++i) { \ in TESTPTOB()
1752 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \ in TESTPTOB()
1754 kStrideB, kWidth, NEG kHeight); \ in TESTPTOB()
1757 const int kStrideC = kWidth * BPP_C; \ in TESTPTOB()
1762 FMT_PLANAR##To##FMT_C(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \ in TESTPTOB()
1764 kWidth, NEG kHeight); \ in TESTPTOB()
1767 kWidth, kHeight); \ in TESTPTOB()
1825 const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
1827 const int kStrideB = SUBSAMPLE(kWidth, SUB_B) * BPP_B; \
1829 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y); \
1830 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1833 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
1835 for (int i = 0; i < kWidth * kHeight; ++i) { \
1846 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
1847 src_v + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), src_a + OFF, kWidth, \
1848 dst_argb_b + OFF, kStrideB, kWidth, NEG kHeight, ATTEN); \
1851 const int kStrideC = kWidth * BPP_C; \
1857 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
1858 src_v + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), src_a + OFF, kWidth, \
1859 dst_argb_c + OFF, kStrideC, kWidth, NEG kHeight, ATTEN); \
1862 kWidth, kHeight); \