Lines Matching refs:OFF
34 FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, W1280, N, NEG, OFF) \ argument
38 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
41 OFF); \
44 OFF); \
57 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
60 src_u[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
62 src_v[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
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, \
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, \
159 W1280, N, NEG, OFF, PN, OFF_U, OFF_V) \ argument
165 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
167 kSizeUV*((PIXEL_STRIDE == 3) ? 3 : 2) + OFF); \
183 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
186 src_u[(i * src_stride_uv) + j * PIXEL_STRIDE + OFF] = \
188 src_v[(i * src_stride_uv) + j * PIXEL_STRIDE + OFF] = \
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, \
211 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
212 src_v + OFF, SUBSAMPLE(kWidth, SRC_SUBSAMP_X), PIXEL_STRIDE, \
282 FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, W1280, N, NEG, OFF) \ argument
286 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
289 OFF); \
292 OFF); \
301 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
304 src_u[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
306 src_v[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
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, \
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, \
376 FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, W1280, N, NEG, OFF, \ argument
381 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
384 OFF); \
397 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
400 src_uv[(i * 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
416 src_y + OFF, kWidth, src_uv + OFF, \
423 src_y + OFF, kWidth, src_uv + OFF, \
495 YALIGN, W1280, DIFF, N, NEG, OFF, FMT_C, BPP_C) \ argument
502 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
503 align_buffer_page_end(src_u, kSizeUV + OFF); \
504 align_buffer_page_end(src_v, kSizeUV + OFF); \
505 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
506 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
508 src_y[i + OFF] = (fastrand() & 0xff); \
511 src_u[i + OFF] = (fastrand() & 0xff); \
512 src_v[i + OFF] = (fastrand() & 0xff); \
514 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
515 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
517 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
518 src_v + OFF, kStrideUV, dst_argb_c + OFF, kStrideB, \
522 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
523 src_v + OFF, kStrideUV, dst_argb_opt + OFF, \
532 FMT_B##To##FMT_C(dst_argb_c + OFF, kStrideB, dst_argb32_c, kWidth * BPP_C, \
534 FMT_B##To##FMT_C(dst_argb_opt + OFF, kStrideB, dst_argb32_opt, \
598 YALIGN, W1280, DIFF, N, NEG, OFF, ATTEN) \ argument
605 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
606 align_buffer_page_end(src_u, kSizeUV + OFF); \
607 align_buffer_page_end(src_v, kSizeUV + OFF); \
608 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
609 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
610 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
612 src_y[i + OFF] = (fastrand() & 0xff); \
613 src_a[i + OFF] = (fastrand() & 0xff); \
616 src_u[i + OFF] = (fastrand() & 0xff); \
617 src_v[i + OFF] = (fastrand() & 0xff); \
619 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
620 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
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, \
635 int abs_diff = abs(static_cast<int>(dst_argb_c[i + OFF]) - \
636 static_cast<int>(dst_argb_opt[i + OFF])); \
667 W1280, DIFF, N, NEG, OFF) \ argument
673 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
675 kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y) * 2 + OFF); \
680 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
683 src_uv[i * kStrideUV * 2 + j + OFF] = (fastrand() & 0xff); \
689 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_uv + OFF, kStrideUV * 2, \
693 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_uv + OFF, kStrideUV * 2, \
745 W1280, DIFF, N, NEG, OFF) \ argument
751 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
768 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
770 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_u_c, \
774 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
806 W1280, DIFF, N, NEG, OFF) \
812 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
825 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
827 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_uv_c, \
832 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
896 SUBSAMP_Y, W1280, N, NEG, OFF) \ argument
902 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
911 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
917 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_uv_c, \
921 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
969 HEIGHT_B, W1280, DIFF, N, NEG, OFF) \ argument
979 align_buffer_page_end(src_argb, kStrideA* kHeightA + OFF); \
983 src_argb[i + OFF] = (fastrand() & 0xff); \
988 FMT_A##To##FMT_B(src_argb + OFF, kStrideA, dst_argb_c, kStrideB, kWidth, \
992 FMT_A##To##FMT_B(src_argb + OFF, kStrideA, dst_argb_opt, kStrideB, \
1096 HEIGHT_B, W1280, DIFF, N, NEG, OFF) \ argument
1106 align_buffer_page_end(src_argb, kStrideA* kHeightA + OFF); \
1110 src_argb[i + OFF] = (fastrand() & 0xff); \
1115 FMT_A##To##FMT_B##Dither(src_argb + OFF, kStrideA, dst_argb_c, kStrideB, \
1119 FMT_A##To##FMT_B##Dither(src_argb + OFF, kStrideA, dst_argb_opt, \
1192 #define TESTSYMI(FMT_ATOB, BPP_A, STRIDE_A, HEIGHT_A, W1280, N, NEG, OFF) \ argument
1199 align_buffer_page_end(src_argb, kStrideA* kHeightA + OFF); \
1203 src_argb[i + OFF] = (fastrand() & 0xff); \
1208 FMT_ATOB(src_argb + OFF, kStrideA, dst_argb_c, kStrideA, kWidth, \
1212 FMT_ATOB(src_argb + OFF, kStrideA, dst_argb_opt, kStrideA, kWidth, \
1221 EXPECT_EQ(src_argb[i + OFF], dst_argb_opt[i]); \
1598 YALIGN, W1280, DIFF, N, NEG, OFF, FMT_C, BPP_C) \ argument
1605 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1606 align_buffer_page_end(src_u, kSizeUV + OFF); \
1607 align_buffer_page_end(src_v, kSizeUV + OFF); \
1608 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
1609 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
1611 src_y[i + OFF] = (fastrand() & 0xff); \
1614 src_u[i + OFF] = (fastrand() & 0xff); \
1615 src_v[i + OFF] = (fastrand() & 0xff); \
1617 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
1618 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
1620 FMT_PLANAR##To##FMT_B##Dither(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
1621 src_v + OFF, kStrideUV, dst_argb_c + OFF, \
1626 src_y + OFF, kWidth, src_u + OFF, kStrideUV, src_v + OFF, kStrideUV, \
1627 dst_argb_opt + OFF, kStrideB, NULL, kWidth, NEG kHeight); \
1635 FMT_B##To##FMT_C(dst_argb_c + OFF, kStrideB, dst_argb32_c, kWidth * BPP_C, \
1637 FMT_B##To##FMT_C(dst_argb_opt + OFF, kStrideB, dst_argb32_opt, \
1732 W1280, N, NEG, OFF, FMT_C, BPP_C) \ in TESTPTOB() argument
1739 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \ in TESTPTOB()
1740 align_buffer_page_end(src_u, kSizeUV + OFF); \ in TESTPTOB()
1741 align_buffer_page_end(src_v, kSizeUV + OFF); \ in TESTPTOB()
1742 align_buffer_page_end(dst_argb_b, kStrideB* kHeight + OFF); \ in TESTPTOB()
1744 src_y[i + OFF] = (fastrand() & 0xff); \ in TESTPTOB()
1747 src_u[i + OFF] = (fastrand() & 0xff); \ in TESTPTOB()
1748 src_v[i + OFF] = (fastrand() & 0xff); \ in TESTPTOB()
1750 memset(dst_argb_b + OFF, 1, kStrideB * kHeight); \ in TESTPTOB()
1752 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \ in TESTPTOB()
1753 src_v + OFF, kStrideUV, dst_argb_b + OFF, \ in TESTPTOB()
1758 align_buffer_page_end(dst_argb_c, kStrideC* kHeight + OFF); \ in TESTPTOB()
1759 align_buffer_page_end(dst_argb_bc, kStrideC* kHeight + OFF); \ in TESTPTOB()
1760 memset(dst_argb_c + OFF, 2, kStrideC * kHeight); \ in TESTPTOB()
1761 memset(dst_argb_bc + OFF, 3, kStrideC * kHeight); \ in TESTPTOB()
1762 FMT_PLANAR##To##FMT_C(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \ in TESTPTOB()
1763 src_v + OFF, kStrideUV, dst_argb_c + OFF, kStrideC, \ in TESTPTOB()
1766 FMT_B##To##FMT_C(dst_argb_b + OFF, kStrideB, dst_argb_bc + OFF, kStrideC, \ in TESTPTOB()
1769 EXPECT_EQ(dst_argb_c[i + OFF], dst_argb_bc[i + OFF]); \ in TESTPTOB()
1823 W1280, N, NEG, OFF, FMT_C, BPP_C, ATTEN) \ argument
1830 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1831 align_buffer_page_end(src_u, kSizeUV + OFF); \
1832 align_buffer_page_end(src_v, kSizeUV + OFF); \
1833 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
1834 align_buffer_page_end(dst_argb_b, kStrideB* kHeight + OFF); \
1836 src_y[i + OFF] = (fastrand() & 0xff); \
1837 src_a[i + OFF] = (fastrand() & 0xff); \
1840 src_u[i + OFF] = (fastrand() & 0xff); \
1841 src_v[i + OFF] = (fastrand() & 0xff); \
1843 memset(dst_argb_b + OFF, 1, kStrideB * kHeight); \
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); \
1852 align_buffer_page_end(dst_argb_c, kStrideC* kHeight + OFF); \
1853 align_buffer_page_end(dst_argb_bc, kStrideC* kHeight + OFF); \
1854 memset(dst_argb_c + OFF, 2, kStrideC * kHeight); \
1855 memset(dst_argb_bc + OFF, 3, kStrideC * kHeight); \
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); \
1861 FMT_B##To##FMT_C(dst_argb_b + OFF, kStrideB, dst_argb_bc + OFF, kStrideC, \
1864 EXPECT_EQ(dst_argb_c[i + OFF], dst_argb_bc[i + OFF]); \