Lines Matching refs:tiff

665 static void TIFFGetProfiles(TIFF *tiff,Image *image,ExceptionInfo *exception)  in TIFFGetProfiles()  argument
675 if ((TIFFGetField(tiff,TIFFTAG_ICCPROFILE,&length,&profile) == 1) && in TIFFGetProfiles()
680 if ((TIFFGetField(tiff,TIFFTAG_PHOTOSHOP,&length,&profile) == 1) && in TIFFGetProfiles()
685 if ((TIFFGetField(tiff,TIFFTAG_RICHTIFFIPTC,&length,&profile) == 1) && in TIFFGetProfiles()
688 if (TIFFIsByteSwapped(tiff) != 0) in TIFFGetProfiles()
694 if ((TIFFGetField(tiff,TIFFTAG_XMLPACKET,&length,&profile) == 1) && in TIFFGetProfiles()
698 if ((TIFFGetField(tiff,34118,&length,&profile) == 1) && in TIFFGetProfiles()
702 if ((TIFFGetField(tiff,37724,&length,&profile) == 1) && in TIFFGetProfiles()
707 static void TIFFGetProperties(TIFF *tiff,Image *image,ExceptionInfo *exception) in TIFFGetProperties() argument
718 if ((TIFFGetField(tiff,TIFFTAG_ARTIST,&text) == 1) && in TIFFGetProperties()
721 if ((TIFFGetField(tiff,TIFFTAG_COPYRIGHT,&text) == 1) && in TIFFGetProperties()
724 if ((TIFFGetField(tiff,TIFFTAG_DATETIME,&text) == 1) && in TIFFGetProperties()
727 if ((TIFFGetField(tiff,TIFFTAG_DOCUMENTNAME,&text) == 1) && in TIFFGetProperties()
730 if ((TIFFGetField(tiff,TIFFTAG_HOSTCOMPUTER,&text) == 1) && in TIFFGetProperties()
733 if ((TIFFGetField(tiff,TIFFTAG_IMAGEDESCRIPTION,&text) == 1) && in TIFFGetProperties()
736 if ((TIFFGetField(tiff,TIFFTAG_MAKE,&text) == 1) && in TIFFGetProperties()
739 if ((TIFFGetField(tiff,TIFFTAG_MODEL,&text) == 1) && in TIFFGetProperties()
742 if ((TIFFGetField(tiff,TIFFTAG_OPIIMAGEID,&count,&text) == 1) && in TIFFGetProperties()
750 if ((TIFFGetField(tiff,TIFFTAG_PAGENAME,&text) == 1) && in TIFFGetProperties()
753 if ((TIFFGetField(tiff,TIFFTAG_SOFTWARE,&text) == 1) && in TIFFGetProperties()
756 if ((TIFFGetField(tiff,33423,&count,&text) == 1) && (text != (char *) NULL)) in TIFFGetProperties()
763 if ((TIFFGetField(tiff,36867,&count,&text) == 1) && (text != (char *) NULL)) in TIFFGetProperties()
770 if (TIFFGetField(tiff,TIFFTAG_SUBFILETYPE,&type) == 1) in TIFFGetProperties()
794 static void TIFFGetEXIFProperties(TIFF *tiff,Image *image, in TIFFGetEXIFProperties() argument
821 if (TIFFGetField(tiff,TIFFTAG_EXIFIFD,&offset) != 1) in TIFFGetEXIFProperties()
823 directory=TIFFCurrentDirectory(tiff); in TIFFGetEXIFProperties()
824 if (TIFFReadEXIFDirectory(tiff,offset) != 1) in TIFFGetEXIFProperties()
826 TIFFSetDirectory(tiff,directory); in TIFFGetEXIFProperties()
840 if ((TIFFGetField(tiff,exif_info[i].tag,&ascii,sans) == 1) && in TIFFGetEXIFProperties()
853 if (TIFFGetField(tiff,exif_info[i].tag,&shorty,sans) == 1) in TIFFGetEXIFProperties()
867 tiff_status=TIFFGetField(tiff,exif_info[i].tag,&shorty_num,&shorty, in TIFFGetEXIFProperties()
881 if (TIFFGetField(tiff,exif_info[i].tag,&longy,sans) == 1) in TIFFGetEXIFProperties()
892 if (TIFFGetField(tiff,exif_info[i].tag,&long8y,sans) == 1) in TIFFGetEXIFProperties()
906 if (TIFFGetField(tiff,exif_info[i].tag,&floaty,sans) == 1) in TIFFGetEXIFProperties()
917 if (TIFFGetField(tiff,exif_info[i].tag,&doubley,sans) == 1) in TIFFGetEXIFProperties()
927 TIFFSetDirectory(tiff,directory); in TIFFGetEXIFProperties()
929 (void) tiff; in TIFFGetEXIFProperties()
954 static int32 TIFFReadPixels(TIFF *tiff,const tsample_t sample,const ssize_t row, in TIFFReadPixels() argument
960 status=TIFFReadScanline(tiff,scanline,(uint32) row,sample); in TIFFReadPixels()
1010 static TIFFMethodType GetJPEGMethod(Image* image,TIFF *tiff,uint16 photometric, in GetJPEGMethod() argument
1048 if (!TIFFGetField(tiff,TIFFTAG_STRIPOFFSETS,&value) || (value == NULL)) in GetJPEGMethod()
1234 TIFFClose(tiff); \ in ReadTIFFImage()
1277 *tiff; in ReadTIFFImage() local
1325 tiff=TIFFClientOpen(image->filename,"rb",(thandle_t) image,TIFFReadBlob, in ReadTIFFImage()
1328 if (tiff == (TIFF *) NULL) in ReadTIFFImage()
1340 if (image_info->scene < (size_t) TIFFNumberOfDirectories(tiff)) in ReadTIFFImage()
1344 status=TIFFReadDirectory(tiff) != 0 ? MagickTrue : MagickFalse; in ReadTIFFImage()
1347 TIFFClose(tiff); in ReadTIFFImage()
1354 TIFFClose(tiff); in ReadTIFFImage()
1367 TIFFPrintDirectory(tiff,stdout,MagickFalse); in ReadTIFFImage()
1370 if ((TIFFGetField(tiff,TIFFTAG_IMAGEWIDTH,&width) != 1) || in ReadTIFFImage()
1371 (TIFFGetField(tiff,TIFFTAG_IMAGELENGTH,&height) != 1) || in ReadTIFFImage()
1372 (TIFFGetFieldDefaulted(tiff,TIFFTAG_PHOTOMETRIC,&photometric) != 1) || in ReadTIFFImage()
1373 (TIFFGetFieldDefaulted(tiff,TIFFTAG_COMPRESSION,&compress_tag) != 1) || in ReadTIFFImage()
1374 (TIFFGetFieldDefaulted(tiff,TIFFTAG_FILLORDER,&endian) != 1) || in ReadTIFFImage()
1375 (TIFFGetFieldDefaulted(tiff,TIFFTAG_PLANARCONFIG,&interlace) != 1) || in ReadTIFFImage()
1376 (TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLESPERPIXEL,&samples_per_pixel) != 1) || in ReadTIFFImage()
1377 (TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE,&bits_per_sample) != 1) || in ReadTIFFImage()
1378 (TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLEFORMAT,&sample_format) != 1) || in ReadTIFFImage()
1379 (TIFFGetFieldDefaulted(tiff,TIFFTAG_MINSAMPLEVALUE,&min_sample_value) != 1) || in ReadTIFFImage()
1380 (TIFFGetFieldDefaulted(tiff,TIFFTAG_MAXSAMPLEVALUE,&max_sample_value) != 1)) in ReadTIFFImage()
1382 TIFFClose(tiff); in ReadTIFFImage()
1388 TIFFClose(tiff); in ReadTIFFImage()
1483 if (TIFFIsBigEndian(tiff) == 0) in ReadTIFFImage()
1501 TIFFGetProfiles(tiff,image,exception); in ReadTIFFImage()
1502 TIFFGetProperties(tiff,image,exception); in ReadTIFFImage()
1505 TIFFGetEXIFProperties(tiff,image,exception); in ReadTIFFImage()
1506 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLESPERPIXEL, in ReadTIFFImage()
1508 if ((TIFFGetFieldDefaulted(tiff,TIFFTAG_XRESOLUTION,&x_resolution) == 1) && in ReadTIFFImage()
1509 (TIFFGetFieldDefaulted(tiff,TIFFTAG_YRESOLUTION,&y_resolution) == 1)) in ReadTIFFImage()
1514 if (TIFFGetFieldDefaulted(tiff,TIFFTAG_RESOLUTIONUNIT,&units) == 1) in ReadTIFFImage()
1521 if ((TIFFGetFieldDefaulted(tiff,TIFFTAG_XPOSITION,&x_position) == 1) && in ReadTIFFImage()
1522 (TIFFGetFieldDefaulted(tiff,TIFFTAG_YPOSITION,&y_position) == 1)) in ReadTIFFImage()
1527 if (TIFFGetFieldDefaulted(tiff,TIFFTAG_ORIENTATION,&orientation) == 1) in ReadTIFFImage()
1529 if (TIFFGetField(tiff,TIFFTAG_WHITEPOINT,&chromaticity) == 1) in ReadTIFFImage()
1537 if (TIFFGetField(tiff,TIFFTAG_PRIMARYCHROMATICITIES,&chromaticity) == 1) in ReadTIFFImage()
1553 TIFFClose(tiff); in ReadTIFFImage()
1574 tiff_status=TIFFGetField(tiff,TIFFTAG_YCBCRSUBSAMPLING,&horizontal, in ReadTIFFImage()
1614 TIFFClose(tiff); in ReadTIFFImage()
1619 if (TIFFGetFieldDefaulted(tiff,TIFFTAG_PAGENUMBER,&value,&pages) == 1) in ReadTIFFImage()
1634 tiff_status=TIFFGetField(tiff,TIFFTAG_COLORMAP,&red_colormap, in ReadTIFFImage()
1672 TIFFClose(tiff); in ReadTIFFImage()
1678 TIFFClose(tiff); in ReadTIFFImage()
1712 tiff_status=TIFFGetFieldDefaulted(tiff,TIFFTAG_EXTRASAMPLES,&extra_samples, in ReadTIFFImage()
1745 if (TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1) in ReadTIFFImage()
1778 method=GetJPEGMethod(image,tiff,photometric,bits_per_sample, in ReadTIFFImage()
1782 if (TIFFIsTiled(tiff) != MagickFalse) in ReadTIFFImage()
1786 if (TIFFScanlineSize(tiff) <= 0) in ReadTIFFImage()
1788 if (((MagickSizeType) TIFFScanlineSize(tiff)) > (2*GetBlobSize(image))) in ReadTIFFImage()
1790 number_pixels=MagickMax(TIFFScanlineSize(tiff),MagickMax((ssize_t) in ReadTIFFImage()
1835 tiff_status=TIFFReadPixels(tiff,0,y,(char *) tiff_pixels); in ReadTIFFImage()
1885 tiff_status=TIFFReadPixels(tiff,0,y,(char *) tiff_pixels); in ReadTIFFImage()
1917 tiff_status=TIFFReadPixels(tiff,(tsample_t) i,y,(char *) in ReadTIFFImage()
1971 tiff_status=TIFFReadPixels(tiff,0,y,(char *) tiff_pixels); in ReadTIFFImage()
2027 if (TIFFReadRGBAStrip(tiff,(tstrip_t) y,(uint32 *) tiff_pixels) == 0) in ReadTIFFImage()
2073 if ((TIFFGetField(tiff,TIFFTAG_TILEWIDTH,&columns) != 1) || in ReadTIFFImage()
2074 (TIFFGetField(tiff,TIFFTAG_TILELENGTH,&rows) != 1)) in ReadTIFFImage()
2113 if (TIFFReadRGBATile(tiff,(uint32) x,(uint32) y,tile_pixels) == 0) in ReadTIFFImage()
2190 (void) TIFFReadRGBAImage(tiff,(uint32) image->columns,(uint32) in ReadTIFFImage()
2257 more_frames=TIFFReadDirectory(tiff) != 0 ? MagickTrue : MagickFalse; in ReadTIFFImage()
2276 TIFFClose(tiff); in ReadTIFFImage()
2316 static void TIFFIgnoreTags(TIFF *tiff) in TIFFIgnoreTags() argument
2337 if (TIFFGetReadProc(tiff) != TIFFReadBlob) in TIFFIgnoreTags()
2339 image=(Image *)TIFFClientdata(tiff); in TIFFIgnoreTags()
2382 (void) TIFFMergeFieldInfo(tiff,ignore,(uint32) count); in TIFFIgnoreTags()
2386 static void TIFFTagExtender(TIFF *tiff) in TIFFTagExtender() argument
2397 TIFFMergeFieldInfo(tiff,TIFFExtensions,sizeof(TIFFExtensions)/ in TIFFTagExtender()
2400 (*tag_extender)(tiff); in TIFFTagExtender()
2401 TIFFIgnoreTags(tiff); in TIFFTagExtender()
2625 *tiff; in WriteGROUP4Image() local
2684 tiff=TIFFOpen(filename,"rb"); in WriteGROUP4Image()
2685 if (tiff == (TIFF *) NULL) in WriteGROUP4Image()
2697 if (TIFFGetField(tiff,TIFFTAG_STRIPBYTECOUNTS,&byte_count) != 1) in WriteGROUP4Image()
2699 TIFFClose(tiff); in WriteGROUP4Image()
2706 for (i=1; i < (ssize_t) TIFFNumberOfStrips(tiff); i++) in WriteGROUP4Image()
2713 TIFFClose(tiff); in WriteGROUP4Image()
2723 for (i=0; i < (ssize_t) TIFFNumberOfStrips(tiff); i++) in WriteGROUP4Image()
2725 count=(ssize_t) TIFFReadRawStrip(tiff,(uint32) i,buffer,strip_size); in WriteGROUP4Image()
2730 TIFFClose(tiff); in WriteGROUP4Image()
2948 TIFF *tiff,TIFFInfo *tiff_info) in GetTIFFInfo() argument
2972 if (TIFFGetField(tiff,TIFFTAG_IMAGELENGTH,&rows_per_strip) == 0) in GetTIFFInfo()
2974 rows_per_strip=TIFFDefaultStripSize(tiff,rows_per_strip); in GetTIFFInfo()
2975 (void) TIFFSetField(tiff,TIFFTAG_ROWSPERSTRIP,rows_per_strip); in GetTIFFInfo()
2986 TIFFDefaultTileSize(tiff,&tile_columns,&tile_rows); in GetTIFFInfo()
2987 (void) TIFFSetField(tiff,TIFFTAG_TILEWIDTH,tile_columns); in GetTIFFInfo()
2988 (void) TIFFSetField(tiff,TIFFTAG_TILELENGTH,tile_rows); in GetTIFFInfo()
2991 if ((TIFFScanlineSize(tiff) <= 0) || (TIFFTileSize(tiff) <= 0)) in GetTIFFInfo()
2997 tile_rows*TIFFScanlineSize(tiff),sizeof(*tiff_info->scanlines)); in GetTIFFInfo()
2999 tile_rows*TIFFTileSize(tiff),sizeof(*tiff_info->scanlines)); in GetTIFFInfo()
3009 static int32 TIFFWritePixels(TIFF *tiff,TIFFInfo *tiff_info,ssize_t row, in TIFFWritePixels() argument
3032 if (TIFFIsTiled(tiff) == 0) in TIFFWritePixels()
3033 return(TIFFWriteScanline(tiff,tiff_info->scanline,(uint32) row,sample)); in TIFFWritePixels()
3037 i=(ssize_t) (row % tiff_info->tile_geometry.height)*TIFFScanlineSize(tiff); in TIFFWritePixels()
3039 (size_t) TIFFScanlineSize(tiff)); in TIFFWritePixels()
3048 bytes_per_pixel=TIFFTileSize(tiff)/(ssize_t) ( in TIFFWritePixels()
3061 p=tiff_info->scanlines+(j*TIFFScanlineSize(tiff)+(i* in TIFFWritePixels()
3063 q=tiff_info->pixels+(j*TIFFTileRowSize(tiff)+k/8); in TIFFWritePixels()
3067 p=tiff_info->scanlines+(j*TIFFScanlineSize(tiff)+(i* in TIFFWritePixels()
3069 q=tiff_info->pixels+(j*TIFFTileRowSize(tiff)+k*bytes_per_pixel); in TIFFWritePixels()
3074 status=TIFFWriteTile(tiff,tiff_info->pixels,(uint32) (i* in TIFFWritePixels()
3217 static void TIFFSetProfiles(TIFF *tiff,Image *image) in TIFFSetProfiles() argument
3238 (void) TIFFSetField(tiff,TIFFTAG_XMLPACKET,(uint32) GetStringInfoLength( in TIFFSetProfiles()
3243 (void) TIFFSetField(tiff,TIFFTAG_ICCPROFILE,(uint32) GetStringInfoLength( in TIFFSetProfiles()
3258 if (TIFFIsByteSwapped(tiff)) in TIFFSetProfiles()
3261 (void) TIFFSetField(tiff,TIFFTAG_RICHTIFFIPTC,(uint32) in TIFFSetProfiles()
3267 (void) TIFFSetField(tiff,TIFFTAG_PHOTOSHOP,(uint32) in TIFFSetProfiles()
3271 (void) TIFFSetField(tiff,37724,(uint32) GetStringInfoLength(profile), in TIFFSetProfiles()
3274 (void) TIFFSetField(tiff,34118,(uint32) GetStringInfoLength(profile), in TIFFSetProfiles()
3280 static void TIFFSetProperties(TIFF *tiff,const MagickBooleanType adjoin, in TIFFSetProperties() argument
3288 (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,value); in TIFFSetProperties()
3291 (void) TIFFSetField(tiff,TIFFTAG_HOSTCOMPUTER,value); in TIFFSetProperties()
3294 (void) TIFFSetField(tiff,TIFFTAG_ARTIST,value); in TIFFSetProperties()
3297 (void) TIFFSetField(tiff,TIFFTAG_DATETIME,value); in TIFFSetProperties()
3300 (void) TIFFSetField(tiff,TIFFTAG_MAKE,value); in TIFFSetProperties()
3303 (void) TIFFSetField(tiff,TIFFTAG_MODEL,value); in TIFFSetProperties()
3306 (void) TIFFSetField(tiff,TIFFTAG_SOFTWARE,value); in TIFFSetProperties()
3309 (void) TIFFSetField(tiff,TIFFTAG_COPYRIGHT,value); in TIFFSetProperties()
3312 (void) TIFFSetField(tiff,33423,value); in TIFFSetProperties()
3315 (void) TIFFSetField(tiff,36867,value); in TIFFSetProperties()
3318 (void) TIFFSetField(tiff,TIFFTAG_PAGENAME,value); in TIFFSetProperties()
3321 (void) TIFFSetField(tiff,TIFFTAG_IMAGEDESCRIPTION,value); in TIFFSetProperties()
3326 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_REDUCEDIMAGE); in TIFFSetProperties()
3329 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_PAGE); in TIFFSetProperties()
3332 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_MASK); in TIFFSetProperties()
3343 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_PAGE); in TIFFSetProperties()
3344 (void) TIFFSetField(tiff,TIFFTAG_PAGENUMBER,page,pages); in TIFFSetProperties()
3348 static void TIFFSetEXIFProperties(TIFF *tiff,Image *image, in TIFFSetEXIFProperties() argument
3365 (void) TIFFSetField(tiff,TIFFTAG_SUBIFD,1,&offset); in TIFFSetEXIFProperties()
3375 (void) TIFFSetField(tiff,exif_info[i].tag,value); in TIFFSetEXIFProperties()
3384 (void) TIFFSetField(tiff,exif_info[i].tag,field); in TIFFSetEXIFProperties()
3393 (void) TIFFSetField(tiff,exif_info[i].tag,field); in TIFFSetEXIFProperties()
3403 (void) TIFFSetField(tiff,exif_info[i].tag,field); in TIFFSetEXIFProperties()
3412 (void) tiff; in TIFFSetEXIFProperties()
3455 *tiff; in WriteTIFFImage() local
3499 tiff=TIFFClientOpen(image->filename,mode,(thandle_t) image,TIFFReadBlob, in WriteTIFFImage()
3502 if (tiff == (TIFF *) NULL) in WriteTIFFImage()
3557 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_REDUCEDIMAGE); in WriteTIFFImage()
3561 (void) TIFFSetField(tiff,TIFFTAG_IMAGELENGTH,(uint32) image->rows); in WriteTIFFImage()
3562 (void) TIFFSetField(tiff,TIFFTAG_IMAGEWIDTH,(uint32) image->columns); in WriteTIFFImage()
3677 (void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,4); in WriteTIFFImage()
3678 (void) TIFFSetField(tiff,TIFFTAG_INKSET,INKSET_CMYK); in WriteTIFFImage()
3694 (void) TIFFSetField(tiff,TIFFTAG_YCBCRSUBSAMPLING,1,1); in WriteTIFFImage()
3700 (void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,3); in WriteTIFFImage()
3710 (void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,1); in WriteTIFFImage()
3724 (void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,1); in WriteTIFFImage()
3736 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_FILLORDER,&endian); in WriteTIFFImage()
3755 (void) TIFFSetField(tiff,TIFFTAG_COMPRESSION,compress_tag); in WriteTIFFImage()
3756 (void) TIFFSetField(tiff,TIFFTAG_FILLORDER,endian); in WriteTIFFImage()
3757 (void) TIFFSetField(tiff,TIFFTAG_BITSPERSAMPLE,quantum_info->depth); in WriteTIFFImage()
3779 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLESPERPIXEL, in WriteTIFFImage()
3781 (void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,samples_per_pixel+1); in WriteTIFFImage()
3782 (void) TIFFSetField(tiff,TIFFTAG_EXTRASAMPLES,extra_samples, in WriteTIFFImage()
3787 (void) TIFFSetField(tiff,TIFFTAG_PHOTOMETRIC,photometric); in WriteTIFFImage()
3792 (void) TIFFSetField(tiff,TIFFTAG_SAMPLEFORMAT,SAMPLEFORMAT_IEEEFP); in WriteTIFFImage()
3793 (void) TIFFSetField(tiff,TIFFTAG_SMINSAMPLEVALUE,quantum_info->minimum); in WriteTIFFImage()
3794 (void) TIFFSetField(tiff,TIFFTAG_SMAXSAMPLEVALUE,quantum_info->maximum); in WriteTIFFImage()
3799 (void) TIFFSetField(tiff,TIFFTAG_SAMPLEFORMAT,SAMPLEFORMAT_INT); in WriteTIFFImage()
3804 (void) TIFFSetField(tiff,TIFFTAG_SAMPLEFORMAT,SAMPLEFORMAT_UINT); in WriteTIFFImage()
3810 (void) TIFFSetField(tiff,TIFFTAG_PLANARCONFIG,PLANARCONFIG_CONTIG); in WriteTIFFImage()
3814 (void) TIFFSetField(tiff,TIFFTAG_PLANARCONFIG,PLANARCONFIG_SEPARATE); in WriteTIFFImage()
3822 (void) TIFFSetField(tiff,TIFFTAG_JPEGQUALITY,image_info->quality); in WriteTIFFImage()
3823 (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RAW); in WriteTIFFImage()
3829 (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RGB); in WriteTIFFImage()
3857 (void) TIFFSetField(tiff,TIFFTAG_YCBCRSUBSAMPLING,(uint16) in WriteTIFFImage()
3862 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, in WriteTIFFImage()
3865 (void) TIFFSetField(tiff,TIFFTAG_JPEGTABLESMODE,JPEGTABLESMODE_QUANT); in WriteTIFFImage()
3871 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, in WriteTIFFImage()
3878 (void) TIFFSetField(tiff,TIFFTAG_ZIPQUALITY,(long) ( in WriteTIFFImage()
3888 (void) TIFFSetField(tiff,TIFFTAG_GROUP3OPTIONS,4); in WriteTIFFImage()
3901 (void) TIFFSetField(tiff,TIFFTAG_LZMAPRESET,(long) ( in WriteTIFFImage()
3909 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, in WriteTIFFImage()
3921 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, in WriteTIFFImage()
3928 (void) TIFFSetField(tiff,TIFFTAG_WEBP_LEVEL,image_info->quality); in WriteTIFFImage()
3930 (void) TIFFSetField(tiff,TIFFTAG_WEBP_LOSSLESS,1); in WriteTIFFImage()
3937 (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE, in WriteTIFFImage()
3944 (void) TIFFSetField(tiff,TIFFTAG_ZSTD_LEVEL,22*image_info->quality/ in WriteTIFFImage()
3956 (void) TIFFSetField(tiff,TIFFTAG_PREDICTOR,predictor); in WriteTIFFImage()
3970 (void) TIFFSetField(tiff,TIFFTAG_RESOLUTIONUNIT,(uint16) units); in WriteTIFFImage()
3971 (void) TIFFSetField(tiff,TIFFTAG_XRESOLUTION,image->resolution.x); in WriteTIFFImage()
3972 (void) TIFFSetField(tiff,TIFFTAG_YRESOLUTION,image->resolution.y); in WriteTIFFImage()
3981 (void) TIFFSetField(tiff,TIFFTAG_XPOSITION,(float) image->page.x/ in WriteTIFFImage()
3989 (void) TIFFSetField(tiff,TIFFTAG_YPOSITION,(float) image->page.y/ in WriteTIFFImage()
4007 (void) TIFFSetField(tiff,TIFFTAG_PRIMARYCHROMATICITIES,chromaticity); in WriteTIFFImage()
4010 (void) TIFFSetField(tiff,TIFFTAG_WHITEPOINT,chromaticity); in WriteTIFFImage()
4021 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_PAGE); in WriteTIFFImage()
4023 (void) TIFFSetField(tiff,TIFFTAG_PAGENUMBER,(uint16) image->scene, in WriteTIFFImage()
4027 (void) TIFFSetField(tiff,TIFFTAG_ORIENTATION,(uint16) image->orientation); in WriteTIFFImage()
4029 (void) TIFFSetField(tiff,TIFFTAG_ORIENTATION,ORIENTATION_TOPLEFT); in WriteTIFFImage()
4030 TIFFSetProfiles(tiff,image); in WriteTIFFImage()
4040 (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_PAGE); in WriteTIFFImage()
4041 (void) TIFFSetField(tiff,TIFFTAG_PAGENUMBER,page,pages); in WriteTIFFImage()
4043 (void) TIFFSetProperties(tiff,adjoin,image,exception); in WriteTIFFImage()
4047 (void) TIFFSetEXIFProperties(tiff,image,exception); in WriteTIFFImage()
4051 if (GetTIFFInfo(image_info,tiff,&tiff_info) == MagickFalse) in WriteTIFFImage()
4084 if (TIFFWritePixels(tiff,&tiff_info,y,0,image) == -1) in WriteTIFFImage()
4112 if (TIFFWritePixels(tiff,&tiff_info,y,0,image) == -1) in WriteTIFFImage()
4131 if (TIFFWritePixels(tiff,&tiff_info,y,1,image) == -1) in WriteTIFFImage()
4150 if (TIFFWritePixels(tiff,&tiff_info,y,2,image) == -1) in WriteTIFFImage()
4170 if (TIFFWritePixels(tiff,&tiff_info,y,3,image) == -1) in WriteTIFFImage()
4204 if (TIFFWritePixels(tiff,&tiff_info,y,0,image) == -1) in WriteTIFFImage()
4252 (void) TIFFSetField(tiff,TIFFTAG_COLORMAP,red,green,blue); in WriteTIFFImage()
4283 if (TIFFWritePixels(tiff,&tiff_info,y,0,image) == -1) in WriteTIFFImage()
4303 TIFFPrintDirectory(tiff,stdout,MagickFalse); in WriteTIFFImage()
4304 (void) TIFFWriteDirectory(tiff); in WriteTIFFImage()
4312 TIFFClose(tiff); in WriteTIFFImage()