Home
last modified time | relevance | path

Searched refs:quantum_info (Results 1 – 25 of 31) 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()
156 *pixel-=quantum_info->minimum; in PushDoublePixel()
157 *pixel*=quantum_info->scale; in PushDoublePixel()
161 static inline float ScaleFloatPixel(const QuantumInfo *quantum_info, in ScaleFloatPixel() argument
168 pixel-=quantum_info->minimum; in ScaleFloatPixel()
169 pixel*=quantum_info->scale; in ScaleFloatPixel()
178 const QuantumInfo *quantum_info,const unsigned char *magick_restrict pixels, in PushQuantumFloatPixel() argument
184 if (quantum_info->endian == LSBEndian) in PushQuantumFloatPixel()
198 *pixel=ScaleFloatPixel(quantum_info,quantum); in PushQuantumFloatPixel()
[all …]
Dstream.c81 *quantum_info; member
288 if (stream_info->quantum_info != (QuantumInfo *) NULL) in DestroyStreamInfo()
289 stream_info->quantum_info=DestroyQuantumInfo(stream_info->quantum_info); in DestroyStreamInfo()
1353 stream_info->quantum_info=AcquireQuantumInfo(image_info,(Image *) NULL); in StreamImage()
1354 if (stream_info->quantum_info == (QuantumInfo *) NULL) in StreamImage()
1363 stream_info->quantum_info=DestroyQuantumInfo(stream_info->quantum_info); in StreamImage()
1364 stream_info->quantum_info=AcquireQuantumInfo(image_info,image); in StreamImage()
1365 if (stream_info->quantum_info == (QuantumInfo *) NULL) in StreamImage()
1403 *quantum_info; in StreamImagePixels() local
1532 quantum_info=stream_info->quantum_info; in StreamImagePixels()
[all …]
Dcipher.c578 *quantum_info; in PasskeyDecipherImage() local
649 quantum_info=AcquireQuantumInfo((const ImageInfo *) NULL,image); in PasskeyDecipherImage()
650 if (quantum_info == (QuantumInfo *) NULL) in PasskeyDecipherImage()
657 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in PasskeyDecipherImage()
671 length=ExportQuantumPixels(image,image_view,quantum_info,quantum_type, in PasskeyDecipherImage()
692 (void) ImportQuantumPixels(image,image_view,quantum_info,quantum_type, in PasskeyDecipherImage()
709 quantum_info=DestroyQuantumInfo(quantum_info); in PasskeyDecipherImage()
791 *quantum_info; in PasskeyEncipherImage() local
869 quantum_info=AcquireQuantumInfo((const ImageInfo *) NULL,image); in PasskeyEncipherImage()
870 if (quantum_info == (QuantumInfo *) NULL) in PasskeyEncipherImage()
[all …]
/external/ImageMagick/coders/
Dfarbfeld.c142 *quantum_info; in ReadFARBFELDImage() local
193 quantum_info=AcquireQuantumInfo(image_info,image); in ReadFARBFELDImage()
194 if (quantum_info == (QuantumInfo *) NULL) in ReadFARBFELDImage()
196 status=SetQuantumFormat(image,quantum_info,UnsignedQuantumFormat); in ReadFARBFELDImage()
197 extent=GetQuantumExtent(image,quantum_info,RGBAQuantum); in ReadFARBFELDImage()
198 pixels=GetQuantumPixels(quantum_info); in ReadFARBFELDImage()
213 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadFARBFELDImage()
221 quantum_info=DestroyQuantumInfo(quantum_info); in ReadFARBFELDImage()
334 *quantum_info; in WriteFARBFELDImage() local
368 quantum_info=AcquireQuantumInfo(image_info,image); in WriteFARBFELDImage()
[all …]
Dfl32.c140 *quantum_info; in ReadFL32Image() local
234 quantum_info=AcquireQuantumInfo(image_info,image); in ReadFL32Image()
235 if (quantum_info == (QuantumInfo *) NULL) in ReadFL32Image()
237 status=SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat); in ReadFL32Image()
238 extent=GetQuantumExtent(image,quantum_info,quantum_type); in ReadFL32Image()
239 pixels=GetQuantumPixels(quantum_info); in ReadFL32Image()
254 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadFL32Image()
262 quantum_info=DestroyQuantumInfo(quantum_info); in ReadFL32Image()
368 *quantum_info; in WriteFL32Image() local
434 quantum_info=AcquireQuantumInfo(image_info,image); in WriteFL32Image()
[all …]
Dart.c104 *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()
160 pixels=GetQuantumPixels(quantum_info); in ReadARTImage()
175 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadARTImage()
185 quantum_info=DestroyQuantumInfo(quantum_info); in ReadARTImage()
290 *quantum_info; in WriteARTImage() local
329 quantum_info=AcquireQuantumInfo(image_info,image); in WriteARTImage()
330 if (quantum_info == (QuantumInfo *) NULL) in WriteARTImage()
[all …]
Dipl.c189 *quantum_info; in ReadIPLImage() local
327 quantum_info=AcquireQuantumInfo(image_info,image); in ReadIPLImage()
328 if (quantum_info == (QuantumInfo *) NULL) in ReadIPLImage()
330 status=SetQuantumFormat(image,quantum_info,quantum_format); in ReadIPLImage()
333 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in ReadIPLImage()
351 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
363 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
373 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
383 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadIPLImage()
392 quantum_info = DestroyQuantumInfo(quantum_info); in ReadIPLImage()
[all …]
Dpgx.c149 *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()
210 pixels=GetQuantumPixels(quantum_info); in ReadPGXImage()
225 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadPGXImage()
233 quantum_info=DestroyQuantumInfo(quantum_info); in ReadPGXImage()
340 *quantum_info; in WritePGXImage() local
373 quantum_info=AcquireQuantumInfo(image_info,image); in WritePGXImage()
374 if (quantum_info == (QuantumInfo *) NULL) in WritePGXImage()
[all …]
Dpnm.c287 *quantum_info; in ReadPNMImage() local
639 quantum_info=AcquireQuantumInfo(image_info,image); in ReadPNMImage()
640 if (quantum_info == (QuantumInfo *) NULL) in ReadPNMImage()
642 SetQuantumMinIsWhite(quantum_info,MagickTrue); in ReadPNMImage()
643 extent=GetQuantumExtent(image,quantum_info,quantum_type); in ReadPNMImage()
644 pixels=GetQuantumPixels(quantum_info); in ReadPNMImage()
677 length=ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadPNMImage()
685 quantum_info=DestroyQuantumInfo(quantum_info); in ReadPNMImage()
698 quantum_info=AcquireQuantumInfo(image_info,image); in ReadPNMImage()
699 if (quantum_info == (QuantumInfo *) NULL) in ReadPNMImage()
[all …]
Dvicar.c163 *quantum_info; in ReadVICARImage() local
302 quantum_info=AcquireQuantumInfo(image_info,image); in ReadVICARImage()
303 if (quantum_info == (QuantumInfo *) NULL) in ReadVICARImage()
305 length=GetQuantumExtent(image,quantum_info,quantum_type); in ReadVICARImage()
306 pixels=GetQuantumPixels(quantum_info); in ReadVICARImage()
318 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadVICARImage()
328 quantum_info=DestroyQuantumInfo(quantum_info); in ReadVICARImage()
443 *quantum_info; in WriteVICARImage() local
486 quantum_info=AcquireQuantumInfo(image_info,image); in WriteVICARImage()
487 if (quantum_info == (QuantumInfo *) NULL) in WriteVICARImage()
[all …]
Drgb.c116 *quantum_info; in ReadRGBImage() local
168 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadRGBImage()
169 if (quantum_info == (QuantumInfo *) NULL) in ReadRGBImage()
187 pixels=GetQuantumPixels(quantum_info); in ReadRGBImage()
195 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRGBImage()
229 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRGBImage()
255 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadRGBImage()
310 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadRGBImage()
339 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadRGBImage()
408 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadRGBImage()
[all …]
Dgray.c117 *quantum_info; in ReadGRAYImage() local
170 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadGRAYImage()
171 if (quantum_info == (QuantumInfo *) NULL) in ReadGRAYImage()
183 pixels=GetQuantumPixels(quantum_info); in ReadGRAYImage()
191 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadGRAYImage()
225 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadGRAYImage()
251 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadGRAYImage()
302 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadGRAYImage()
331 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadGRAYImage()
385 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadGRAYImage()
[all …]
Dcmyk.c116 *quantum_info; in ReadCMYKImage() local
172 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadCMYKImage()
173 if (quantum_info == (QuantumInfo *) NULL) in ReadCMYKImage()
184 pixels=GetQuantumPixels(quantum_info); in ReadCMYKImage()
192 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadCMYKImage()
228 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadCMYKImage()
254 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadCMYKImage()
309 length=GetQuantumExtent(canvas_image,quantum_info,CyanQuantum); in ReadCMYKImage()
338 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadCMYKImage()
407 length=GetQuantumExtent(canvas_image,quantum_info,CyanQuantum); in ReadCMYKImage()
[all …]
Draw.c113 *quantum_info; in ReadRAWImage() local
163 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadRAWImage()
164 if (quantum_info == (QuantumInfo *) NULL) in ReadRAWImage()
169 pixels=GetQuantumPixels(quantum_info); in ReadRAWImage()
177 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRAWImage()
203 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadRAWImage()
229 length=ImportQuantumPixels(canvas_image,(CacheView *) NULL,quantum_info, in ReadRAWImage()
290 quantum_info=DestroyQuantumInfo(quantum_info); in ReadRAWImage()
457 *quantum_info; in WriteRAWImage() local
576 quantum_info=AcquireQuantumInfo(image_info,image); in WriteRAWImage()
[all …]
Dbgr.c116 *quantum_info; in ReadBGRImage() local
168 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadBGRImage()
169 if (quantum_info == (QuantumInfo *) NULL) in ReadBGRImage()
187 pixels=GetQuantumPixels(quantum_info); in ReadBGRImage()
195 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadBGRImage()
229 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadBGRImage()
255 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadBGRImage()
309 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadBGRImage()
338 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadBGRImage()
408 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadBGRImage()
[all …]
Dycbcr.c116 *quantum_info; in ReadYCBCRImage() local
172 quantum_info=AcquireQuantumInfo(image_info,canvas_image); in ReadYCBCRImage()
173 if (quantum_info == (QuantumInfo *) NULL) in ReadYCBCRImage()
184 pixels=GetQuantumPixels(quantum_info); in ReadYCBCRImage()
192 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadYCBCRImage()
228 length=GetQuantumExtent(canvas_image,quantum_info,quantum_type); in ReadYCBCRImage()
254 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadYCBCRImage()
307 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadYCBCRImage()
336 quantum_info,quantum_type,(unsigned char *) stream,exception); in ReadYCBCRImage()
401 length=GetQuantumExtent(canvas_image,quantum_info,RedQuantum); in ReadYCBCRImage()
[all …]
Dmat.c622 *quantum_info; in ReadMATImageV4() local
640 quantum_info=(QuantumInfo *) NULL; in ReadMATImageV4()
715 quantum_info=AcquireQuantumInfo(image_info,image); in ReadMATImageV4()
716 if (quantum_info == (QuantumInfo *) NULL) in ReadMATImageV4()
747 SetQuantumEndian(image,quantum_info,MSBEndian); in ReadMATImageV4()
748 status=SetQuantumFormat(image,quantum_info,format_type); in ReadMATImageV4()
749 status=SetQuantumDepth(image,quantum_info,depth); in ReadMATImageV4()
750 status=SetQuantumEndian(image,quantum_info,endian); in ReadMATImageV4()
751 SetQuantumScale(quantum_info,1.0); in ReadMATImageV4()
752 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in ReadMATImageV4()
[all …]
Dfits.c643 *quantum_info; in WriteFITSImage() local
686 quantum_info=AcquireQuantumInfo(image_info,image); in WriteFITSImage()
687 if (quantum_info == (QuantumInfo *) NULL) in WriteFITSImage()
698 (long) ((quantum_info->format == FloatingPointQuantumFormat ? -1 : 1)* in WriteFITSImage()
752 pixels=(unsigned char *) GetQuantumPixels(quantum_info); in WriteFITSImage()
755 length=GetQuantumExtent(image,quantum_info,GrayQuantum); in WriteFITSImage()
761 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteFITSImage()
767 (quantum_info->format != FloatingPointQuantumFormat)) in WriteFITSImage()
781 length=GetQuantumExtent(image,quantum_info,RedQuantum); in WriteFITSImage()
787 length=ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WriteFITSImage()
[all …]
Dmiff.c424 if (quantum_info != (QuantumInfo *) NULL) \ in ReadMIFFImage()
425 quantum_info=DestroyQuantumInfo(quantum_info); \ in ReadMIFFImage()
479 *quantum_info; in ReadMIFFImage() local
536 quantum_info=(QuantumInfo *) NULL; in ReadMIFFImage()
1304 quantum_info=AcquireQuantumInfo(image_info,image); in ReadMIFFImage()
1305 if (quantum_info == (QuantumInfo *) NULL) in ReadMIFFImage()
1309 status=SetQuantumFormat(image,quantum_info,quantum_format); in ReadMIFFImage()
1313 packet_size=(size_t) (quantum_info->depth/8); in ReadMIFFImage()
1315 packet_size=(size_t) (3*quantum_info->depth/8); in ReadMIFFImage()
1317 packet_size=quantum_info->depth/8; in ReadMIFFImage()
[all …]
Dtiff.c1196 if (quantum_info != (QuantumInfo *) NULL) \ in ReadTIFFImage()
1197 quantum_info=DestroyQuantumInfo(quantum_info); \ in ReadTIFFImage()
1231 *quantum_info; in ReadTIFFImage() local
1591 quantum_info=(QuantumInfo *) NULL; in ReadTIFFImage()
1672 quantum_info=AcquireQuantumInfo(image_info,image); in ReadTIFFImage()
1673 if (quantum_info == (QuantumInfo *) NULL) in ReadTIFFImage()
1676 status=SetQuantumFormat(image,quantum_info,UnsignedQuantumFormat); in ReadTIFFImage()
1678 status=SetQuantumFormat(image,quantum_info,SignedQuantumFormat); in ReadTIFFImage()
1680 status=SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat); in ReadTIFFImage()
1688 quantum_info->min_is_white=MagickFalse; in ReadTIFFImage()
[all …]
Dcin.c401 *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()
762 pixels=GetQuantumPixels(quantum_info); in ReadCINImage()
774 (void) ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadCINImage()
787 quantum_info=DestroyQuantumInfo(quantum_info); in ReadCINImage()
919 *quantum_info; in WriteCINImage() local
[all …]
Dpdb.c763 *quantum_info; in WritePDBImage() local
890 quantum_info=AcquireQuantumInfo(image_info,image); in WritePDBImage()
891 if (quantum_info == (QuantumInfo *) NULL) in WritePDBImage()
901 status=SetQuantumDepth(image,quantum_info,bits_per_pixel > 8 ? 16 : 8); in WritePDBImage()
912 (void) ExportQuantumPixels(image,(CacheView *) NULL,quantum_info, in WritePDBImage()
969 quantum_info=DestroyQuantumInfo(quantum_info); in WritePDBImage()
Ddpx.c674 *quantum_info; in ReadDPXImage() local
1240 quantum_info=AcquireQuantumInfo(image_info,image); in ReadDPXImage()
1241 if (quantum_info == (QuantumInfo *) NULL) in ReadDPXImage()
1243 SetQuantumQuantum(quantum_info,32); in ReadDPXImage()
1244 SetQuantumPack(quantum_info,dpx.image.image_element[n].packing == 0 ? in ReadDPXImage()
1246 pixels=GetQuantumPixels(quantum_info); in ReadDPXImage()
1282 length=ImportQuantumPixels(image,(CacheView *) NULL,quantum_info, in ReadDPXImage()
1289 quantum_info=DestroyQuantumInfo(quantum_info); in ReadDPXImage()
1484 *quantum_info; in WriteDPXImage() local
1987 quantum_info=AcquireQuantumInfo(image_info,image); in WriteDPXImage()
[all …]

12