X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=idct_test.c;h=d6dc8b2ac075053cb526ec6657ffb480f2fcceca;hb=f2779423add3f07faccc8332914428fc6eea6652;hp=7dfac43805a6eb79ba8c8e28493afb43e7cc4796;hpb=039d3c953460ec41fa8b1f9d26e9cf62a344c8ef;p=fjl diff --git a/idct_test.c b/idct_test.c index 7dfac43..d6dc8b2 100644 --- a/idct_test.c +++ b/idct_test.c @@ -93,6 +93,11 @@ void test_performance(idct_func_t* idct) uint8_t output[DCTSIZE2]; gen_random_coeffs(coeff, DCTSIZE2); + + // Unit quantization (ie., no scaling). + for (unsigned i = 0; i < DCTSIZE2; ++i) { + quant[i] = 1; + } struct timeval start, now; gettimeofday(&start, NULL); @@ -125,6 +130,9 @@ int main(void) printf("idct_reference:\n"); test_all_idct(idct_reference); + printf("idct_float:\n"); + test_all_idct(idct_float); + printf("All tests pass.\n"); return 0; }