Lines Matching refs:photometric
1010 static TIFFMethodType GetJPEGMethod(Image* image,TIFF *tiff,uint16 photometric, in GetJPEGMethod() argument
1041 if ((photometric != PHOTOMETRIC_SEPARATED) || (bits_per_sample != 8) || in GetJPEGMethod()
1292 photometric, in ReadTIFFImage() local
1369 photometric=PHOTOMETRIC_RGB; in ReadTIFFImage() local
1372 (TIFFGetFieldDefaulted(tiff,TIFFTAG_PHOTOMETRIC,&photometric) != 1) || in ReadTIFFImage()
1394 switch (photometric) in ReadTIFFImage()
1494 if ((photometric == PHOTOMETRIC_MINISBLACK) || in ReadTIFFImage()
1495 (photometric == PHOTOMETRIC_MINISWHITE)) in ReadTIFFImage()
1497 if (photometric == PHOTOMETRIC_SEPARATED) in ReadTIFFImage()
1499 if (photometric == PHOTOMETRIC_CIELAB) in ReadTIFFImage()
1605 if ((photometric == PHOTOMETRIC_PALETTE) && in ReadTIFFImage()
1697 switch (photometric) in ReadTIFFImage()
1719 if ((samples_per_pixel == 4) && (photometric == PHOTOMETRIC_RGB)) in ReadTIFFImage()
1765 if ((photometric != PHOTOMETRIC_RGB) && in ReadTIFFImage()
1766 (photometric != PHOTOMETRIC_CIELAB) && in ReadTIFFImage()
1767 (photometric != PHOTOMETRIC_SEPARATED)) in ReadTIFFImage()
1771 if ((photometric == PHOTOMETRIC_MINISBLACK) || in ReadTIFFImage()
1772 (photometric == PHOTOMETRIC_MINISWHITE)) in ReadTIFFImage()
1774 if ((photometric != PHOTOMETRIC_SEPARATED) && in ReadTIFFImage()
1778 method=GetJPEGMethod(image,tiff,photometric,bits_per_sample, in ReadTIFFImage()
2241 if (photometric == PHOTOMETRIC_CIELAB) in ReadTIFFImage()
2243 if ((photometric == PHOTOMETRIC_LOGL) || in ReadTIFFImage()
2244 (photometric == PHOTOMETRIC_MINISBLACK) || in ReadTIFFImage()
2245 (photometric == PHOTOMETRIC_MINISWHITE)) in ReadTIFFImage()
3464 photometric, in WriteTIFFImage() local
3676 photometric=PHOTOMETRIC_SEPARATED; in WriteTIFFImage()
3687 photometric=PHOTOMETRIC_CIELAB; in WriteTIFFImage()
3693 photometric=PHOTOMETRIC_YCBCR; in WriteTIFFImage()
3699 photometric=PHOTOMETRIC_RGB; in WriteTIFFImage()
3707 photometric=(uint16) (quantum_info->min_is_white != in WriteTIFFImage()
3725 photometric=PHOTOMETRIC_PALETTE; in WriteTIFFImage()
3740 if ((photometric != PHOTOMETRIC_MINISWHITE) && in WriteTIFFImage()
3741 (photometric != PHOTOMETRIC_MINISBLACK)) in WriteTIFFImage()
3787 (void) TIFFSetField(tiff,TIFFTAG_PHOTOMETRIC,photometric); in WriteTIFFImage()
3811 if (photometric == PHOTOMETRIC_RGB) in WriteTIFFImage()
3873 if (((photometric == PHOTOMETRIC_RGB) || in WriteTIFFImage()
3874 (photometric == PHOTOMETRIC_SEPARATED) || in WriteTIFFImage()
3875 (photometric == PHOTOMETRIC_MINISBLACK)) && in WriteTIFFImage()
3896 if (((photometric == PHOTOMETRIC_RGB) || in WriteTIFFImage()
3897 (photometric == PHOTOMETRIC_SEPARATED) || in WriteTIFFImage()
3898 (photometric == PHOTOMETRIC_MINISBLACK)) && in WriteTIFFImage()
3911 if (((photometric == PHOTOMETRIC_RGB) || in WriteTIFFImage()
3912 (photometric == PHOTOMETRIC_SEPARATED) || in WriteTIFFImage()
3913 (photometric == PHOTOMETRIC_MINISBLACK)) && in WriteTIFFImage()
3923 if (((photometric == PHOTOMETRIC_RGB) || in WriteTIFFImage()
3924 (photometric == PHOTOMETRIC_SEPARATED) || in WriteTIFFImage()
3925 (photometric == PHOTOMETRIC_MINISBLACK)) && in WriteTIFFImage()
3939 if (((photometric == PHOTOMETRIC_RGB) || in WriteTIFFImage()
3940 (photometric == PHOTOMETRIC_SEPARATED) || in WriteTIFFImage()
3941 (photometric == PHOTOMETRIC_MINISBLACK)) && in WriteTIFFImage()
4056 switch (photometric) in WriteTIFFImage()
4265 if (photometric != PHOTOMETRIC_PALETTE) in WriteTIFFImage()
4271 if (photometric != PHOTOMETRIC_PALETTE) in WriteTIFFImage()