Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 4113) sorted by relevance

12345678910>>...165

/external/ImageMagick/Magick++/tests/
Dattributes.cpp30 Image image( geometry, canvasColor); in main() local
37 if ( image.textAntiAlias() != true ) in main()
44 image.textAntiAlias( false ); in main()
45 if ( image.textAntiAlias() != false ) in main()
52 image.textAntiAlias( true ); in main()
53 if ( image.textAntiAlias() != true ) in main()
64 if ( image.adjoin() != true ) in main()
72 image.adjoin( false ); in main()
73 if ( image.adjoin() != false ) in main()
80 image.adjoin( true ); in main()
[all …]
/external/ImageMagick/coders/
Dwpg.c244 static void Rd_WP_DWORD(Image *image,size_t *d) in Rd_WP_DWORD() argument
249 b=ReadBlobByte(image); in Rd_WP_DWORD()
253 b=ReadBlobByte(image); in Rd_WP_DWORD()
255 b=ReadBlobByte(image); in Rd_WP_DWORD()
260 b=ReadBlobByte(image); in Rd_WP_DWORD()
262 b=ReadBlobByte(image); in Rd_WP_DWORD()
267 static MagickBooleanType InsertRow(Image *image,unsigned char *p,ssize_t y, in InsertRow() argument
282 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in InsertRow()
289 for (x=0; x < ((ssize_t) image->columns-7); x+=8) in InsertRow()
294 SetPixelIndex(image,index,q); in InsertRow()
[all …]
Dvips.c214 static inline Quantum ReadVIPSPixelNONE(Image *image, in ReadVIPSPixelNONE() argument
229 c=(unsigned char) ReadBlobByte(image); in ReadVIPSPixelNONE()
233 c=(unsigned char) ReadBlobShort(image); in ReadVIPSPixelNONE()
237 c=(unsigned char) ReadBlobLong(image); in ReadVIPSPixelNONE()
240 c=(unsigned char) ReadBlobFloat(image); in ReadVIPSPixelNONE()
243 c=(unsigned char) ReadBlobDouble(image); in ReadVIPSPixelNONE()
261 s=(unsigned short) ReadBlobShort(image); in ReadVIPSPixelNONE()
265 s=(unsigned short) ReadBlobLong(image); in ReadVIPSPixelNONE()
268 s=(unsigned short) ReadBlobFloat(image); in ReadVIPSPixelNONE()
271 s=(unsigned short) ReadBlobDouble(image); in ReadVIPSPixelNONE()
[all …]
Dpnm.c152 static int PNMComment(Image *image,CommentInfo *comment_info, in PNMComment() argument
178 c=ReadBlobByte(image); in PNMComment()
188 static unsigned int PNMInteger(Image *image,CommentInfo *comment_info, in PNMInteger() argument
202 c=ReadBlobByte(image); in PNMInteger()
206 c=PNMComment(image,comment_info,exception); in PNMInteger()
222 c=ReadBlobByte(image); in PNMInteger()
227 c=PNMComment(image,comment_info,exception); in PNMInteger()
231 static char *PNMString(Image *image,char *string,const size_t extent) in PNMString() argument
241 c=ReadBlobByte(image); in PNMString()
278 *image; in ReadPNMImage() local
[all …]
Dmpc.c165 *image; in ReadMPCImage() local
209 image=AcquireImage(image_info,exception); in ReadMPCImage()
210 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadMPCImage()
213 image=DestroyImageList(image); in ReadMPCImage()
216 (void) CopyMagickString(cache_filename,image->filename,MagickPathExtent-6); in ReadMPCImage()
218 c=ReadBlobByte(image); in ReadMPCImage()
221 image=DestroyImage(image); in ReadMPCImage()
239 image->depth=8; in ReadMPCImage()
240 image->compression=NoCompression; in ReadMPCImage()
258 c=ReadBlobByte(image); in ReadMPCImage()
[all …]
Dsun.c240 *image; in ReadSUNImage() local
289 image=AcquireImage(image_info,exception); in ReadSUNImage()
290 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadSUNImage()
293 image=DestroyImageList(image); in ReadSUNImage()
300 sun_info.magic=ReadBlobMSBLong(image); in ReadSUNImage()
308 sun_info.width=ReadBlobMSBLong(image); in ReadSUNImage()
309 sun_info.height=ReadBlobMSBLong(image); in ReadSUNImage()
310 sun_info.depth=ReadBlobMSBLong(image); in ReadSUNImage()
311 sun_info.length=ReadBlobMSBLong(image); in ReadSUNImage()
312 sun_info.type=ReadBlobMSBLong(image); in ReadSUNImage()
[all …]
Dipl.c160 static void SetHeaderFromIPL(Image *image, IPLInfo *ipl){ in SetHeaderFromIPL() argument
161 image->columns = ipl->width; in SetHeaderFromIPL()
162 image->rows = ipl->height; in SetHeaderFromIPL()
163 image->depth = ipl->depth; in SetHeaderFromIPL()
164 image->resolution.x = 1; in SetHeaderFromIPL()
165 image->resolution.y = 1; in SetHeaderFromIPL()
175 Image *image; in ReadIPLImage() local
207 image=AcquireImage(image_info,exception); in ReadIPLImage()
208 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadIPLImage()
211 image=DestroyImageList(image); in ReadIPLImage()
[all …]
Dcmyk.c107 *image; in ReadCMYKImage() local
144 image=AcquireImage(image_info,exception); in ReadCMYKImage()
145 if ((image->columns == 0) || (image->rows == 0)) in ReadCMYKImage()
147 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadCMYKImage()
149 return(DestroyImageList(image)); in ReadCMYKImage()
150 (void) SetImageColorspace(image,CMYKColorspace,exception); in ReadCMYKImage()
153 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadCMYKImage()
156 image=DestroyImageList(image); in ReadCMYKImage()
159 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadCMYKImage()
161 image->filename); in ReadCMYKImage()
[all …]
Dps3.c205 Image *image,Image *inject_image,ExceptionInfo *exception) in Huffman2DEncodeImage() argument
235 if (WriteBlob(image,length,group4) != (ssize_t) length) in Huffman2DEncodeImage()
242 Image *image,MemoryInfo **pixel_info,size_t *length,ExceptionInfo *exception) in SerializeImage() argument
259 assert(image != (Image *) NULL); in SerializeImage()
260 assert(image->signature == MagickCoreSignature); in SerializeImage()
261 if (image->debug != MagickFalse) in SerializeImage()
262 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in SerializeImage()
264 *length=(image->colorspace == CMYKColorspace ? 4 : 3)*(size_t) in SerializeImage()
265 image->columns*image->rows; in SerializeImage()
271 for (y=0; y < (ssize_t) image->rows; y++) in SerializeImage()
[all …]
Ddib.c151 static MagickBooleanType DecodeImage(Image *image, in DecodeImage() argument
181 assert(image != (Image *) NULL); in DecodeImage()
182 assert(image->signature == MagickCoreSignature); in DecodeImage()
183 if (image->debug != MagickFalse) in DecodeImage()
184 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in DecodeImage()
191 for (y=0; y < (ssize_t) image->rows; ) in DecodeImage()
198 count=ReadBlobByte(image); in DecodeImage()
207 byte=ReadBlobByte(image); in DecodeImage()
228 count=ReadBlobByte(image); in DecodeImage()
242 p=pixels+y*image->columns; in DecodeImage()
[all …]
Drgb.c107 *image; in ReadRGBImage() local
144 image=AcquireImage(image_info,exception); in ReadRGBImage()
145 if ((image->columns == 0) || (image->rows == 0)) in ReadRGBImage()
149 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
152 image=DestroyImageList(image); in ReadRGBImage()
155 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadRGBImage()
157 image->filename); in ReadRGBImage()
162 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadRGBImage()
178 image->alpha_trait=BlendPixelTrait; in ReadRGBImage()
184 image->alpha_trait=BlendPixelTrait; in ReadRGBImage()
[all …]
Dcut.c98 static MagickBooleanType InsertRow(Image *image,ssize_t bpp,unsigned char *p, in InsertRow() argument
113 q=QueueAuthenticPixels(image,0,y,image->columns,1,exception); in InsertRow()
120 for (x=0; x < ((ssize_t) image->columns-7); x+=8) in InsertRow()
125 SetPixelIndex(image,index,q); in InsertRow()
126 if (index < image->colors) in InsertRow()
127 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q); in InsertRow()
128 q+=GetPixelChannels(image); in InsertRow()
132 if ((image->columns % 8) != 0) in InsertRow()
134 for (bit=0; bit < (ssize_t) (image->columns % 8); bit++) in InsertRow()
137 SetPixelIndex(image,index,q); in InsertRow()
[all …]
Dpalm.c236 *image; in ReadPALMImage() local
299 image=AcquireImage(image_info,exception); in ReadPALMImage()
300 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadPALMImage()
303 (void) DestroyImageList(image); in ReadPALMImage()
309 image->columns=ReadBlobMSBShort(image); in ReadPALMImage()
310 image->rows=ReadBlobMSBShort(image); in ReadPALMImage()
311 if (EOFBlob(image) != MagickFalse) in ReadPALMImage()
313 if ((image->columns == 0) || (image->rows == 0)) in ReadPALMImage()
315 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadPALMImage()
317 return(DestroyImageList(image)); in ReadPALMImage()
[all …]
Dcin.c213 image; member
392 *image; in ReadCINImage() local
434 image=AcquireImage(image_info,exception); in ReadCINImage()
435 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadCINImage()
438 image=DestroyImageList(image); in ReadCINImage()
445 count=ReadBlob(image,4,magick); in ReadCINImage()
451 image->endian=(magick[0] == 0x80) && (magick[1] == 0x2a) && in ReadCINImage()
453 cin.file.image_offset=ReadBlobLong(image); in ReadCINImage()
455 cin.file.generic_length=ReadBlobLong(image); in ReadCINImage()
457 cin.file.industry_length=ReadBlobLong(image); in ReadCINImage()
[all …]
Dhdr.c147 *image; in ReadHDRImage() local
181 image=AcquireImage(image_info,exception); in ReadHDRImage()
182 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadHDRImage()
185 image=DestroyImageList(image); in ReadHDRImage()
191 image->columns=0; in ReadHDRImage()
192 image->rows=0; in ReadHDRImage()
194 c=ReadBlobByte(image); in ReadHDRImage()
197 image=DestroyImage(image); in ReadHDRImage()
200 while (isgraph((int) ((unsigned char) c)) && (image->columns == 0) && (image->rows == 0)) in ReadHDRImage()
220 c=ReadBlobByte(image); in ReadHDRImage()
[all …]
Dtim.c103 *image; in ReadTIMImage() local
151 image=AcquireImage(image_info,exception); in ReadTIMImage()
152 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadTIMImage()
155 image=DestroyImageList(image); in ReadTIMImage()
161 tim_info.id=ReadBlobLSBLong(image); in ReadTIMImage()
169 tim_info.flag=ReadBlobLSBLong(image); in ReadTIMImage()
180 image->depth=8; in ReadTIMImage()
189 (void)ReadBlobLSBLong(image); in ReadTIMImage()
190 (void)ReadBlobLSBShort(image); in ReadTIMImage()
191 (void)ReadBlobLSBShort(image); in ReadTIMImage()
[all …]
Dbmp.c202 static MagickBooleanType DecodeImage(Image *image,const size_t compression, in DecodeImage() argument
220 assert(image != (Image *) NULL); in DecodeImage()
221 assert(image->signature == MagickCoreSignature); in DecodeImage()
222 if (image->debug != MagickFalse) in DecodeImage()
223 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in DecodeImage()
230 for (y=0; y < (ssize_t) image->rows; ) in DecodeImage()
237 count=ReadBlobByte(image); in DecodeImage()
246 byte=ReadBlobByte(image); in DecodeImage()
267 count=ReadBlobByte(image); in DecodeImage()
281 p=pixels+y*image->columns; in DecodeImage()
[all …]
Dviff.c215 *image; in ReadVIFFImage() local
266 image=AcquireImage(image_info,exception); in ReadVIFFImage()
267 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadVIFFImage()
270 image=DestroyImageList(image); in ReadVIFFImage()
276 count=ReadBlob(image,1,&viff_info.identifier); in ReadVIFFImage()
287 (void) ReadBlob(image,sizeof(viff_info.file_type),&viff_info.file_type); in ReadVIFFImage()
288 (void) ReadBlob(image,sizeof(viff_info.release),&viff_info.release); in ReadVIFFImage()
289 (void) ReadBlob(image,sizeof(viff_info.version),&viff_info.version); in ReadVIFFImage()
290 (void) ReadBlob(image,sizeof(viff_info.machine_dependency), in ReadVIFFImage()
292 (void) ReadBlob(image,sizeof(viff_info.reserve),viff_info.reserve); in ReadVIFFImage()
[all …]
Dpict.c396 static unsigned char *DecodeImage(Image *blob,Image *image, in DecodeImage() argument
436 width=image->columns; in DecodeImage()
445 width*=image->alpha_trait ? 4 : 3; in DecodeImage()
448 row_bytes=(size_t) (image->columns | 0x8000); in DecodeImage()
449 if (image->storage_class == DirectClass) in DecodeImage()
450 row_bytes=(size_t) ((4*image->columns) | 0x8000); in DecodeImage()
454 pixels=(unsigned char *) AcquireQuantumMemory(image->rows,row_bytes* in DecodeImage()
458 *extent=row_bytes*image->rows*sizeof(*pixels); in DecodeImage()
475 for (y=0; y < (ssize_t) image->rows; y++) in DecodeImage()
477 q=pixels+y*width*GetPixelChannels(image); in DecodeImage()
[all …]
Dbgr.c107 *image; in ReadBGRImage() local
144 image=AcquireImage(image_info,exception); in ReadBGRImage()
145 if ((image->columns == 0) || (image->rows == 0)) in ReadBGRImage()
149 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
152 image=DestroyImageList(image); in ReadBGRImage()
155 if (DiscardBlobBytes(image,image->offset) == MagickFalse) in ReadBGRImage()
157 image->filename); in ReadBGRImage()
162 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadBGRImage()
178 image->alpha_trait=BlendPixelTrait; in ReadBGRImage()
184 image->alpha_trait=BlendPixelTrait; in ReadBGRImage()
[all …]
Dps2.c190 Image *image,Image *inject_image,ExceptionInfo *exception) in Huffman2DEncodeImage() argument
220 if (WriteBlob(image,length,group4) != (ssize_t) length) in Huffman2DEncodeImage()
226 static MagickBooleanType WritePS2Image(const ImageInfo *image_info,Image *image, in WritePS2Image() argument
456 assert(image != (Image *) NULL); in WritePS2Image()
457 assert(image->signature == MagickCoreSignature); in WritePS2Image()
458 if (image->debug != MagickFalse) in WritePS2Image()
459 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WritePS2Image()
462 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); in WritePS2Image()
465 compression=image->compression; in WritePS2Image()
476 image->filename); in WritePS2Image()
[all …]
Dycbcr.c107 *image; in ReadYCBCRImage() local
144 image=AcquireImage(image_info,exception); in ReadYCBCRImage()
145 if ((image->columns == 0) || (image->rows == 0)) in ReadYCBCRImage()
147 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadYCBCRImage()
149 return(DestroyImageList(image)); in ReadYCBCRImage()
150 (void) SetImageColorspace(image,YCbCrColorspace,exception); in ReadYCBCRImage()
153 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
156 image=DestroyImageList(image); in ReadYCBCRImage()
159 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadYCBCRImage()
161 image->filename); in ReadYCBCRImage()
[all …]
Dotb.c103 *image; in ReadOTBImage() local
135 image=AcquireImage(image_info,exception); in ReadOTBImage()
136 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadOTBImage()
139 image=DestroyImageList(image); in ReadOTBImage()
145 info=(unsigned char) ReadBlobByte(image); in ReadOTBImage()
148 image->columns=(size_t) ReadBlobByte(image); in ReadOTBImage()
149 image->rows=(size_t) ReadBlobByte(image); in ReadOTBImage()
153 image->columns=(size_t) ReadBlobMSBShort(image); in ReadOTBImage()
154 image->rows=(size_t) ReadBlobMSBShort(image); in ReadOTBImage()
156 if ((image->columns == 0) || (image->rows == 0)) in ReadOTBImage()
[all …]
Dgray.c108 *image; in ReadGRAYImage() local
145 image=AcquireImage(image_info,exception); in ReadGRAYImage()
146 if ((image->columns == 0) || (image->rows == 0)) in ReadGRAYImage()
148 image->colorspace=GRAYColorspace; in ReadGRAYImage()
151 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadGRAYImage()
154 image=DestroyImageList(image); in ReadGRAYImage()
157 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadGRAYImage()
159 image->filename); in ReadGRAYImage()
164 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadGRAYImage()
180 image->alpha_trait=BlendPixelTrait; in ReadGRAYImage()
[all …]
Dtim2.c154 static inline void ReadTIM2ImageHeader(Image *image,TIM2ImageHeader *header) in ReadTIM2ImageHeader() argument
156 header->total_size=ReadBlobLSBLong(image); in ReadTIM2ImageHeader()
157 header->clut_size=ReadBlobLSBLong(image); in ReadTIM2ImageHeader()
158 header->image_size=ReadBlobLSBLong(image); in ReadTIM2ImageHeader()
159 header->header_size=ReadBlobLSBShort(image); in ReadTIM2ImageHeader()
161 header->clut_color_count=ReadBlobLSBShort(image); in ReadTIM2ImageHeader()
162 header->img_format=(unsigned char) ReadBlobByte(image); in ReadTIM2ImageHeader()
163 header->mipmap_count=(unsigned char) ReadBlobByte(image); in ReadTIM2ImageHeader()
164 header->clut_type=(unsigned char) ReadBlobByte(image); in ReadTIM2ImageHeader()
165 header->bpp_type=(unsigned char) ReadBlobByte(image); in ReadTIM2ImageHeader()
[all …]

12345678910>>...165