Lines Matching refs:psd_info
568 static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image) in GetPSDSize() argument
570 if (psd_info->version == 1) in GetPSDSize()
943 const PSDInfo *psd_info,const size_t size) in ReadPSDRLEOffsets() argument
956 if (psd_info->version == 1) in ReadPSDRLEOffsets()
965 static MagickBooleanType ReadPSDChannelRLE(Image *image,const PSDInfo *psd_info, in ReadPSDChannelRLE() argument
1029 status=ReadPSDChannelPixels(image,psd_info->channels,y,type,pixels, in ReadPSDChannelRLE()
1155 static MagickBooleanType ReadPSDChannel(Image *image,const PSDInfo *psd_info, in ReadPSDChannel() argument
1194 status=ReadPSDChannelRaw(channel_image,psd_info->channels, in ReadPSDChannel()
1202 offsets=ReadPSDRLEOffsets(channel_image,psd_info,channel_image->rows); in ReadPSDChannel()
1206 status=ReadPSDChannelRLE(channel_image,psd_info, in ReadPSDChannel()
1260 static MagickBooleanType ReadPSDLayer(Image *image,const PSDInfo *psd_info, in ReadPSDLayer() argument
1283 if (psd_info->mode == CMYKMode) in ReadPSDLayer()
1285 if ((psd_info->mode == BitmapMode) || (psd_info->mode == GrayscaleMode) || in ReadPSDLayer()
1286 (psd_info->mode == DuotoneMode)) in ReadPSDLayer()
1315 status=ReadPSDChannel(layer_info->image,psd_info,layer_info,j, in ReadPSDLayer()
1340 const ImageInfo *image_info,const PSDInfo *psd_info, in ReadPSDLayers() argument
1363 size=GetPSDSize(psd_info,image); in ReadPSDLayers()
1380 size=GetPSDSize(psd_info,image); in ReadPSDLayers()
1462 layer_info[i].channel_info[j].size=(size_t) GetPSDSize(psd_info, in ReadPSDLayers()
1647 status=ReadPSDLayer(image,psd_info,&layer_info[i],exception); in ReadPSDLayers()
1694 Image *image,const PSDInfo *psd_info,ExceptionInfo *exception) in ReadPSDMergedImage() argument
1721 offsets=ReadPSDRLEOffsets(image,psd_info,image->rows*psd_info->channels); in ReadPSDMergedImage()
1728 for (i=0; i < (ssize_t) psd_info->channels; i++) in ReadPSDMergedImage()
1731 status=ReadPSDChannelRLE(image,psd_info,i,offsets+(i*image->rows), in ReadPSDMergedImage()
1734 status=ReadPSDChannelRaw(image,psd_info->channels,i,exception); in ReadPSDMergedImage()
1737 status=SetImageProgress(image,LoadImagesTag,i,psd_info->channels); in ReadPSDMergedImage()
1774 psd_info; in ReadPSDImage() local
1807 count=ReadBlob(image,4,(unsigned char *) psd_info.signature); in ReadPSDImage()
1808 psd_info.version=ReadBlobMSBShort(image); in ReadPSDImage()
1809 if ((count == 0) || (LocaleNCompare(psd_info.signature,"8BPS",4) != 0) || in ReadPSDImage()
1810 ((psd_info.version != 1) && (psd_info.version != 2))) in ReadPSDImage()
1812 (void) ReadBlob(image,6,psd_info.reserved); in ReadPSDImage()
1813 psd_info.channels=ReadBlobMSBShort(image); in ReadPSDImage()
1814 if (psd_info.channels > MaxPSDChannels) in ReadPSDImage()
1816 psd_info.rows=ReadBlobMSBLong(image); in ReadPSDImage()
1817 psd_info.columns=ReadBlobMSBLong(image); in ReadPSDImage()
1818 if ((psd_info.version == 1) && ((psd_info.rows > 30000) || in ReadPSDImage()
1819 (psd_info.columns > 30000))) in ReadPSDImage()
1821 psd_info.depth=ReadBlobMSBShort(image); in ReadPSDImage()
1822 if ((psd_info.depth != 1) && (psd_info.depth != 8) && (psd_info.depth != 16)) in ReadPSDImage()
1824 psd_info.mode=ReadBlobMSBShort(image); in ReadPSDImage()
1828 (double) psd_info.columns,(double) psd_info.rows,(double) in ReadPSDImage()
1829 psd_info.channels,(double) psd_info.depth,ModeToString((PSDImageType) in ReadPSDImage()
1830 psd_info.mode)); in ReadPSDImage()
1834 image->depth=psd_info.depth; in ReadPSDImage()
1835 image->columns=psd_info.columns; in ReadPSDImage()
1836 image->rows=psd_info.rows; in ReadPSDImage()
1845 if (psd_info.mode == LabMode) in ReadPSDImage()
1847 if (psd_info.mode == CMYKMode) in ReadPSDImage()
1850 image->alpha_trait=psd_info.channels > 4 ? BlendPixelTrait : in ReadPSDImage()
1853 else if ((psd_info.mode == BitmapMode) || (psd_info.mode == GrayscaleMode) || in ReadPSDImage()
1854 (psd_info.mode == DuotoneMode)) in ReadPSDImage()
1856 status=AcquireImageColormap(image,psd_info.depth != 16 ? 256 : 65536, in ReadPSDImage()
1864 image->alpha_trait=psd_info.channels > 1 ? BlendPixelTrait : in ReadPSDImage()
1868 image->alpha_trait=psd_info.channels > 3 ? BlendPixelTrait : in ReadPSDImage()
1879 if (psd_info.mode == DuotoneMode) in ReadPSDImage()
1950 length=GetPSDSize(&psd_info,image); in ReadPSDImage()
1974 if (ReadPSDLayers(image,image_info,&psd_info,skip_layers,exception) != in ReadPSDImage()
2003 &psd_info,exception); in ReadPSDImage()
2008 status=ReadPSDLayers(image,image_info,&psd_info,MagickFalse,exception); in ReadPSDImage()
2127 static inline ssize_t SetPSDOffset(const PSDInfo *psd_info,Image *image, in SetPSDOffset() argument
2130 if (psd_info->version == 1) in SetPSDOffset()
2135 static inline ssize_t SetPSDSize(const PSDInfo *psd_info,Image *image, in SetPSDSize() argument
2138 if (psd_info->version == 1) in SetPSDSize()
2253 static void WritePackbitsLength(const PSDInfo *psd_info, in WritePackbitsLength() argument
2289 (void) SetPSDOffset(psd_info,image,length); in WritePackbitsLength()
2294 static void WriteOneChannel(const PSDInfo *psd_info,const ImageInfo *image_info, in WriteOneChannel() argument
2321 (void) psd_info; in WriteOneChannel()
2355 static MagickBooleanType WriteImageChannels(const PSDInfo *psd_info, in WriteImageChannels() argument
2387 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2390 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2393 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2396 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2409 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2412 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2415 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2418 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2432 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2434 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2436 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2439 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2442 WritePackbitsLength(psd_info,image_info,image,next_image, in WriteImageChannels()
2446 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2449 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2452 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2456 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2460 WriteOneChannel(psd_info,image_info,image,next_image,compact_pixels, in WriteImageChannels()
2654 psd_info; in WritePSDImage() local
2689 psd_info.version=1; in WritePSDImage()
2692 psd_info.version=2; in WritePSDImage()
2694 (void) WriteBlobMSBShort(image,psd_info.version); /* version */ in WritePSDImage()
2830 layer_info_size+=(size_t) (4*4+2+num_channels*6+(psd_info.version == 1 ? 8 : in WritePSDImage()
2847 (void) SetPSDSize(&psd_info,image,0); in WritePSDImage()
2853 (void) SetPSDSize(&psd_info,image,layer_info_size+ in WritePSDImage()
2854 (psd_info.version == 1 ? 8 : 16)); in WritePSDImage()
2859 (void) SetPSDSize(&psd_info,image,rounded_layer_info_size); in WritePSDImage()
2884 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2888 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2897 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2899 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2901 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2905 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2913 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2915 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2917 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2919 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2923 (void) SetPSDSize(&psd_info,image,channel_size); in WritePSDImage()
2967 status=WriteImageChannels(&psd_info,image_info,image,next_image, in WritePSDImage()
2978 status=WriteImageChannels(&psd_info,image_info,image,image,MagickFalse, in WritePSDImage()