# | Line 352 | Line 352 | tmap2bmp(char *fnin, char *fnout, char *expec, RGBPRIM | |
---|---|---|
352 | BMPWriter *wtr; | |
353 | FILE *fp; | |
354 | int xr, yr; | |
355 | < | BYTE *pa; |
355 | > | uby8 *pa; |
356 | int i; | |
357 | /* check tone-mapping spec */ | |
358 | i = strlen(expec); | |
# | Line 397 | Line 397 | tmap2bmp(char *fnin, char *fnout, char *expec, RGBPRIM | |
397 | quiterr("cannot allocate writer structure"); | |
398 | /* write to BMP file */ | |
399 | while (wtr->yscan < yr) { | |
400 | < | BYTE *scn = pa + xr*((tmflags & TM_F_BW) ? 1 : 3)* |
400 | > | uby8 *scn = pa + xr*((tmflags & TM_F_BW) ? 1 : 3)* |
401 | (yr-1 - wtr->yscan); | |
402 | if (tmflags & TM_F_BW) | |
403 | memcpy((void *)wtr->scanline, (void *)scn, xr); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |