kopia lustrzana https://gitlab.com/sane-project/backends
Fixed 16 bit tiff output.
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
c27627281c
commit
df8b2a8460
|
@ -296,7 +296,7 @@ write_tiff_grey_header (FILE *fptr, int width, int height, int depth,
|
|||
add_ifd_entry (ifd, 257, (height > 0xffff) ? IFDE_TYP_LONG : IFDE_TYP_SHORT,
|
||||
1, height);
|
||||
/* bits per sample */
|
||||
add_ifd_entry (ifd, 258, IFDE_TYP_SHORT, 1, 8);
|
||||
add_ifd_entry (ifd, 258, IFDE_TYP_SHORT, 1, depth);
|
||||
/* compression (uncompressed) */
|
||||
add_ifd_entry (ifd, 259, IFDE_TYP_SHORT, 1, 1);
|
||||
/* photometric interpretation */
|
||||
|
|
Ładowanie…
Reference in New Issue