• Home
  • Raw
  • Download

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, \
743 W1280, DIFF, N, NEG, OFF) \ argument
749 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
766 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
768 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_u_c, \
772 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
804 W1280, DIFF, N, NEG, OFF) \
810 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
823 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
825 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_uv_c, \
830 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
894 SUBSAMP_Y, W1280, N, NEG, OFF) \ argument
900 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
909 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
915 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_uv_c, \
919 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
967 HEIGHT_B, W1280, DIFF, N, NEG, OFF) \ argument
977 align_buffer_page_end(src_argb, kStrideA* kHeightA + OFF); \
981 src_argb[i + OFF] = (fastrand() & 0xff); \
986 FMT_A##To##FMT_B(src_argb + OFF, kStrideA, dst_argb_c, kStrideB, kWidth, \
990 FMT_A##To##FMT_B(src_argb + OFF, kStrideA, dst_argb_opt, kStrideB, \
1094 HEIGHT_B, W1280, DIFF, N, NEG, OFF) \ argument
1104 align_buffer_page_end(src_argb, kStrideA* kHeightA + OFF); \
1108 src_argb[i + OFF] = (fastrand() & 0xff); \
1113 FMT_A##To##FMT_B##Dither(src_argb + OFF, kStrideA, dst_argb_c, kStrideB, \
1117 FMT_A##To##FMT_B##Dither(src_argb + OFF, kStrideA, dst_argb_opt, \
1190 #define TESTSYMI(FMT_ATOB, BPP_A, STRIDE_A, HEIGHT_A, W1280, N, NEG, OFF) \ argument
1197 align_buffer_page_end(src_argb, kStrideA* kHeightA + OFF); \
1201 src_argb[i + OFF] = (fastrand() & 0xff); \
1206 FMT_ATOB(src_argb + OFF, kStrideA, dst_argb_c, kStrideA, kWidth, \
1210 FMT_ATOB(src_argb + OFF, kStrideA, dst_argb_opt, kStrideA, kWidth, \
1219 EXPECT_EQ(src_argb[i + OFF], dst_argb_opt[i]); \
1596 YALIGN, W1280, DIFF, N, NEG, OFF, FMT_C, BPP_C) \ argument
1603 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1604 align_buffer_page_end(src_u, kSizeUV + OFF); \
1605 align_buffer_page_end(src_v, kSizeUV + OFF); \
1606 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
1607 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
1609 src_y[i + OFF] = (fastrand() & 0xff); \
1612 src_u[i + OFF] = (fastrand() & 0xff); \
1613 src_v[i + OFF] = (fastrand() & 0xff); \
1615 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
1616 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
1618 FMT_PLANAR##To##FMT_B##Dither(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \
1619 src_v + OFF, kStrideUV, dst_argb_c + OFF, \
1624 src_y + OFF, kWidth, src_u + OFF, kStrideUV, src_v + OFF, kStrideUV, \
1625 dst_argb_opt + OFF, kStrideB, NULL, kWidth, NEG kHeight); \
1633 FMT_B##To##FMT_C(dst_argb_c + OFF, kStrideB, dst_argb32_c, kWidth * BPP_C, \
1635 FMT_B##To##FMT_C(dst_argb_opt + OFF, kStrideB, dst_argb32_opt, \
1730 W1280, N, NEG, OFF, FMT_C, BPP_C) \ in TESTPTOB() argument
1737 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \ in TESTPTOB()
1738 align_buffer_page_end(src_u, kSizeUV + OFF); \ in TESTPTOB()
1739 align_buffer_page_end(src_v, kSizeUV + OFF); \ in TESTPTOB()
1740 align_buffer_page_end(dst_argb_b, kStrideB* kHeight + OFF); \ in TESTPTOB()
1742 src_y[i + OFF] = (fastrand() & 0xff); \ in TESTPTOB()
1745 src_u[i + OFF] = (fastrand() & 0xff); \ in TESTPTOB()
1746 src_v[i + OFF] = (fastrand() & 0xff); \ in TESTPTOB()
1748 memset(dst_argb_b + OFF, 1, kStrideB * kHeight); \ in TESTPTOB()
1750 FMT_PLANAR##To##FMT_B(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \ in TESTPTOB()
1751 src_v + OFF, kStrideUV, dst_argb_b + OFF, \ in TESTPTOB()
1756 align_buffer_page_end(dst_argb_c, kStrideC* kHeight + OFF); \ in TESTPTOB()
1757 align_buffer_page_end(dst_argb_bc, kStrideC* kHeight + OFF); \ in TESTPTOB()
1758 memset(dst_argb_c + OFF, 2, kStrideC * kHeight); \ in TESTPTOB()
1759 memset(dst_argb_bc + OFF, 3, kStrideC * kHeight); \ in TESTPTOB()
1760 FMT_PLANAR##To##FMT_C(src_y + OFF, kWidth, src_u + OFF, kStrideUV, \ in TESTPTOB()
1761 src_v + OFF, kStrideUV, dst_argb_c + OFF, kStrideC, \ in TESTPTOB()
1764 FMT_B##To##FMT_C(dst_argb_b + OFF, kStrideB, dst_argb_bc + OFF, kStrideC, \ in TESTPTOB()
1767 EXPECT_EQ(dst_argb_c[i + OFF], dst_argb_bc[i + OFF]); \ in TESTPTOB()
1821 W1280, N, NEG, OFF, FMT_C, BPP_C, ATTEN) \ argument
1828 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1829 align_buffer_page_end(src_u, kSizeUV + OFF); \
1830 align_buffer_page_end(src_v, kSizeUV + OFF); \
1831 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
1832 align_buffer_page_end(dst_argb_b, kStrideB* kHeight + OFF); \
1834 src_y[i + OFF] = (fastrand() & 0xff); \
1835 src_a[i + OFF] = (fastrand() & 0xff); \
1838 src_u[i + OFF] = (fastrand() & 0xff); \
1839 src_v[i + OFF] = (fastrand() & 0xff); \
1841 memset(dst_argb_b + OFF, 1, kStrideB * kHeight); \
1844 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
1845 src_v + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), src_a + OFF, kWidth, \
1846 dst_argb_b + OFF, kStrideB, kWidth, NEG kHeight, ATTEN); \
1850 align_buffer_page_end(dst_argb_c, kStrideC* kHeight + OFF); \
1851 align_buffer_page_end(dst_argb_bc, kStrideC* kHeight + OFF); \
1852 memset(dst_argb_c + OFF, 2, kStrideC * kHeight); \
1853 memset(dst_argb_bc + OFF, 3, kStrideC * kHeight); \
1855 src_y + OFF, kWidth, src_u + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
1856 src_v + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), src_a + OFF, kWidth, \
1857 dst_argb_c + OFF, kStrideC, kWidth, NEG kHeight, ATTEN); \
1859 FMT_B##To##FMT_C(dst_argb_b + OFF, kStrideB, dst_argb_bc + OFF, kStrideC, \
1862 EXPECT_EQ(dst_argb_c[i + OFF], dst_argb_bc[i + OFF]); \