X-Git-Url: https://git.sesse.net/?p=fjl;a=blobdiff_plain;f=idct_test.c;h=b4cec384353703be6fb547b4db84114a1bb11eeb;hp=7dfac43805a6eb79ba8c8e28493afb43e7cc4796;hb=7a58d5cefdccb21fb1bfb1b86a816fd686ccce66;hpb=039d3c953460ec41fa8b1f9d26e9cf62a344c8ef diff --git a/idct_test.c b/idct_test.c index 7dfac43..b4cec38 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);