Lines Matching refs:SUBSAMP_X
31 #define TESTPLANARTOBI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, N, NEG) \ argument
37 align_buffer_16(src_u, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \
38 align_buffer_16(src_v, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \
46 for (int j = 0; j < kWidth / SUBSAMP_X; ++j) { \
47 src_u[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \
48 src_v[(i * kWidth / SUBSAMP_X) + j] = (random() & 0xff); \
52 src_u, kWidth / SUBSAMP_X, \
53 src_v, kWidth / SUBSAMP_X, \
59 src_u, kWidth / SUBSAMP_X, \
60 src_v, kWidth / SUBSAMP_X, \
83 #define TESTPLANARTOB(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B) \ argument
84 TESTPLANARTOBI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, , +) \
85 TESTPLANARTOBI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, Invert, -)
112 #define TESTBIPLANARTOBI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ argument
118 align_buffer_16(src_uv, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y * 2); \
126 for (int j = 0; j < kWidth / SUBSAMP_X * 2; ++j) { \
127 src_uv[(i * kWidth / SUBSAMP_X) * 2 + j] = (random() & 0xff); \
131 src_uv, kWidth / SUBSAMP_X * 2, \
137 src_uv, kWidth / SUBSAMP_X * 2, \
159 #define TESTBIPLANARTOB(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B) \ argument
160 TESTBIPLANARTOBI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, , +) \
161 TESTBIPLANARTOBI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, Invert, -)
168 #define TESTATOPLANARI(FMT_A, BPP_A, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, N, NEG) \ argument
175 align_buffer_16(dst_u_c, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \
176 align_buffer_16(dst_v_c, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \
178 align_buffer_16(dst_u_opt, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \
179 align_buffer_16(dst_v_opt, kWidth / SUBSAMP_X * kHeight / SUBSAMP_Y); \
187 dst_u_c, kWidth / SUBSAMP_X, \
188 dst_v_c, kWidth / SUBSAMP_X, \
194 dst_u_opt, kWidth / SUBSAMP_X, \
195 dst_v_opt, kWidth / SUBSAMP_X, \
211 for (int j = 0; j < kWidth / SUBSAMP_X; ++j) { \
213 abs(static_cast<int>(dst_u_c[i * kWidth / SUBSAMP_X + j]) - \
214 static_cast<int>(dst_u_opt[i * kWidth / SUBSAMP_X + j])); \
222 for (int j = 0; j < kWidth / SUBSAMP_X; ++j) { \
224 abs(static_cast<int>(dst_v_c[i * kWidth / SUBSAMP_X + j]) - \
225 static_cast<int>(dst_v_opt[i * kWidth / SUBSAMP_X + j])); \
241 #define TESTATOPLANAR(FMT_A, BPP_A, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y) \ argument
242 TESTATOPLANARI(FMT_A, BPP_A, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, , +) \
243 TESTATOPLANARI(FMT_A, BPP_A, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, Invert, -)