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);
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;
}