Lines Matching refs:psd_info

712 static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image)  in GetPSDSize()  argument
714 if (psd_info->version == 1) in GetPSDSize()
1117 const PSDInfo *psd_info,const size_t size) in ReadPSDRLESizes() argument
1130 if (psd_info->version == 1) in ReadPSDRLESizes()
1139 static MagickBooleanType ReadPSDChannelRLE(Image *image,const PSDInfo *psd_info, in ReadPSDChannelRLE() argument
1202 status=ReadPSDChannelPixels(image,psd_info->channels,y,type,pixels, in ReadPSDChannelRLE()
1347 const ImageInfo *image_info,const PSDInfo *psd_info,LayerInfo* layer_info, in ReadPSDChannel() argument
1396 status=ReadPSDChannelRaw(channel_image,psd_info->channels, in ReadPSDChannel()
1404 sizes=ReadPSDRLESizes(channel_image,psd_info,channel_image->rows); in ReadPSDChannel()
1408 status=ReadPSDChannelRLE(channel_image,psd_info, in ReadPSDChannel()
1450 const PSDInfo *psd_info,LayerInfo* layer_info,ExceptionInfo *exception) in ReadPSDLayer() argument
1467 if (psd_info->mode != IndexedMode) in ReadPSDLayer()
1509 status=ReadPSDChannel(layer_info->image,image_info,psd_info,layer_info, in ReadPSDLayer()
1547 static MagickBooleanType CheckPSDChannels(const PSDInfo *psd_info, in CheckPSDChannels() argument
1556 if (layer_info->channels < psd_info->min_channels) in CheckPSDChannels()
1559 if (psd_info->min_channels >= 3) in CheckPSDChannels()
1561 if (psd_info->min_channels >= 4) in CheckPSDChannels()
1588 (layer_info->channels >= psd_info->min_channels + 1)) in CheckPSDChannels()
1643 const ImageInfo *image_info,const PSDInfo *psd_info, in ReadPSDLayersInternal() argument
1666 size=GetPSDSize(psd_info,image); in ReadPSDLayersInternal()
1685 size=GetPSDSize(psd_info,image); in ReadPSDLayersInternal()
1783 layer_info[i].channel_info[j].size=(size_t) GetPSDSize(psd_info, in ReadPSDLayersInternal()
1791 if (CheckPSDChannels(psd_info,&layer_info[i]) == MagickFalse) in ReadPSDLayersInternal()
2002 status=ReadPSDLayer(image,image_info,psd_info,&layer_info[i], in ReadPSDLayersInternal()
2022 const ImageInfo *image_info,const PSDInfo *psd_info,ExceptionInfo *exception) in ReadPSDLayers() argument
2034 return(ReadPSDLayersInternal(image,image_info,psd_info,MagickFalse, in ReadPSDLayers()
2039 Image *image,const PSDInfo *psd_info,ExceptionInfo *exception) in ReadPSDMergedImage() argument
2068 sizes=ReadPSDRLESizes(image,psd_info,image->rows*psd_info->channels); in ReadPSDMergedImage()
2075 for (i=0; i < (ssize_t) psd_info->channels; i++) in ReadPSDMergedImage()
2081 if ((type == 1) && (psd_info->channels == 2)) in ReadPSDMergedImage()
2085 status=ReadPSDChannelRLE(image,psd_info,type,sizes+(i*image->rows), in ReadPSDMergedImage()
2088 status=ReadPSDChannelRaw(image,psd_info->channels,type,exception); in ReadPSDMergedImage()
2092 psd_info->channels); in ReadPSDMergedImage()
2128 psd_info; in ReadPSDImage() local
2164 count=ReadBlob(image,4,(unsigned char *) psd_info.signature); in ReadPSDImage()
2165 psd_info.version=ReadBlobMSBShort(image); in ReadPSDImage()
2166 if ((count != 4) || (LocaleNCompare(psd_info.signature,"8BPS",4) != 0) || in ReadPSDImage()
2167 ((psd_info.version != 1) && (psd_info.version != 2))) in ReadPSDImage()
2169 (void) ReadBlob(image,6,psd_info.reserved); in ReadPSDImage()
2170 psd_info.channels=ReadBlobMSBShort(image); in ReadPSDImage()
2171 if (psd_info.channels < 1) in ReadPSDImage()
2173 if (psd_info.channels > MaxPSDChannels) in ReadPSDImage()
2175 psd_info.rows=ReadBlobMSBLong(image); in ReadPSDImage()
2176 psd_info.columns=ReadBlobMSBLong(image); in ReadPSDImage()
2177 if ((psd_info.version == 1) && ((psd_info.rows > 30000) || in ReadPSDImage()
2178 (psd_info.columns > 30000))) in ReadPSDImage()
2180 psd_info.depth=ReadBlobMSBShort(image); in ReadPSDImage()
2181 if ((psd_info.depth != 1) && (psd_info.depth != 8) && in ReadPSDImage()
2182 (psd_info.depth != 16) && (psd_info.depth != 32)) in ReadPSDImage()
2184 psd_info.mode=ReadBlobMSBShort(image); in ReadPSDImage()
2185 if ((psd_info.mode == IndexedMode) && (psd_info.channels > 3)) in ReadPSDImage()
2190 (double) psd_info.columns,(double) psd_info.rows,(double) in ReadPSDImage()
2191 psd_info.channels,(double) psd_info.depth,ModeToString((PSDImageType) in ReadPSDImage()
2192 psd_info.mode)); in ReadPSDImage()
2198 image->depth=psd_info.depth; in ReadPSDImage()
2199 image->columns=psd_info.columns; in ReadPSDImage()
2200 image->rows=psd_info.rows; in ReadPSDImage()
2207 psd_info.min_channels=3; in ReadPSDImage()
2208 if (psd_info.mode == LabMode) in ReadPSDImage()
2210 if (psd_info.mode == CMYKMode) in ReadPSDImage()
2212 psd_info.min_channels=4; in ReadPSDImage()
2215 else if ((psd_info.mode == BitmapMode) || (psd_info.mode == GrayscaleMode) || in ReadPSDImage()
2216 (psd_info.mode == DuotoneMode)) in ReadPSDImage()
2218 if (psd_info.depth != 32) in ReadPSDImage()
2220 status=AcquireImageColormap(image,(size_t) (psd_info.depth < 16 ? in ReadPSDImage()
2228 psd_info.min_channels=1; in ReadPSDImage()
2231 if (psd_info.channels < psd_info.min_channels) in ReadPSDImage()
2237 if ((psd_info.mode == IndexedMode) && (length < 3)) in ReadPSDImage()
2244 if ((psd_info.mode == DuotoneMode) || (psd_info.depth == 32)) in ReadPSDImage()
2314 length=GetPSDSize(&psd_info,image); in ReadPSDImage()
2338 if (ReadPSDLayersInternal(image,image_info,&psd_info,skip_layers, in ReadPSDImage()
2378 &psd_info,exception); in ReadPSDImage()
2383 status=ReadPSDLayersInternal(image,image_info,&psd_info,MagickFalse, in ReadPSDImage()
2529 static inline ssize_t SetPSDOffset(const PSDInfo *psd_info,Image *image, in SetPSDOffset() argument
2532 if (psd_info->version == 1) in SetPSDOffset()
2537 static inline ssize_t WritePSDOffset(const PSDInfo *psd_info,Image *image, in WritePSDOffset() argument
2548 if (psd_info->version == 1) in WritePSDOffset()
2556 static inline ssize_t SetPSDSize(const PSDInfo *psd_info,Image *image, in SetPSDSize() argument
2559 if (psd_info->version == 1) in SetPSDSize()
2564 static inline ssize_t WritePSDSize(const PSDInfo *psd_info,Image *image, in WritePSDSize() argument
2575 result=SetPSDSize(psd_info,image,size); in WritePSDSize()
2691 static size_t WriteCompressionStart(const PSDInfo *psd_info,Image *image, in WriteCompressionStart() argument
2707 length+=SetPSDOffset(psd_info,image,0); in WriteCompressionStart()
2718 static size_t WritePSDChannel(const PSDInfo *psd_info, in WritePSDChannel() argument
2767 count+=WriteCompressionStart(psd_info,image,next_image,compression,1); in WritePSDChannel()
2816 size_offset+=WritePSDOffset(psd_info,image,length,size_offset); in WritePSDChannel()
2871 static size_t WritePSDChannels(const PSDInfo *psd_info, in WritePSDChannels() argument
2919 count+=WriteCompressionStart(psd_info,image,next_image,compression, in WritePSDChannels()
2921 offset_length=(next_image->rows*(psd_info->version == 1 ? 2 : 4)); in WritePSDChannels()
2926 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2930 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
2939 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2943 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
2953 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2957 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
2962 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2966 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
2971 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2975 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
2982 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2986 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
2994 length=WritePSDChannel(psd_info,image_info,image,next_image, in WritePSDChannels()
2998 size_offset+=WritePSDSize(psd_info,image,length,size_offset)+2; in WritePSDChannels()
3025 length=WritePSDChannel(psd_info,image_info,image,mask, in WritePSDChannels()
3028 (void) WritePSDSize(psd_info,image,length,size_offset); in WritePSDChannels()
3100 static inline size_t WriteChannelSize(const PSDInfo *psd_info,Image *image, in WriteChannelSize() argument
3107 count+=SetPSDSize(psd_info,image,0); in WriteChannelSize()
3321 const ImageInfo *image_info,const PSDInfo *psd_info,size_t *layers_size, in WritePSDLayersInternal() argument
3361 (void) SetPSDSize(psd_info,image,0); in WritePSDLayersInternal()
3416 size+=WriteChannelSize(psd_info,image,(signed short) i); in WritePSDLayersInternal()
3418 size+=WriteChannelSize(psd_info,image,-1); in WritePSDLayersInternal()
3420 size+=WriteChannelSize(psd_info,image,-2); in WritePSDLayersInternal()
3491 length=WritePSDChannels(psd_info,image_info,image,next_image, in WritePSDLayersInternal()
3510 (void) WritePSDSize(psd_info,image,rounded_size,size_offset); in WritePSDLayersInternal()
3529 const ImageInfo *image_info,const PSDInfo *psd_info,ExceptionInfo *exception) in WritePSDLayers() argument
3541 return WritePSDLayersInternal(image,image_info,psd_info,(size_t*) NULL, in WritePSDLayers()
3555 psd_info; in WritePSDImage() local
3585 psd_info.version=1; in WritePSDImage()
3588 psd_info.version=2; in WritePSDImage()
3590 (void) WriteBlobMSBShort(image,psd_info.version); /* version */ in WritePSDImage()
3718 (void) SetPSDSize(&psd_info,image,0); in WritePSDImage()
3719 status=WritePSDLayersInternal(image,image_info,&psd_info,&size, in WritePSDImage()
3721 size_offset+=WritePSDSize(&psd_info,image,size+ in WritePSDImage()
3722 (psd_info.version == 1 ? 8 : 12),size_offset); in WritePSDImage()
3738 if (WritePSDChannels(&psd_info,image_info,image,image,0,MagickFalse, in WritePSDImage()