Home
last modified time | relevance | path

Searched refs:quantum_info (Results 1 – 25 of 29) sorted by relevance

12

/external/ImageMagick/MagickCore/
Dquantum.c117 *quantum_info; in AcquireQuantumInfo() local
119 quantum_info=(QuantumInfo *) AcquireCriticalMemory(sizeof(*quantum_info)); in AcquireQuantumInfo()
120 quantum_info->signature=MagickCoreSignature; in AcquireQuantumInfo()
121 GetQuantumInfo(image_info,quantum_info); in AcquireQuantumInfo()
123 return(quantum_info); in AcquireQuantumInfo()
124 status=SetQuantumDepth(image,quantum_info,image->depth); in AcquireQuantumInfo()
125 quantum_info->endian=image->endian; in AcquireQuantumInfo()
127 quantum_info=DestroyQuantumInfo(quantum_info); in AcquireQuantumInfo()
128 return(quantum_info); in AcquireQuantumInfo()
156 static MagickBooleanType AcquireQuantumPixels(QuantumInfo *quantum_info, in AcquireQuantumPixels() argument
[all …]
Dquantum-export.c113 static inline unsigned char *PopDoublePixel(QuantumInfo *quantum_info, in PopDoublePixel() argument
124 *p=(double) (pixel*quantum_info->state.inverse_scale+quantum_info->minimum); in PopDoublePixel()
125 if (quantum_info->endian == LSBEndian) in PopDoublePixel()
148 static inline unsigned char *PopFloatPixel(QuantumInfo *quantum_info, in PopFloatPixel() argument
159 *p=(float) ((double) pixel*quantum_info->state.inverse_scale+ in PopFloatPixel()
160 quantum_info->minimum); in PopFloatPixel()
161 if (quantum_info->endian == LSBEndian) in PopFloatPixel()
176 static inline unsigned char *PopQuantumPixel(QuantumInfo *quantum_info, in PopQuantumPixel() argument
185 if (quantum_info->state.bits == 0UL) in PopQuantumPixel()
186 quantum_info->state.bits=8U; in PopQuantumPixel()
[all …]
Dquantum-import.c123 static inline const unsigned char *PushDoublePixel(QuantumInfo *quantum_info, in PushDoublePixel() argument
132 if (quantum_info->endian == LSBEndian) in PushDoublePixel()
144 *pixel-=quantum_info->minimum; in PushDoublePixel()
145 *pixel*=quantum_info->scale; in PushDoublePixel()
158 *pixel-=quantum_info->minimum; in PushDoublePixel()
159 *pixel*=quantum_info->scale; in PushDoublePixel()
163 static inline const unsigned char *PushQuantumFloatPixel(QuantumInfo *quantum_info, in PushQuantumFloatPixel() argument
172 if (quantum_info->endian == LSBEndian) in PushQuantumFloatPixel()
180 *pixel-=quantum_info->minimum; in PushQuantumFloatPixel()
181 *pixel*=quantum_info->scale; in PushQuantumFloatPixel()
[all …]
Dstream.c81 *quantum_info; member
285 if (stream_info->quantum_info != (QuantumInfo *) NULL) in DestroyStreamInfo()
286 stream_info->quantum_info=DestroyQuantumInfo(stream_info->quantum_info); in DestroyStreamInfo()
1315 stream_info->quantum_info=AcquireQuantumInfo(image_info,(Image *) NULL); in StreamImage()
1316 if (stream_info->quantum_info == (QuantumInfo *) NULL) in StreamImage()
1325 stream_info->quantum_info=DestroyQuantumInfo(stream_info->quantum_info); in StreamImage()
1326 stream_info->quantum_info=AcquireQuantumInfo(image_info,image); in StreamImage()
1327 if (stream_info->quantum_info == (QuantumInfo *) NULL) in StreamImage()
1365 *quantum_info; in StreamImagePixels() local
1494 quantum_info=stream_info->quantum_info; in StreamImagePixels()
[all …]
Dcipher.c576 *quantum_info; in PasskeyDecipherImage() local
647 quantum_info=AcquireQuantumInfo((const ImageInfo *) NULL,image); in PasskeyDecipherImage()
648 if (quantum_info == (QuantumInfo *) NULL) in PasskeyDecipherImage()
655 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in PasskeyDecipherImage()
669 length=ExportQuantumPixels(image,image_view,quantum_info,quantum_type, in PasskeyDecipherImage()
690 (void) ImportQuantumPixels(image,image_view,quantum_info,quantum_type, in PasskeyDecipherImage()
707 quantum_info=DestroyQuantumInfo(quantum_info); in PasskeyDecipherImage()
789 *quantum_info; in PasskeyEncipherImage() local
867 quantum_info=AcquireQuantumInfo((const ImageInfo *) NULL,image); in PasskeyEncipherImage()
868 if (quantum_info == (QuantumInfo *) NULL) in PasskeyEncipherImage()
[all …]
/external/ImageMagick/coders/
Dart.c107 *quantum_info; in ReadARTImage() local
156 quantum_info=AcquireQuantumInfo(image_info,image); in ReadARTImage()
157 if (quantum_info == (QuantumInfo *) NULL) in ReadARTImage()
159 length=GetQuantumExtent(image,quantum_info,GrayQuantum); in ReadARTImage()
169 GetQuantumPixels(quantum_info),&count); in ReadARTImage()
172 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadARTImage()
175 length) & 0x01,GetQuantumPixels(quantum_info),&count); in ReadARTImage()
182 quantum_info=DestroyQuantumInfo(quantum_info); in ReadARTImage()
287 *quantum_info; in WriteARTImage() local
326 quantum_info=AcquireQuantumInfo(image_info,image); in WriteARTImage()
[all …]
Dcmyk.c116 *quantum_info; in ReadCMYKImage() local
169 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadCMYKImage()
170 if (quantum_info == (QuantumInfo *) NULL) in ReadCMYKImage()
189 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadCMYKImage()
193 GetQuantumPixels(quantum_info),&count); in ReadCMYKImage()
225 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadCMYKImage()
227 GetQuantumPixels(quantum_info),&count); in ReadCMYKImage()
252 quantum_info,quantum_type,pixels,exception); in ReadCMYKImage()
287 GetQuantumPixels(quantum_info),&count); in ReadCMYKImage()
308 length=GetQuantumExtent(canvas_image,quantum_info,CyanQuantum); in ReadCMYKImage()
[all …]
Dipl.c195 *quantum_info; in ReadIPLImage() local
333 quantum_info=AcquireQuantumInfo(image_info,image); in ReadIPLImage()
334 if (quantum_info == (QuantumInfo *) NULL) in ReadIPLImage()
336 status=SetQuantumFormat(image,quantum_info,quantum_format); in ReadIPLImage()
339 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in ReadIPLImage()
357 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
369 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
379 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
389 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
398 quantum_info = DestroyQuantumInfo(quantum_info); in ReadIPLImage()
[all …]
Drgb.c116 *quantum_info; in ReadRGBImage() local
165 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadRGBImage()
166 if (quantum_info == (QuantumInfo *) NULL) in ReadRGBImage()
192 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRGBImage()
196 GetQuantumPixels(quantum_info),&count); in ReadRGBImage()
226 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRGBImage()
228 GetQuantumPixels(quantum_info),&count); in ReadRGBImage()
253 quantum_info,quantum_type,pixels,exception); in ReadRGBImage()
287 GetQuantumPixels(quantum_info),&count); in ReadRGBImage()
309 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadRGBImage()
[all …]
Dgray.c117 *quantum_info; in ReadGRAYImage() local
167 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadGRAYImage()
168 if (quantum_info == (QuantumInfo *) NULL) in ReadGRAYImage()
188 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadGRAYImage()
192 GetQuantumPixels(quantum_info),&count); in ReadGRAYImage()
222 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadGRAYImage()
224 GetQuantumPixels(quantum_info),&count); in ReadGRAYImage()
249 quantum_info,quantum_type,pixels,exception); in ReadGRAYImage()
283 GetQuantumPixels(quantum_info),&count); in ReadGRAYImage()
301 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadGRAYImage()
[all …]
Dycbcr.c116 *quantum_info; in ReadYCBCRImage() local
169 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadYCBCRImage()
170 if (quantum_info == (QuantumInfo *) NULL) in ReadYCBCRImage()
189 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadYCBCRImage()
193 GetQuantumPixels(quantum_info),&count); in ReadYCBCRImage()
225 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadYCBCRImage()
227 GetQuantumPixels(quantum_info),&count); in ReadYCBCRImage()
252 quantum_info,quantum_type,pixels,exception); in ReadYCBCRImage()
286 GetQuantumPixels(quantum_info),&count); in ReadYCBCRImage()
306 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadYCBCRImage()
[all …]
Dbgr.c117 *quantum_info; in ReadBGRImage() local
166 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadBGRImage()
167 if (quantum_info == (QuantumInfo *) NULL) in ReadBGRImage()
193 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadBGRImage()
197 GetQuantumPixels(quantum_info),&count); in ReadBGRImage()
227 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadBGRImage()
229 GetQuantumPixels(quantum_info),&count); in ReadBGRImage()
254 quantum_info,quantum_type,pixels,exception); in ReadBGRImage()
289 GetQuantumPixels(quantum_info),&count); in ReadBGRImage()
309 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadBGRImage()
[all …]
Dpgx.c152 *quantum_info; in ReadPGXImage() local
206 quantum_info=AcquireQuantumInfo(image_info,image); in ReadPGXImage()
207 if (quantum_info == (QuantumInfo *) NULL) in ReadPGXImage()
209 length=GetQuantumExtent(image,quantum_info,GrayQuantum); in ReadPGXImage()
219 GetQuantumPixels(quantum_info),&count); in ReadPGXImage()
222 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadPGXImage()
230 quantum_info=DestroyQuantumInfo(quantum_info); in ReadPGXImage()
337 *quantum_info; in WritePGXImage() local
370 quantum_info=AcquireQuantumInfo(image_info,image); in WritePGXImage()
371 if (quantum_info == (QuantumInfo *) NULL) in WritePGXImage()
[all …]
Dvicar.c166 *quantum_info; in ReadVICARImage() local
299 quantum_info=AcquireQuantumInfo(image_info,image); in ReadVICARImage()
300 if (quantum_info == (QuantumInfo *) NULL) in ReadVICARImage()
302 length=GetQuantumExtent(image,quantum_info,quantum_type); in ReadVICARImage()
309 GetQuantumPixels(quantum_info),&count); in ReadVICARImage()
312 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadVICARImage()
322 quantum_info=DestroyQuantumInfo(quantum_info); in ReadVICARImage()
437 *quantum_info; in WriteVICARImage() local
480 quantum_info=AcquireQuantumInfo(image_info,image); in WriteVICARImage()
481 if (quantum_info == (QuantumInfo *) NULL) in WriteVICARImage()
[all …]
Dpnm.c257 *quantum_info; in ReadPNMImage() local
600 quantum_info=AcquireQuantumInfo(image_info,image); in ReadPNMImage()
601 if (quantum_info == (QuantumInfo *) NULL) in ReadPNMImage()
603 SetQuantumMinIsWhite(quantum_info,MagickTrue); in ReadPNMImage()
604 extent=GetQuantumExtent(image,quantum_info,quantum_type); in ReadPNMImage()
623 GetQuantumPixels(quantum_info),&count); in ReadPNMImage()
641 length=ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadPNMImage()
649 quantum_info=DestroyQuantumInfo(quantum_info); in ReadPNMImage()
662 quantum_info=AcquireQuantumInfo(image_info,image); in ReadPNMImage()
663 if (quantum_info == (QuantumInfo *) NULL) in ReadPNMImage()
[all …]
Draw.c113 *quantum_info; in ReadRAWImage() local
160 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadRAWImage()
161 if (quantum_info == (QuantumInfo *) NULL) in ReadRAWImage()
174 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRAWImage()
178 GetQuantumPixels(quantum_info),&count); in ReadRAWImage()
200 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRAWImage()
202 GetQuantumPixels(quantum_info),&count); in ReadRAWImage()
227 length=ImportQuantumPixels(canvas_image,(CacheView *) NULL,quantum_info, in ReadRAWImage()
259 GetQuantumPixels(quantum_info),&count); in ReadRAWImage()
289 quantum_info=DestroyQuantumInfo(quantum_info); in ReadRAWImage()
[all …]
Dmat.c616 *quantum_info; in ReadMATImageV4() local
634 quantum_info=(QuantumInfo *) NULL; in ReadMATImageV4()
708 quantum_info=AcquireQuantumInfo(image_info,image); in ReadMATImageV4()
709 if (quantum_info == (QuantumInfo *) NULL) in ReadMATImageV4()
740 SetQuantumEndian(image,quantum_info,MSBEndian); in ReadMATImageV4()
741 status=SetQuantumFormat(image,quantum_info,format_type); in ReadMATImageV4()
742 status=SetQuantumDepth(image,quantum_info,depth); in ReadMATImageV4()
743 status=SetQuantumEndian(image,quantum_info,endian); in ReadMATImageV4()
744 SetQuantumScale(quantum_info,1.0); in ReadMATImageV4()
745 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in ReadMATImageV4()
[all …]
Dfits.c644 *quantum_info; in WriteFITSImage() local
687 quantum_info=AcquireQuantumInfo(image_info,image); in WriteFITSImage()
688 if (quantum_info == (QuantumInfo *) NULL) in WriteFITSImage()
699 (long) ((quantum_info->format == FloatingPointQuantumFormat ? -1 : 1)* in WriteFITSImage()
754 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in WriteFITSImage()
757 length=GetQuantumExtent(image,quantum_info,GrayQuantum); in WriteFITSImage()
763 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteFITSImage()
769 (quantum_info->format != FloatingPointQuantumFormat)) in WriteFITSImage()
783 length=GetQuantumExtent(image,quantum_info,RedQuantum); in WriteFITSImage()
789 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteFITSImage()
[all …]
Dmiff.c431 if (quantum_info != (QuantumInfo *) NULL) \ in ReadMIFFImage()
432 quantum_info=DestroyQuantumInfo(quantum_info); \ in ReadMIFFImage()
486 *quantum_info; in ReadMIFFImage() local
543 quantum_info=(QuantumInfo *) NULL; in ReadMIFFImage()
1316 quantum_info=AcquireQuantumInfo(image_info,image); in ReadMIFFImage()
1317 if (quantum_info == (QuantumInfo *) NULL) in ReadMIFFImage()
1321 status=SetQuantumFormat(image,quantum_info,quantum_format); in ReadMIFFImage()
1325 packet_size=(size_t) (quantum_info->depth/8); in ReadMIFFImage()
1327 packet_size=(size_t) (3*quantum_info->depth/8); in ReadMIFFImage()
1329 packet_size=quantum_info->depth/8; in ReadMIFFImage()
[all …]
Dtiff.c1232 if (quantum_info != (QuantumInfo *) NULL) \ in ReadTIFFImage()
1233 quantum_info=DestroyQuantumInfo(quantum_info); \ in ReadTIFFImage()
1262 *quantum_info; in ReadTIFFImage() local
1604 quantum_info=(QuantumInfo *) NULL; in ReadTIFFImage()
1685 quantum_info=AcquireQuantumInfo(image_info,image); in ReadTIFFImage()
1686 if (quantum_info == (QuantumInfo *) NULL) in ReadTIFFImage()
1689 status=SetQuantumFormat(image,quantum_info,UnsignedQuantumFormat); in ReadTIFFImage()
1691 status=SetQuantumFormat(image,quantum_info,SignedQuantumFormat); in ReadTIFFImage()
1693 status=SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat); in ReadTIFFImage()
1701 quantum_info->min_is_white=MagickFalse; in ReadTIFFImage()
[all …]
Dcin.c403 *quantum_info; in ReadCINImage() local
749 quantum_info=AcquireQuantumInfo(image_info,image); in ReadCINImage()
750 if (quantum_info == (QuantumInfo *) NULL) in ReadCINImage()
752 quantum_info->quantum=32; in ReadCINImage()
753 quantum_info->pack=MagickFalse; in ReadCINImage()
755 length=GetQuantumExtent(image,quantum_info,quantum_type); in ReadCINImage()
768 GetQuantumPixels(quantum_info),&count); in ReadCINImage()
771 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadCINImage()
784 quantum_info=DestroyQuantumInfo(quantum_info); in ReadCINImage()
916 *quantum_info; in WriteCINImage() local
[all …]
Dpdb.c758 *quantum_info; in WritePDBImage() local
884 quantum_info=AcquireQuantumInfo(image_info,image); in WritePDBImage()
885 if (quantum_info == (QuantumInfo *) NULL) in WritePDBImage()
895 status=SetQuantumDepth(image,quantum_info,image->depth > 8 ? 16 : 8); in WritePDBImage()
906 (void) ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WritePDBImage()
963 quantum_info=DestroyQuantumInfo(quantum_info); in WritePDBImage()
Ddpx.c672 *quantum_info; in ReadDPXImage() local
1242 quantum_info=AcquireQuantumInfo(image_info,image); in ReadDPXImage()
1243 if (quantum_info == (QuantumInfo *) NULL) in ReadDPXImage()
1245 SetQuantumQuantum(quantum_info,32); in ReadDPXImage()
1246 SetQuantumPack(quantum_info,dpx.image.image_element[n].packing == 0 ? in ReadDPXImage()
1266 GetQuantumPixels(quantum_info),&count); in ReadDPXImage()
1284 length=ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadDPXImage()
1291 quantum_info=DestroyQuantumInfo(quantum_info); in ReadDPXImage()
1489 *quantum_info; in WriteDPXImage() local
1990 quantum_info=AcquireQuantumInfo(image_info,image); in WriteDPXImage()
[all …]
Dfpx.c788 *quantum_info; in WriteFPXImage() local
937 quantum_info=AcquireQuantumInfo(image_info,image); in WriteFPXImage()
938 if (quantum_info == (QuantumInfo *) NULL) in WriteFPXImage()
940 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in WriteFPXImage()
970 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteFPXImage()
980 quantum_info=DestroyQuantumInfo(quantum_info); in WriteFPXImage()
Dpng.c2217 *volatile quantum_info; in ReadOnePNGImage() local
2329 quantum_info = (QuantumInfo *) NULL; in ReadOnePNGImage()
2399 quantum_info = (QuantumInfo *) NULL; in ReadOnePNGImage()
2411 if (quantum_info != (QuantumInfo *) NULL) in ReadOnePNGImage()
2412 quantum_info=DestroyQuantumInfo(quantum_info); in ReadOnePNGImage()
3452 quantum_info=AcquireQuantumInfo(image_info,image); in ReadOnePNGImage()
3454 if (quantum_info == (QuantumInfo *) NULL) in ReadOnePNGImage()
3457 (void) SetQuantumEndian(image,quantum_info,MSBEndian); in ReadOnePNGImage()
3498 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadOnePNGImage()
3502 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadOnePNGImage()
[all …]

12