/external/ImageMagick/Magick++/tests/ |
D | attributes.cpp | 30 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/ |
D | wpg.c | 244 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 …]
|
D | vips.c | 214 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 …]
|
D | mpc.c | 160 *image; in ReadMPCImage() local 201 image=AcquireImage(image_info,exception); in ReadMPCImage() 202 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadMPCImage() 205 image=DestroyImageList(image); in ReadMPCImage() 208 (void) CopyMagickString(cache_filename,image->filename,MagickPathExtent-6); in ReadMPCImage() 210 c=ReadBlobByte(image); in ReadMPCImage() 213 image=DestroyImage(image); in ReadMPCImage() 229 image->depth=8; in ReadMPCImage() 230 image->compression=NoCompression; in ReadMPCImage() 248 c=ReadBlobByte(image); in ReadMPCImage() [all …]
|
D | pnm.c | 151 static int PNMComment(Image *image,CommentInfo *comment_info, in PNMComment() argument 176 c=ReadBlobByte(image); in PNMComment() 186 static unsigned int PNMInteger(Image *image,CommentInfo *comment_info, in PNMInteger() argument 200 c=ReadBlobByte(image); in PNMInteger() 204 c=PNMComment(image,comment_info,exception); in PNMInteger() 220 c=ReadBlobByte(image); in PNMInteger() 225 c=PNMComment(image,comment_info,exception); in PNMInteger() 248 *image; in ReadPNMImage() local 282 image=AcquireImage(image_info,exception); in ReadPNMImage() 283 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadPNMImage() [all …]
|
D | sun.c | 241 *image; in ReadSUNImage() local 290 image=AcquireImage(image_info,exception); in ReadSUNImage() 291 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadSUNImage() 294 image=DestroyImageList(image); in ReadSUNImage() 301 sun_info.magic=ReadBlobMSBLong(image); in ReadSUNImage() 309 sun_info.width=ReadBlobMSBLong(image); in ReadSUNImage() 310 sun_info.height=ReadBlobMSBLong(image); in ReadSUNImage() 311 sun_info.depth=ReadBlobMSBLong(image); in ReadSUNImage() 312 sun_info.length=ReadBlobMSBLong(image); in ReadSUNImage() 313 sun_info.type=ReadBlobMSBLong(image); in ReadSUNImage() [all …]
|
D | cmyk.c | 107 *image; in ReadCMYKImage() local 141 image=AcquireImage(image_info,exception); in ReadCMYKImage() 142 if ((image->columns == 0) || (image->rows == 0)) in ReadCMYKImage() 144 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadCMYKImage() 146 return(DestroyImageList(image)); in ReadCMYKImage() 147 (void) SetImageColorspace(image,CMYKColorspace,exception); in ReadCMYKImage() 150 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadCMYKImage() 153 image=DestroyImageList(image); in ReadCMYKImage() 156 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadCMYKImage() 158 image->filename); in ReadCMYKImage() [all …]
|
D | ps3.c | 204 Image *image,Image *inject_image,ExceptionInfo *exception) in Huffman2DEncodeImage() argument 234 if (WriteBlob(image,length,group4) != (ssize_t) length) in Huffman2DEncodeImage() 241 Image *image,MemoryInfo **pixel_info,size_t *length,ExceptionInfo *exception) in SerializeImage() argument 258 assert(image != (Image *) NULL); in SerializeImage() 259 assert(image->signature == MagickCoreSignature); in SerializeImage() 260 if (image->debug != MagickFalse) in SerializeImage() 261 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in SerializeImage() 263 *length=(image->colorspace == CMYKColorspace ? 4 : 3)*(size_t) in SerializeImage() 264 image->columns*image->rows; in SerializeImage() 269 for (y=0; y < (ssize_t) image->rows; y++) in SerializeImage() [all …]
|
D | bmp.c | 202 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 …]
|
D | ipl.c | 166 static void SetHeaderFromIPL(Image *image, IPLInfo *ipl){ in SetHeaderFromIPL() argument 167 image->columns = ipl->width; in SetHeaderFromIPL() 168 image->rows = ipl->height; in SetHeaderFromIPL() 169 image->depth = ipl->depth; in SetHeaderFromIPL() 170 image->resolution.x = 1; in SetHeaderFromIPL() 171 image->resolution.y = 1; in SetHeaderFromIPL() 181 Image *image; in ReadIPLImage() local 213 image=AcquireImage(image_info,exception); in ReadIPLImage() 214 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadIPLImage() 217 image=DestroyImageList(image); in ReadIPLImage() [all …]
|
D | cin.c | 212 image; member 394 *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 …]
|
D | dib.c | 151 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 …]
|
D | palm.c | 236 *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 …]
|
D | cut.c | 98 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 …]
|
D | viff.c | 216 *image; in ReadVIFFImage() local 267 image=AcquireImage(image_info,exception); in ReadVIFFImage() 268 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadVIFFImage() 271 image=DestroyImageList(image); in ReadVIFFImage() 277 count=ReadBlob(image,1,&viff_info.identifier); in ReadVIFFImage() 288 (void) ReadBlob(image,sizeof(viff_info.file_type),&viff_info.file_type); in ReadVIFFImage() 289 (void) ReadBlob(image,sizeof(viff_info.release),&viff_info.release); in ReadVIFFImage() 290 (void) ReadBlob(image,sizeof(viff_info.version),&viff_info.version); in ReadVIFFImage() 291 (void) ReadBlob(image,sizeof(viff_info.machine_dependency), in ReadVIFFImage() 293 (void) ReadBlob(image,sizeof(viff_info.reserve),viff_info.reserve); in ReadVIFFImage() [all …]
|
D | pict.c | 398 static unsigned char *DecodeImage(Image *blob,Image *image, in DecodeImage() argument 437 width=image->columns; in DecodeImage() 446 width*=image->alpha_trait ? 4 : 3; in DecodeImage() 449 row_bytes=(size_t) (image->columns | 0x8000); in DecodeImage() 450 if (image->storage_class == DirectClass) in DecodeImage() 451 row_bytes=(size_t) ((4*image->columns) | 0x8000); in DecodeImage() 455 pixels=(unsigned char *) AcquireQuantumMemory(image->rows,row_bytes* in DecodeImage() 459 *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 …]
|
D | bgr.c | 108 *image; in ReadBGRImage() local 142 image=AcquireImage(image_info,exception); in ReadBGRImage() 143 if ((image->columns == 0) || (image->rows == 0)) in ReadBGRImage() 147 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage() 150 image=DestroyImageList(image); in ReadBGRImage() 153 if (DiscardBlobBytes(image,image->offset) == MagickFalse) in ReadBGRImage() 155 image->filename); in ReadBGRImage() 160 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadBGRImage() 176 image->alpha_trait=BlendPixelTrait; in ReadBGRImage() 182 image->alpha_trait=BlendPixelTrait; in ReadBGRImage() [all …]
|
D | ycbcr.c | 107 *image; in ReadYCBCRImage() local 141 image=AcquireImage(image_info,exception); in ReadYCBCRImage() 142 if ((image->columns == 0) || (image->rows == 0)) in ReadYCBCRImage() 144 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadYCBCRImage() 146 return(DestroyImageList(image)); in ReadYCBCRImage() 147 (void) SetImageColorspace(image,YCbCrColorspace,exception); in ReadYCBCRImage() 150 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage() 153 image=DestroyImageList(image); in ReadYCBCRImage() 156 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadYCBCRImage() 158 image->filename); in ReadYCBCRImage() [all …]
|
D | rgb.c | 107 *image; in ReadRGBImage() local 141 image=AcquireImage(image_info,exception); in ReadRGBImage() 142 if ((image->columns == 0) || (image->rows == 0)) in ReadRGBImage() 146 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage() 149 image=DestroyImageList(image); in ReadRGBImage() 152 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadRGBImage() 154 image->filename); in ReadRGBImage() 159 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadRGBImage() 175 image->alpha_trait=BlendPixelTrait; in ReadRGBImage() 181 image->alpha_trait=BlendPixelTrait; in ReadRGBImage() [all …]
|
D | ps2.c | 189 Image *image,Image *inject_image,ExceptionInfo *exception) in Huffman2DEncodeImage() argument 219 if (WriteBlob(image,length,group4) != (ssize_t) length) in Huffman2DEncodeImage() 225 static MagickBooleanType WritePS2Image(const ImageInfo *image_info,Image *image, in WritePS2Image() argument 461 assert(image != (Image *) NULL); in WritePS2Image() 462 assert(image->signature == MagickCoreSignature); in WritePS2Image() 463 if (image->debug != MagickFalse) in WritePS2Image() 464 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WritePS2Image() 467 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); in WritePS2Image() 470 compression=image->compression; in WritePS2Image() 481 image->filename); in WritePS2Image() [all …]
|
D | hdr.c | 147 *image; in ReadHDRImage() local 185 image=AcquireImage(image_info,exception); in ReadHDRImage() 186 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadHDRImage() 189 image=DestroyImageList(image); in ReadHDRImage() 195 image->columns=0; in ReadHDRImage() 196 image->rows=0; in ReadHDRImage() 198 c=ReadBlobByte(image); in ReadHDRImage() 201 image=DestroyImage(image); in ReadHDRImage() 204 while (isgraph(c) && (image->columns == 0) && (image->rows == 0)) in ReadHDRImage() 224 c=ReadBlobByte(image); in ReadHDRImage() [all …]
|
D | tim.c | 103 *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 …]
|
D | gray.c | 108 *image; in ReadGRAYImage() local 142 image=AcquireImage(image_info,exception); in ReadGRAYImage() 143 if ((image->columns == 0) || (image->rows == 0)) in ReadGRAYImage() 145 image->colorspace=GRAYColorspace; in ReadGRAYImage() 148 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadGRAYImage() 151 image=DestroyImageList(image); in ReadGRAYImage() 154 if (DiscardBlobBytes(image,(MagickSizeType) image->offset) == MagickFalse) in ReadGRAYImage() 156 image->filename); in ReadGRAYImage() 161 canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse, in ReadGRAYImage() 177 image->alpha_trait=BlendPixelTrait; in ReadGRAYImage() [all …]
|
D | pcx.c | 217 *image; in ReadPCXImage() local 274 image=AcquireImage(image_info,exception); in ReadPCXImage() 275 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadPCXImage() 278 image=DestroyImageList(image); in ReadPCXImage() 295 magic=ReadBlobLSBLong(image); in ReadPCXImage() 304 page_table[id]=(MagickOffsetType) ReadBlobLSBLong(image); in ReadPCXImage() 311 offset=SeekBlob(image,(MagickOffsetType) page_table[0],SEEK_SET); in ReadPCXImage() 315 count=ReadBlob(image,1,&pcx_info.identifier); in ReadPCXImage() 324 pcx_info.version=(unsigned char) ReadBlobByte(image); in ReadPCXImage() 327 pcx_info.encoding=(unsigned char) ReadBlobByte(image); in ReadPCXImage() [all …]
|
D | miff.c | 212 static void PushRunlengthPacket(Image *image,const unsigned char *pixels, in PushRunlengthPacket() argument 219 if (image->storage_class == PseudoClass) in PushRunlengthPacket() 222 switch (image->depth) in PushRunlengthPacket() 226 pixel->index=(MagickRealType) ConstrainColormapIndex(image,(ssize_t) in PushRunlengthPacket() 234 pixel->index=(MagickRealType) ConstrainColormapIndex(image,(ssize_t) in PushRunlengthPacket() 241 pixel->index=(MagickRealType) ConstrainColormapIndex(image, in PushRunlengthPacket() 248 CorruptImageError,"ImageDepthNotSupported","`%s'",image->filename); in PushRunlengthPacket() 250 switch (image->depth) in PushRunlengthPacket() 257 if (image->alpha_trait != UndefinedPixelTrait) in PushRunlengthPacket() 269 if (image->alpha_trait != UndefinedPixelTrait) in PushRunlengthPacket() [all …]
|