Home
last modified time | relevance | path

Searched refs:bitspersample (Results 1 – 16 of 16) sorted by relevance

/libtiff-4.0.7/contrib/ras/
H A Dtif2ras.c94 short bitspersample; local
146 TIFFGetField(tif, TIFFTAG_BITSPERSAMPLE, &bitspersample);
147 if (bitspersample > 8)
153 if (bitspersample == 1)
173 bitspersample, samplesperpixel);
179 numcolors = (1 << bitspersample);
274 switch (bitspersample) {
298 error("%s: bad bits/sample: %d\n", bitspersample);
H A Dras2tif.c100 short bitspersample; local
177 bitspersample = 1;
182 bitspersample = 8;
187 bitspersample = 8;
192 bitspersample = 8;
204 TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bitspersample);
/libtiff-4.0.7/tools/
H A Dtiffcmp.c50 static uint16 bitspersample = 1; variable
171 (void) TIFFGetField(tif1, TIFFTAG_BITSPERSAMPLE, &bitspersample); in tiffcmp()
184 if (config1 != config2 && bitspersample != 8 && samplesperpixel > 1) { in tiffcmp()
334 int ppb = 8 / bitspersample; in ContigCompare()
342 switch (bitspersample) { in ContigCompare()
422 fprintf(stderr, "Bit depth %d is not supported.\n", bitspersample); in ContigCompare()
434 switch (bitspersample) { in PrintIntDiff()
441 mask1 = ~((-1) << bitspersample); in PrintIntDiff()
442 s = (8 - bitspersample); in PrintIntDiff()
445 mask2 >>= bitspersample, s -= bitspersample, pix++) { in PrintIntDiff()
[all …]
H A Dtiff2ps.c492 static uint16 bitspersample; variable
519 if (alpha && bitspersample != 8) { in checkImage()
522 bitspersample); in checkImage()
546 bitspersample = 8; in checkImage()
556 switch (bitspersample) { in checkImage()
563 bitspersample); in checkImage()
2010 bitspersample); in PS_Lvl2ImageDict()
2027 bitspersample); in PS_Lvl2ImageDict()
2545 switch (bitspersample) { in PSDataPalette()
2552 nc = 3 * (8 / bitspersample); in PSDataPalette()
[all …]
H A Dpal2rgb.c74 uint16 bitspersample, shortv; in main() local
131 bitspersample = 0; in main()
132 TIFFGetField(in, TIFFTAG_BITSPERSAMPLE, &bitspersample); in main()
133 if (bitspersample != 8) { in main()
170 cmap = checkcmap(1<<bitspersample, rmap, gmap, bmap); in main()
177 for (i = (1<<bitspersample)-1; i >= 0; i--) { in main()
H A Dtiff2bw.c118 uint16 bitspersample; in main() local
181 TIFFGetField(in, TIFFTAG_BITSPERSAMPLE, &bitspersample); in main()
182 if (bitspersample != 8) { in main()
231 if (checkcmap(in, 1<<bitspersample, red, green, blue) == 16) { in main()
234 for (i = (1<<bitspersample)-1; i >= 0; i--) { in main()
H A Dtiffdither.c207 uint16 samplesperpixel, bitspersample = 1, shortv; in main() local
256 TIFFGetField(in, TIFFTAG_BITSPERSAMPLE, &bitspersample); in main()
257 if (bitspersample != 8) { in main()
H A Dtiffsplit.c160 uint16 bitspersample, samplesperpixel, compression, shortv, *shortav; in tiffcp() local
171 CopyField(TIFFTAG_BITSPERSAMPLE, bitspersample); in tiffcp()
H A Dtiffmedian.c97 uint16 bitspersample = 1; variable
164 TIFFGetField(in, TIFFTAG_BITSPERSAMPLE, &bitspersample); in main()
166 if (bitspersample != 8 && bitspersample != 16) { in main()
H A Dtiffcp.c595 uint16 bitspersample, samplesperpixel = 1; in tiffcp() local
603 CopyField(TIFFTAG_BITSPERSAMPLE, bitspersample); in tiffcp()
814 cf = pickCopyFunc(in, out, bitspersample, samplesperpixel); in tiffcp()
1760 pickCopyFunc(TIFF* in, TIFF* out, uint16 bitspersample, uint16 samplesperpixel) in pickCopyFunc() argument
1767 if (shortv != config && bitspersample != 8 && samplesperpixel > 1) { in pickCopyFunc()
/libtiff-4.0.7/libtiff/
H A Dtif_getimage.c291 switch (img->bitspersample) { in TIFFRGBAImageBegin()
300 img->bitspersample); in TIFFRGBAImageBegin()
386 img->bitspersample); in TIFFRGBAImageBegin()
447 img->bitspersample = 8; in TIFFRGBAImageBegin()
462 img->bitspersample = 8; in TIFFRGBAImageBegin()
2314 int bitspersample = img->bitspersample; in makebwmap() local
2332 switch (bitspersample) { in makebwmap()
2450 int bitspersample = img->bitspersample; in makecmap() local
2469 switch (bitspersample) { in makecmap()
2510 if (img->bitspersample == 8) in buildMap()
[all …]
H A Dtiffio.h206 uint16 bitspersample; /* image bits/sample */ member
/libtiff-4.0.7/contrib/pds/
H A Dtif_imageiter.h43 uint16 bitspersample; /* image bits/sample */ member
H A Dtif_imageiter.c82 TIFFGetFieldDefaulted(tif, TIFFTAG_BITSPERSAMPLE, &img->bitspersample); in TIFFImageIterBegin()
/libtiff-4.0.7/contrib/win_dib/
H A DTiffile.cpp307 switch (img->bitspersample) { in DibInstallHack()
/libtiff-4.0.7/
H A DChangeLog1714 thunder encoded files with wrong bitspersample set. The libtiff
2934 when dealing with large bitspersample values, shutting up purification