Mercurial > hg > wm
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 19:0fffb6f03ebf | 20:bd669312f068 |
|---|---|
| 155 | 155 |
| 156 for (col = 0; col < cols; col += NJPEG) { | 156 for (col = 0; col < cols; col += NJPEG) { |
| 157 fdct_block_8x8(input_image, col, 0, input_dcts); | 157 fdct_block_8x8(input_image, col, 0, input_dcts); |
| 158 fdct_block_8x8(orig_image, col, 0, orig_dcts); | 158 fdct_block_8x8(orig_image, col, 0, orig_dcts); |
| 159 | 159 |
| 160 for (i = 0; i < NJPEG; i++) | 160 for (i = 0; i < NJPEG; i++) { |
| 161 for (j = 0; j < NJPEG; j++) | 161 for (j = 0; j < NJPEG; j++) { |
| 162 error += sqr(input_dcts[j][i + cols] - orig_dcts[j][i + cols]); | 162 error += sqr(input_dcts[j][i + cols] - orig_dcts[j][i + cols]); |
| 163 output[j][i + col] = PIXELRANGE(fabs(input_dcts[j][i + cols] - orig_dcts[j][i + cols]) * m); | 163 output[j][i + col] = PIXELRANGE(fabs(input_dcts[j][i + cols] - orig_dcts[j][i + cols]) * m); |
| 164 } | |
| 165 } | |
| 164 } | 166 } |
| 165 | 167 |
| 166 if (!print_psnr_only) { | 168 if (!print_psnr_only) { |
| 167 for (i = 0; i < NJPEG; i++) | 169 for (i = 0; i < NJPEG; i++) |
| 168 pgm_writepgmrow(out, output[i], cols, maxval, 0); | 170 pgm_writepgmrow(out, output[i], cols, maxval, 0); |
