Mercurial > hg > forks > libbpg
diff bpgenc.c @ 25:a6e6f87414ea
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 10 May 2017 14:10:45 +0300 |
parents | 377dc78a052d |
children | a6e11adda0be |
line wrap: on
line diff
--- a/bpgenc.c Wed May 10 14:09:07 2017 +0300 +++ b/bpgenc.c Wed May 10 14:10:45 2017 +0300 @@ -1130,7 +1130,7 @@ !TIFFGetField(tif, TIFFTAG_SAMPLESPERPIXEL, &img_spp) || !TIFFGetField(tif, TIFFTAG_BITSPERSAMPLE, &img_depth)) { - fprintf(stderr, "TIFF file lacks basic fields!\n"); + fprintf(stderr, "TIFF file '%s' lacks basic fields!\n", filename); goto err; } @@ -1364,6 +1364,7 @@ return img; } + Image *read_png(BPGMetaData **pmd, FILE *f, BPGColorSpaceEnum color_space, int out_bit_depth, int limited_range, int premultiplied_alpha) @@ -1850,6 +1851,7 @@ return img; } + static const char PROBE_TIFF_MAGIC_LE[] = { 'I', 'I', 42, 0 }; static const char PROBE_TIFF_MAGIC_BE[] = { 'M', 'M', 0, 42 }; #define PROBE_BUF_SIZE 8 @@ -3110,7 +3112,7 @@ "-hash include MD5 hash in HEVC bitstream\n" "-keepmetadata keep the metadata (from JPEG: EXIF, ICC profile, XMP, from PNG: ICC profile)\n" "-v show debug messages\n" - ); + ); } exit(1);