/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 | pnm.c | 152 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 …]
|
D | mpc.c | 165 *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 …]
|
D | sun.c | 240 *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 …]
|
D | ipl.c | 160 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 …]
|
D | cmyk.c | 107 *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 …]
|
D | ps3.c | 205 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 …]
|
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 | rgb.c | 107 *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 …]
|
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 | 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 | cin.c | 213 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 …]
|
D | hdr.c | 147 *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 …]
|
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 | 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 | viff.c | 215 *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 …]
|
D | pict.c | 396 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 …]
|
D | bgr.c | 107 *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 …]
|
D | ps2.c | 190 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 …]
|
D | ycbcr.c | 107 *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 …]
|
D | otb.c | 103 *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 …]
|
D | gray.c | 108 *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 …]
|
D | tim2.c | 154 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 …]
|