Lines Matching refs:image
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()
501 for (y=0; y < (ssize_t) image->rows; y++) in DecodeImage()
581 static size_t EncodeImage(Image *image,const unsigned char *scanline, in EncodeImage() argument
610 assert(image != (Image *) NULL); in EncodeImage()
611 assert(image->signature == MagickCoreSignature); in EncodeImage()
612 if (image->debug != MagickFalse) in EncodeImage()
613 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in EncodeImage()
694 (void) WriteBlobMSBShort(image,(unsigned short) length); in EncodeImage()
699 (void) WriteBlobByte(image,(unsigned char) length); in EncodeImage()
705 (void) WriteBlobByte(image,*q); in EncodeImage()
780 static MagickBooleanType ReadPixmap(Image *image,PICTPixmap *pixmap) in ReadPixmap() argument
782 pixmap->version=(short) ReadBlobMSBShort(image); in ReadPixmap()
783 pixmap->pack_type=(short) ReadBlobMSBShort(image); in ReadPixmap()
784 pixmap->pack_size=ReadBlobMSBLong(image); in ReadPixmap()
785 pixmap->horizontal_resolution=1UL*ReadBlobMSBShort(image); in ReadPixmap()
786 (void) ReadBlobMSBShort(image); in ReadPixmap()
787 pixmap->vertical_resolution=1UL*ReadBlobMSBShort(image); in ReadPixmap()
788 (void) ReadBlobMSBShort(image); in ReadPixmap()
789 pixmap->pixel_type=(short) ReadBlobMSBShort(image); in ReadPixmap()
790 pixmap->bits_per_pixel=(short) ReadBlobMSBShort(image); in ReadPixmap()
791 pixmap->component_count=(short) ReadBlobMSBShort(image); in ReadPixmap()
792 pixmap->component_size=(short) ReadBlobMSBShort(image); in ReadPixmap()
793 pixmap->plane_bytes=ReadBlobMSBLong(image); in ReadPixmap()
794 pixmap->table=ReadBlobMSBLong(image); in ReadPixmap()
795 pixmap->reserved=ReadBlobMSBLong(image); in ReadPixmap()
796 if ((EOFBlob(image) != MagickFalse) || (pixmap->bits_per_pixel <= 0) || in ReadPixmap()
803 static MagickBooleanType ReadRectangle(Image *image,PICTRectangle *rectangle) in ReadRectangle() argument
805 rectangle->top=(short) ReadBlobMSBShort(image); in ReadRectangle()
806 rectangle->left=(short) ReadBlobMSBShort(image); in ReadRectangle()
807 rectangle->bottom=(short) ReadBlobMSBShort(image); in ReadRectangle()
808 rectangle->right=(short) ReadBlobMSBShort(image); in ReadRectangle()
809 if ((EOFBlob(image) != MagickFalse) || in ReadRectangle()
833 *image, in ReadPICTImage() local
887 image=AcquireImage(image_info,exception); in ReadPICTImage()
888 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadPICTImage()
891 image=DestroyImageList(image); in ReadPICTImage()
904 header_ole[0]=ReadBlobByte(image); in ReadPICTImage()
905 header_ole[1]=ReadBlobByte(image); in ReadPICTImage()
906 header_ole[2]=ReadBlobByte(image); in ReadPICTImage()
907 header_ole[3]=ReadBlobByte(image); in ReadPICTImage()
911 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
913 (void) ReadBlobMSBShort(image); /* skip picture size */ in ReadPICTImage()
914 if (ReadRectangle(image,&frame) == MagickFalse) in ReadPICTImage()
916 while ((c=ReadBlobByte(image)) == 0) ; in ReadPICTImage()
919 version=(ssize_t) ReadBlobByte(image); in ReadPICTImage()
922 c=ReadBlobByte(image); in ReadPICTImage()
937 image->depth=8; in ReadPICTImage()
938 image->columns=(size_t) (frame.right-frame.left); in ReadPICTImage()
939 image->rows=(size_t) (frame.bottom-frame.top); in ReadPICTImage()
940 image->resolution.x=DefaultResolution; in ReadPICTImage()
941 image->resolution.y=DefaultResolution; in ReadPICTImage()
942 image->units=UndefinedResolution; in ReadPICTImage()
944 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadPICTImage()
946 (void) CloseBlob(image); in ReadPICTImage()
947 return(GetFirstImageInList(image)); in ReadPICTImage()
949 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadPICTImage()
951 status=ResetImagePixels(image,exception); in ReadPICTImage()
953 return(DestroyImageList(image)); in ReadPICTImage()
958 for (code=0; EOFBlob(image) == MagickFalse; ) in ReadPICTImage()
961 if (image->scene >= (image_info->scene+image_info->number_scenes-1)) in ReadPICTImage()
963 if ((version == 1) || ((TellBlob(image) % 2) != 0)) in ReadPICTImage()
964 code=ReadBlobByte(image); in ReadPICTImage()
966 code=ReadBlobMSBSignedShort(image); in ReadPICTImage()
973 if (image->debug != MagickFalse) in ReadPICTImage()
978 if (image->debug != MagickFalse) in ReadPICTImage()
988 length=ReadBlobMSBShort(image); in ReadPICTImage()
989 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
995 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
999 if (ReadRectangle(image,&frame) == MagickFalse) in ReadPICTImage()
1003 image->columns=(size_t) (frame.right-frame.left); in ReadPICTImage()
1004 image->rows=(size_t) (frame.bottom-frame.top); in ReadPICTImage()
1005 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadPICTImage()
1007 status=ResetImagePixels(image,exception); in ReadPICTImage()
1009 return(DestroyImageList(image)); in ReadPICTImage()
1026 pattern=(ssize_t) ReadBlobMSBShort(image); in ReadPICTImage()
1028 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1033 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1039 length=ReadBlobMSBShort(image); in ReadPICTImage()
1040 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1043 if (ReadRectangle(image,&frame) == MagickFalse) in ReadPICTImage()
1045 if (ReadPixmap(image,&pixmap) == MagickFalse) in ReadPICTImage()
1047 image->depth=(size_t) pixmap.component_size; in ReadPICTImage()
1048 image->resolution.x=1.0*pixmap.horizontal_resolution; in ReadPICTImage()
1049 image->resolution.y=1.0*pixmap.vertical_resolution; in ReadPICTImage()
1050 image->units=PixelsPerInchResolution; in ReadPICTImage()
1051 (void) ReadBlobMSBLong(image); in ReadPICTImage()
1052 flags=(ssize_t) ReadBlobMSBShort(image); in ReadPICTImage()
1053 length=ReadBlobMSBShort(image); in ReadPICTImage()
1054 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1058 (void) ReadBlobMSBLong(image); in ReadPICTImage()
1070 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1076 if (EOFBlob(image) != MagickFalse) in ReadPICTImage()
1080 for (j=0; j < (ssize_t) ReadBlobMSBShort(image); j++) in ReadPICTImage()
1081 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1085 for (j=0; j < (ssize_t) ReadBlobByte(image); j++) in ReadPICTImage()
1086 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1096 image->background_color.red=(Quantum) in ReadPICTImage()
1097 ScaleShortToQuantum(ReadBlobMSBShort(image)); in ReadPICTImage()
1098 image->background_color.green=(Quantum) in ReadPICTImage()
1099 ScaleShortToQuantum(ReadBlobMSBShort(image)); in ReadPICTImage()
1100 image->background_color.blue=(Quantum) in ReadPICTImage()
1101 ScaleShortToQuantum(ReadBlobMSBShort(image)); in ReadPICTImage()
1116 length=ReadBlobMSBShort(image); in ReadPICTImage()
1117 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1121 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1153 bytes_per_line=(ssize_t) ReadBlobMSBShort(image); in ReadPICTImage()
1156 (void) ReadBlobMSBShort(image); in ReadPICTImage()
1157 (void) ReadBlobMSBShort(image); in ReadPICTImage()
1158 (void) ReadBlobMSBShort(image); in ReadPICTImage()
1160 if (ReadRectangle(image,&frame) == MagickFalse) in ReadPICTImage()
1165 tile_image=CloneImage(image,(size_t) (frame.right-frame.left), in ReadPICTImage()
1172 if (ReadPixmap(image,&pixmap) == MagickFalse) in ReadPICTImage()
1191 (void) ReadBlobMSBLong(image); in ReadPICTImage()
1192 flags=(ssize_t) ReadBlobMSBShort(image); in ReadPICTImage()
1193 tile_image->colors=1UL*ReadBlobMSBShort(image)+1; in ReadPICTImage()
1204 j=ReadBlobMSBShort(image) % tile_image->colors; in ReadPICTImage()
1208 ScaleShortToQuantum(ReadBlobMSBShort(image)); in ReadPICTImage()
1210 ScaleShortToQuantum(ReadBlobMSBShort(image)); in ReadPICTImage()
1212 ScaleShortToQuantum(ReadBlobMSBShort(image)); in ReadPICTImage()
1228 if (EOFBlob(image) != MagickFalse) in ReadPICTImage()
1231 if (ReadRectangle(image,&source) == MagickFalse) in ReadPICTImage()
1233 if (ReadRectangle(image,&destination) == MagickFalse) in ReadPICTImage()
1235 (void) ReadBlobMSBShort(image); in ReadPICTImage()
1241 length=ReadBlobMSBShort(image); in ReadPICTImage()
1242 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1246 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1251 pixels=DecodeImage(image,tile_image,(size_t) bytes_per_line,1, in ReadPICTImage()
1254 pixels=DecodeImage(image,tile_image,(size_t) bytes_per_line, in ReadPICTImage()
1264 if (p > (pixels+extent+image->columns)) in ReadPICTImage()
1304 if (p > (pixels+extent+2*image->columns)) in ReadPICTImage()
1315 if (p > (pixels+extent+3*image->columns)) in ReadPICTImage()
1339 status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) y, in ReadPICTImage()
1345 if ((jpeg == MagickFalse) && (EOFBlob(image) == MagickFalse)) in ReadPICTImage()
1348 (void) CompositeImage(image,tile_image,CopyCompositeOp, in ReadPICTImage()
1365 type=ReadBlobMSBShort(image); in ReadPICTImage()
1366 length=ReadBlobMSBShort(image); in ReadPICTImage()
1367 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1372 (void) ReadBlobMSBLong(image); in ReadPICTImage()
1379 count=ReadBlob(image,length,info); in ReadPICTImage()
1391 status=SetImageProfile(image,"icc",profile,exception); in ReadPICTImage()
1405 status=SetImageProfile(image,"iptc",profile,exception); in ReadPICTImage()
1427 (void) ReadBlobMSBShort(image); in ReadPICTImage()
1430 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1441 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1474 (void) CopyMagickString(image->filename,read_info->filename, in ReadPICTImage()
1478 length=ReadBlobMSBLong(image); in ReadPICTImage()
1479 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1485 (void) ReadBlobMSBLong(image); in ReadPICTImage()
1486 if (ReadRectangle(image,&frame) == MagickFalse) in ReadPICTImage()
1493 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1497 c=ReadBlobByte(image); in ReadPICTImage()
1512 (double) MagickMax(image->columns,tile_image->columns), in ReadPICTImage()
1513 (double) MagickMax(image->rows,tile_image->rows)); in ReadPICTImage()
1514 (void) SetImageExtent(image, in ReadPICTImage()
1515 MagickMax(image->columns,tile_image->columns), in ReadPICTImage()
1516 MagickMax(image->rows,tile_image->rows),exception); in ReadPICTImage()
1517 (void) TransformImageColorspace(image,tile_image->colorspace,exception); in ReadPICTImage()
1518 (void) CompositeImage(image,tile_image,CopyCompositeOp,MagickTrue, in ReadPICTImage()
1520 image->compression=tile_image->compression; in ReadPICTImage()
1532 length=ReadBlobMSBShort(image); in ReadPICTImage()
1533 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1537 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1547 if ((MagickSizeType) length > GetBlobSize(image)) in ReadPICTImage()
1551 if (ReadBlobByte(image) == EOF) in ReadPICTImage()
1556 (void) CloseBlob(image); in ReadPICTImage()
1557 return(GetFirstImageInList(image)); in ReadPICTImage()
1660 Image *image,ExceptionInfo *exception) in WritePICTImage() argument
1726 assert(image != (Image *) NULL); in WritePICTImage()
1727 assert(image->signature == MagickCoreSignature); in WritePICTImage()
1728 if (image->debug != MagickFalse) in WritePICTImage()
1729 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); in WritePICTImage()
1730 if ((image->columns > 65535L) || (image->rows > 65535L)) in WritePICTImage()
1734 status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); in WritePICTImage()
1737 (void) TransformImageColorspace(image,sRGBColorspace,exception); in WritePICTImage()
1743 size_rectangle.bottom=(short) image->rows; in WritePICTImage()
1744 size_rectangle.right=(short) image->columns; in WritePICTImage()
1750 row_bytes=image->columns; in WritePICTImage()
1753 bounds.bottom=(short) image->rows; in WritePICTImage()
1754 bounds.right=(short) image->columns; in WritePICTImage()
1766 x_resolution=image->resolution.x != 0.0 ? image->resolution.x : in WritePICTImage()
1768 y_resolution=image->resolution.y != 0.0 ? image->resolution.y : in WritePICTImage()
1770 storage_class=image->storage_class; in WritePICTImage()
1775 pixmap.component_count=image->alpha_trait != UndefinedPixelTrait ? 4 : 3; in WritePICTImage()
1780 row_bytes=4*image->columns; in WritePICTImage()
1785 bytes_per_line=image->columns; in WritePICTImage()
1787 bytes_per_line*=image->alpha_trait != UndefinedPixelTrait ? 4 : 3; in WritePICTImage()
1812 (void) WriteBlob(image,PictInfoSize,buffer); in WritePICTImage()
1813 (void) WriteBlobMSBShort(image,0); in WritePICTImage()
1814 (void) WriteBlobMSBShort(image,(unsigned short) size_rectangle.top); in WritePICTImage()
1815 (void) WriteBlobMSBShort(image,(unsigned short) size_rectangle.left); in WritePICTImage()
1816 (void) WriteBlobMSBShort(image,(unsigned short) size_rectangle.bottom); in WritePICTImage()
1817 (void) WriteBlobMSBShort(image,(unsigned short) size_rectangle.right); in WritePICTImage()
1818 (void) WriteBlobMSBShort(image,PictVersion); in WritePICTImage()
1819 (void) WriteBlobMSBShort(image,0x02ff); /* version #2 */ in WritePICTImage()
1820 (void) WriteBlobMSBShort(image,PictInfoOp); in WritePICTImage()
1821 (void) WriteBlobMSBLong(image,0xFFFE0000U); in WritePICTImage()
1825 (void) WriteBlobMSBShort(image,(unsigned short) x_resolution); in WritePICTImage()
1826 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1827 (void) WriteBlobMSBShort(image,(unsigned short) y_resolution); in WritePICTImage()
1828 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1829 (void) WriteBlobMSBShort(image,(unsigned short) frame_rectangle.top); in WritePICTImage()
1830 (void) WriteBlobMSBShort(image,(unsigned short) frame_rectangle.left); in WritePICTImage()
1831 (void) WriteBlobMSBShort(image,(unsigned short) frame_rectangle.bottom); in WritePICTImage()
1832 (void) WriteBlobMSBShort(image,(unsigned short) frame_rectangle.right); in WritePICTImage()
1833 (void) WriteBlobMSBLong(image,0x00000000L); in WritePICTImage()
1834 profile=GetImageProfile(image,"iptc"); in WritePICTImage()
1837 (void) WriteBlobMSBShort(image,0xa1); in WritePICTImage()
1838 (void) WriteBlobMSBShort(image,0x1f2); in WritePICTImage()
1839 (void) WriteBlobMSBShort(image,(unsigned short) in WritePICTImage()
1841 (void) WriteBlobString(image,"8BIM"); in WritePICTImage()
1842 (void) WriteBlob(image,GetStringInfoLength(profile), in WritePICTImage()
1845 profile=GetImageProfile(image,"icc"); in WritePICTImage()
1848 (void) WriteBlobMSBShort(image,0xa1); in WritePICTImage()
1849 (void) WriteBlobMSBShort(image,0xe0); in WritePICTImage()
1850 (void) WriteBlobMSBShort(image,(unsigned short) in WritePICTImage()
1852 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1853 (void) WriteBlob(image,GetStringInfoLength(profile), in WritePICTImage()
1855 (void) WriteBlobMSBShort(image,0xa1); in WritePICTImage()
1856 (void) WriteBlobMSBShort(image,0xe0); in WritePICTImage()
1857 (void) WriteBlobMSBShort(image,4); in WritePICTImage()
1858 (void) WriteBlobMSBLong(image,0x00000002U); in WritePICTImage()
1863 (void) WriteBlobMSBShort(image,PictCropRegionOp); in WritePICTImage()
1864 (void) WriteBlobMSBShort(image,0xa); in WritePICTImage()
1865 (void) WriteBlobMSBShort(image,(unsigned short) crop_rectangle.top); in WritePICTImage()
1866 (void) WriteBlobMSBShort(image,(unsigned short) crop_rectangle.left); in WritePICTImage()
1867 (void) WriteBlobMSBShort(image,(unsigned short) crop_rectangle.bottom); in WritePICTImage()
1868 (void) WriteBlobMSBShort(image,(unsigned short) crop_rectangle.right); in WritePICTImage()
1883 jpeg_image=CloneImage(image,0,0,MagickTrue,exception); in WritePICTImage()
1886 (void) CloseBlob(image); in WritePICTImage()
1898 (void) WriteBlobMSBShort(image,PictJPEGOp); in WritePICTImage()
1899 (void) WriteBlobMSBLong(image,(unsigned int) length+154); in WritePICTImage()
1900 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1901 (void) WriteBlobMSBLong(image,0x00010000U); in WritePICTImage()
1902 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1903 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1904 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1905 (void) WriteBlobMSBLong(image,0x00010000U); in WritePICTImage()
1906 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1907 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1908 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1909 (void) WriteBlobMSBLong(image,0x40000000U); in WritePICTImage()
1910 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1911 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1912 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1913 (void) WriteBlobMSBLong(image,0x00400000U); in WritePICTImage()
1914 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1915 (void) WriteBlobMSBShort(image,(unsigned short) image->rows); in WritePICTImage()
1916 (void) WriteBlobMSBShort(image,(unsigned short) image->columns); in WritePICTImage()
1917 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1918 (void) WriteBlobMSBShort(image,768); in WritePICTImage()
1919 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1920 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1921 (void) WriteBlobMSBLong(image,0x00566A70U); in WritePICTImage()
1922 (void) WriteBlobMSBLong(image,0x65670000U); in WritePICTImage()
1923 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1924 (void) WriteBlobMSBLong(image,0x00000001U); in WritePICTImage()
1925 (void) WriteBlobMSBLong(image,0x00016170U); in WritePICTImage()
1926 (void) WriteBlobMSBLong(image,0x706C0000U); in WritePICTImage()
1927 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1928 (void) WriteBlobMSBShort(image,768); in WritePICTImage()
1929 (void) WriteBlobMSBShort(image,(unsigned short) image->columns); in WritePICTImage()
1930 (void) WriteBlobMSBShort(image,(unsigned short) image->rows); in WritePICTImage()
1931 (void) WriteBlobMSBShort(image,(unsigned short) x_resolution); in WritePICTImage()
1932 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1933 (void) WriteBlobMSBShort(image,(unsigned short) y_resolution); in WritePICTImage()
1934 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1935 (void) WriteBlobMSBLong(image,(unsigned int) length); in WritePICTImage()
1936 (void) WriteBlobMSBShort(image,0x0001); in WritePICTImage()
1937 (void) WriteBlobMSBLong(image,0x0B466F74U); in WritePICTImage()
1938 (void) WriteBlobMSBLong(image,0x6F202D20U); in WritePICTImage()
1939 (void) WriteBlobMSBLong(image,0x4A504547U); in WritePICTImage()
1940 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1941 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1942 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1943 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1944 (void) WriteBlobMSBLong(image,0x00000000U); in WritePICTImage()
1945 (void) WriteBlobMSBLong(image,0x0018FFFFU); in WritePICTImage()
1946 (void) WriteBlob(image,length,blob); in WritePICTImage()
1948 (void) WriteBlobByte(image,'\0'); in WritePICTImage()
1955 (void) WriteBlobMSBShort(image,PictPICTOp); in WritePICTImage()
1958 (void) WriteBlobMSBShort(image,PictPixmapOp); in WritePICTImage()
1959 (void) WriteBlobMSBLong(image,(unsigned int) base_address); in WritePICTImage()
1961 (void) WriteBlobMSBShort(image,(unsigned short) (row_bytes | 0x8000)); in WritePICTImage()
1962 (void) WriteBlobMSBShort(image,(unsigned short) bounds.top); in WritePICTImage()
1963 (void) WriteBlobMSBShort(image,(unsigned short) bounds.left); in WritePICTImage()
1964 (void) WriteBlobMSBShort(image,(unsigned short) bounds.bottom); in WritePICTImage()
1965 (void) WriteBlobMSBShort(image,(unsigned short) bounds.right); in WritePICTImage()
1969 (void) WriteBlobMSBShort(image,(unsigned short) pixmap.version); in WritePICTImage()
1970 (void) WriteBlobMSBShort(image,(unsigned short) pixmap.pack_type); in WritePICTImage()
1971 (void) WriteBlobMSBLong(image,(unsigned int) pixmap.pack_size); in WritePICTImage()
1972 (void) WriteBlobMSBShort(image,(unsigned short) (x_resolution+0.5)); in WritePICTImage()
1973 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1974 (void) WriteBlobMSBShort(image,(unsigned short) (y_resolution+0.5)); in WritePICTImage()
1975 (void) WriteBlobMSBShort(image,0x0000); in WritePICTImage()
1976 (void) WriteBlobMSBShort(image,(unsigned short) pixmap.pixel_type); in WritePICTImage()
1977 (void) WriteBlobMSBShort(image,(unsigned short) pixmap.bits_per_pixel); in WritePICTImage()
1981 (void) WriteBlobMSBShort(image,(unsigned short) pixmap.component_count); in WritePICTImage()
1982 (void) WriteBlobMSBShort(image,(unsigned short) pixmap.component_size); in WritePICTImage()
1983 (void) WriteBlobMSBLong(image,(unsigned int) pixmap.plane_bytes); in WritePICTImage()
1984 (void) WriteBlobMSBLong(image,(unsigned int) pixmap.table); in WritePICTImage()
1985 (void) WriteBlobMSBLong(image,(unsigned int) pixmap.reserved); in WritePICTImage()
1991 (void) WriteBlobMSBLong(image,0x00000000L); /* color seed */ in WritePICTImage()
1992 (void) WriteBlobMSBShort(image,0L); /* color flags */ in WritePICTImage()
1993 (void) WriteBlobMSBShort(image,(unsigned short) (image->colors-1)); in WritePICTImage()
1994 for (i=0; i < (ssize_t) image->colors; i++) in WritePICTImage()
1996 (void) WriteBlobMSBShort(image,(unsigned short) i); in WritePICTImage()
1997 (void) WriteBlobMSBShort(image,ScaleQuantumToShort( in WritePICTImage()
1998 image->colormap[i].red)); in WritePICTImage()
1999 (void) WriteBlobMSBShort(image,ScaleQuantumToShort( in WritePICTImage()
2000 image->colormap[i].green)); in WritePICTImage()
2001 (void) WriteBlobMSBShort(image,ScaleQuantumToShort( in WritePICTImage()
2002 image->colormap[i].blue)); in WritePICTImage()
2008 (void) WriteBlobMSBShort(image,(unsigned short) source_rectangle.top); in WritePICTImage()
2009 (void) WriteBlobMSBShort(image,(unsigned short) source_rectangle.left); in WritePICTImage()
2010 (void) WriteBlobMSBShort(image,(unsigned short) source_rectangle.bottom); in WritePICTImage()
2011 (void) WriteBlobMSBShort(image,(unsigned short) source_rectangle.right); in WritePICTImage()
2012 (void) WriteBlobMSBShort(image,(unsigned short) destination_rectangle.top); in WritePICTImage()
2013 (void) WriteBlobMSBShort(image,(unsigned short) destination_rectangle.left); in WritePICTImage()
2014 (void) WriteBlobMSBShort(image,(unsigned short) destination_rectangle.bottom); in WritePICTImage()
2015 (void) WriteBlobMSBShort(image,(unsigned short) destination_rectangle.right); in WritePICTImage()
2016 (void) WriteBlobMSBShort(image,(unsigned short) transfer_mode); in WritePICTImage()
2022 for (y=0; y < (ssize_t) image->rows; y++) in WritePICTImage()
2024 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePICTImage()
2027 for (x=0; x < (ssize_t) image->columns; x++) in WritePICTImage()
2029 scanline[x]=(unsigned char) GetPixelIndex(image,p); in WritePICTImage()
2030 p+=GetPixelChannels(image); in WritePICTImage()
2032 count+=EncodeImage(image,scanline,(size_t) (row_bytes & 0x7FFF), in WritePICTImage()
2034 if (image->previous == (Image *) NULL) in WritePICTImage()
2036 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WritePICTImage()
2037 image->rows); in WritePICTImage()
2046 for (y=0; y < (ssize_t) image->rows; y++) in WritePICTImage()
2047 count+=EncodeImage(image,scanline,(size_t) (row_bytes & 0x7FFF), in WritePICTImage()
2059 green=scanline+image->columns; in WritePICTImage()
2060 blue=scanline+2*image->columns; in WritePICTImage()
2061 opacity=scanline+3*image->columns; in WritePICTImage()
2062 for (y=0; y < (ssize_t) image->rows; y++) in WritePICTImage()
2064 p=GetVirtualPixels(image,0,y,image->columns,1,exception); in WritePICTImage()
2068 green=scanline+image->columns; in WritePICTImage()
2069 blue=scanline+2*image->columns; in WritePICTImage()
2070 if (image->alpha_trait != UndefinedPixelTrait) in WritePICTImage()
2073 red=scanline+image->columns; in WritePICTImage()
2074 green=scanline+2*image->columns; in WritePICTImage()
2075 blue=scanline+3*image->columns; in WritePICTImage()
2077 for (x=0; x < (ssize_t) image->columns; x++) in WritePICTImage()
2079 *red++=ScaleQuantumToChar(GetPixelRed(image,p)); in WritePICTImage()
2080 *green++=ScaleQuantumToChar(GetPixelGreen(image,p)); in WritePICTImage()
2081 *blue++=ScaleQuantumToChar(GetPixelBlue(image,p)); in WritePICTImage()
2082 if (image->alpha_trait != UndefinedPixelTrait) in WritePICTImage()
2083 *opacity++=ScaleQuantumToChar((Quantum) (GetPixelAlpha(image,p))); in WritePICTImage()
2084 p+=GetPixelChannels(image); in WritePICTImage()
2086 count+=EncodeImage(image,scanline,bytes_per_line,packed_scanline); in WritePICTImage()
2087 if (image->previous == (Image *) NULL) in WritePICTImage()
2089 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y, in WritePICTImage()
2090 image->rows); in WritePICTImage()
2097 (void) WriteBlobByte(image,'\0'); in WritePICTImage()
2098 (void) WriteBlobMSBShort(image,PictEndOfPictureOp); in WritePICTImage()
2099 offset=TellBlob(image); in WritePICTImage()
2100 offset=SeekBlob(image,512,SEEK_SET); in WritePICTImage()
2101 (void) WriteBlobMSBShort(image,(unsigned short) offset); in WritePICTImage()
2105 (void) CloseBlob(image); in WritePICTImage()