Home | History | Annotate | Download | only in unit_test

Lines Matching refs:nom

285 #define DX(x, nom, denom) static_cast<int>(((Abs(x) / nom + 1) / 2) * nom * 2)
286 #define SX(x, nom, denom) static_cast<int>(((x / nom + 1) / 2) * denom * 2)
288 #define TEST_FACTOR1(name, filter, nom, denom, max_diff) \
290 int diff = TestFilter(SX(benchmark_width_, nom, denom), \
291 SX(benchmark_height_, nom, denom), \
292 DX(benchmark_width_, nom, denom), \
293 DX(benchmark_height_, nom, denom), \
299 int diff = TestFilter_16(SX(benchmark_width_, nom, denom), \
300 SX(benchmark_height_, nom, denom), \
301 DX(benchmark_width_, nom, denom), \
302 DX(benchmark_height_, nom, denom), \
309 #define TEST_FACTOR(name, nom, denom, boxdiff) \
310 TEST_FACTOR1(name, None, nom, denom, 0) \
311 TEST_FACTOR1(name, Linear, nom, denom, 3) \
312 TEST_FACTOR1(name, Bilinear, nom, denom, 3) \
313 TEST_FACTOR1(name, Box, nom, denom, boxdiff)