Mercurial > hg > wm
diff Meerwald/cmp_dct8x8.c @ 20:bd669312f068
suppress warnings, fix link errors
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
---|---|
date | Sat, 28 Jan 2023 23:54:58 +0100 |
parents | f83ef905a63d |
children |
line wrap: on
line diff
--- a/Meerwald/cmp_dct8x8.c Tue Sep 21 13:40:51 2010 +0200 +++ b/Meerwald/cmp_dct8x8.c Sat Jan 28 23:54:58 2023 +0100 @@ -157,10 +157,12 @@ fdct_block_8x8(input_image, col, 0, input_dcts); fdct_block_8x8(orig_image, col, 0, orig_dcts); - for (i = 0; i < NJPEG; i++) - for (j = 0; j < NJPEG; j++) + for (i = 0; i < NJPEG; i++) { + for (j = 0; j < NJPEG; j++) { error += sqr(input_dcts[j][i + cols] - orig_dcts[j][i + cols]); output[j][i + col] = PIXELRANGE(fabs(input_dcts[j][i + cols] - orig_dcts[j][i + cols]) * m); + } + } } if (!print_psnr_only) {