Lines Matching refs:SUBSAMPLE

37 #define SUBSAMPLE(v, a) ((((v) + (a) - 1)) / (a))
46 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
47 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \
49 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
50 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \
53 SUBSAMPLE(kWidth, SUBSAMP_X) * \
54 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
56 SUBSAMPLE(kWidth, SUBSAMP_X) * \
57 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
60 SUBSAMPLE(kWidth, SUBSAMP_X) * \
61 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
63 SUBSAMPLE(kWidth, SUBSAMP_X) * \
64 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
69 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
70 for (int j = 0; j < SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
71 src_u[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
73 src_v[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
78 memset(dst_u_c, 2, SUBSAMPLE(kWidth, SUBSAMP_X) * \
79 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
80 memset(dst_v_c, 3, SUBSAMPLE(kWidth, SUBSAMP_X) * \
81 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
83 memset(dst_u_opt, 102, SUBSAMPLE(kWidth, SUBSAMP_X) * \
84 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
85 memset(dst_v_opt, 103, SUBSAMPLE(kWidth, SUBSAMP_X) * \
86 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
90 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
92 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
94 dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X), \
95 dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X), \
101 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
103 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
105 dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
106 dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
121 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
122 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
125 SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
127 SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
134 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
135 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
138 SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
140 SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
191 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
192 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \
194 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
195 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \
197 align_buffer_64(dst_uv_c, SUBSAMPLE(kWidth * 2, SUBSAMP_X) * \
198 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
200 align_buffer_64(dst_uv_opt, SUBSAMPLE(kWidth * 2, SUBSAMP_X) * \
201 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
206 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
207 for (int j = 0; j < SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
208 src_u[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
210 src_v[(i * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
215 memset(dst_uv_c, 2, SUBSAMPLE(kWidth * 2, SUBSAMP_X) * \
216 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
218 memset(dst_uv_opt, 102, SUBSAMPLE(kWidth * 2, SUBSAMP_X) * \
219 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
223 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
225 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
227 dst_uv_c, SUBSAMPLE(kWidth * 2, SUBSAMP_X), \
233 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
235 SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
238 SUBSAMPLE(kWidth * 2, SUBSAMP_X), \
253 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
254 for (int j = 0; j < SUBSAMPLE(kWidth * 2, SUBSAMP_X); ++j) { \
257 SUBSAMPLE(kWidth * 2, SUBSAMP_X) + j]) - \
259 SUBSAMPLE(kWidth * 2, SUBSAMP_X) + j])); \
299 align_buffer_64(src_uv, 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * \
300 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + OFF); \
303 SUBSAMPLE(kWidth, SUBSAMP_X) * \
304 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
306 SUBSAMPLE(kWidth, SUBSAMP_X) * \
307 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
310 SUBSAMPLE(kWidth, SUBSAMP_X) * \
311 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
313 SUBSAMPLE(kWidth, SUBSAMP_X) * \
314 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
319 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
320 for (int j = 0; j < 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X); ++j) { \
321 src_uv[(i * 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X)) + j + OFF] = \
326 memset(dst_u_c, 2, SUBSAMPLE(kWidth, SUBSAMP_X) * \
327 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
328 memset(dst_v_c, 3, SUBSAMPLE(kWidth, SUBSAMP_X) * \
329 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
331 memset(dst_u_opt, 102, SUBSAMPLE(kWidth, SUBSAMP_X) * \
332 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
333 memset(dst_v_opt, 103, SUBSAMPLE(kWidth, SUBSAMP_X) * \
334 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
338 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
340 dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X), \
341 dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X), \
347 2 * SUBSAMPLE(kWidth, SRC_SUBSAMP_X), \
349 dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
350 dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
365 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
366 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
369 SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
371 SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
378 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
379 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
382 SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
384 SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
428 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y); \
446 src_u + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
447 src_v + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
453 src_u + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
454 src_v + OFF, SUBSAMPLE(kWidth, SUBSAMP_X), \
533 SUBSAMPLE(kWidth, SUBSAMP_X) * \
534 SUBSAMPLE(kHeight, SUBSAMP_Y) * 2 + OFF); \
541 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
542 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X) * 2; ++j) { \
543 src_uv[(i * SUBSAMPLE(kWidth, SUBSAMP_X)) * 2 + j + OFF] = \
551 src_uv + OFF, SUBSAMPLE(kWidth, SUBSAMP_X) * 2, \
557 src_uv + OFF, SUBSAMPLE(kWidth, SUBSAMP_X) * 2, \
613 (SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMP_X * 8 * BPP_A + 7) / 8; \
617 SUBSAMPLE(kWidth, SUBSAMP_X) * \
618 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
620 SUBSAMPLE(kWidth, SUBSAMP_X) * \
621 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
624 SUBSAMPLE(kWidth, SUBSAMP_X) * \
625 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
627 SUBSAMPLE(kWidth, SUBSAMP_X) * \
628 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
631 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
633 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
636 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
638 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
646 dst_u_c, SUBSAMPLE(kWidth, SUBSAMP_X), \
647 dst_v_c, SUBSAMPLE(kWidth, SUBSAMP_X), \
653 dst_u_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
654 dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X), \
669 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
670 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
673 SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
675 SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
682 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
683 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X); ++j) { \
686 SUBSAMPLE(kWidth, SUBSAMP_X) + j]) - \
688 SUBSAMPLE(kWidth, SUBSAMP_X) + j])); \
752 SUBSAMPLE(kWidth, SUBSAMP_X) * 2 * \
753 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
756 SUBSAMPLE(kWidth, SUBSAMP_X) * 2 * \
757 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
763 memset(dst_uv_c, 2, SUBSAMPLE(kWidth, SUBSAMP_X) * 2 * \
764 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
766 memset(dst_uv_opt, 102, SUBSAMPLE(kWidth, SUBSAMP_X) * 2 * \
767 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
771 dst_uv_c, SUBSAMPLE(kWidth, SUBSAMP_X) * 2, \
777 dst_uv_opt, SUBSAMPLE(kWidth, SUBSAMP_X) * 2, \
792 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
793 for (int j = 0; j < SUBSAMPLE(kWidth, SUBSAMP_X) * 2; ++j) { \
796 SUBSAMPLE(kWidth, SUBSAMP_X) * 2 + j]) - \
798 SUBSAMPLE(kWidth, SUBSAMP_X) * 2 + j])); \
1041 SUBSAMPLE(benchmark_width_, 2) *
1042 SUBSAMPLE(benchmark_height_, 2));
1044 SUBSAMPLE(benchmark_width_, 2) *
1045 SUBSAMPLE(benchmark_height_, 2));
1057 dst_u_opt, SUBSAMPLE(benchmark_width_, 2),
1058 dst_v_opt, SUBSAMPLE(benchmark_width_, 2),