Lines Matching refs:bmp_info

513     bmp_info;  in ReadBMPImage()  local
585 (void) memset(&bmp_info,0,sizeof(bmp_info)); in ReadBMPImage()
586 bmp_info.ba_offset=0; in ReadBMPImage()
605 bmp_info.ba_offset=0; in ReadBMPImage()
608 bmp_info.file_size=ReadBlobLSBLong(image); in ReadBMPImage()
609 bmp_info.ba_offset=ReadBlobLSBLong(image); in ReadBMPImage()
610 bmp_info.offset_bits=ReadBlobLSBLong(image); in ReadBMPImage()
621 bmp_info.file_size=ReadBlobLSBLong(image); in ReadBMPImage()
623 bmp_info.offset_bits=ReadBlobLSBLong(image); in ReadBMPImage()
624 bmp_info.size=ReadBlobLSBLong(image); in ReadBMPImage()
627 bmp_info.size); in ReadBMPImage()
630 if (bmp_info.size == 12) in ReadBMPImage()
636 bmp_info.width=(ssize_t) ((short) ReadBlobLSBShort(image)); in ReadBMPImage()
637 bmp_info.height=(ssize_t) ((short) ReadBlobLSBShort(image)); in ReadBMPImage()
638 bmp_info.planes=ReadBlobLSBShort(image); in ReadBMPImage()
639 bmp_info.bits_per_pixel=ReadBlobLSBShort(image); in ReadBMPImage()
640 bmp_info.x_pixels=0; in ReadBMPImage()
641 bmp_info.y_pixels=0; in ReadBMPImage()
642 bmp_info.number_colors=0; in ReadBMPImage()
643 bmp_info.compression=BI_RGB; in ReadBMPImage()
644 bmp_info.image_size=0; in ReadBMPImage()
645 bmp_info.alpha_mask=0; in ReadBMPImage()
651 " Geometry: %.20gx%.20g",(double) bmp_info.width,(double) in ReadBMPImage()
652 bmp_info.height); in ReadBMPImage()
660 bmp_info.width=(ssize_t) ReadBlobLSBSignedLong(image); in ReadBMPImage()
661 bmp_info.height=(ssize_t) ReadBlobLSBSignedLong(image); in ReadBMPImage()
662 bmp_info.planes=ReadBlobLSBShort(image); in ReadBMPImage()
663 bmp_info.bits_per_pixel=ReadBlobLSBShort(image); in ReadBMPImage()
664 bmp_info.compression=ReadBlobLSBLong(image); in ReadBMPImage()
665 if (bmp_info.size > 16) in ReadBMPImage()
667 bmp_info.image_size=ReadBlobLSBLong(image); in ReadBMPImage()
668 bmp_info.x_pixels=ReadBlobLSBLong(image); in ReadBMPImage()
669 bmp_info.y_pixels=ReadBlobLSBLong(image); in ReadBMPImage()
670 bmp_info.number_colors=ReadBlobLSBLong(image); in ReadBMPImage()
671 if ((MagickSizeType) bmp_info.number_colors > blob_size) in ReadBMPImage()
674 bmp_info.colors_important=ReadBlobLSBLong(image); in ReadBMPImage()
681 " Geometry: %.20gx%.20g",(double) bmp_info.width,(double) in ReadBMPImage()
682 bmp_info.height); in ReadBMPImage()
684 " Bits per pixel: %.20g",(double) bmp_info.bits_per_pixel); in ReadBMPImage()
685 switch (bmp_info.compression) in ReadBMPImage()
726 " Compression: UNKNOWN (%u)",bmp_info.compression); in ReadBMPImage()
730 " Number of colors: %u",bmp_info.number_colors); in ReadBMPImage()
732 if ((bmp_info.size > 40) || (bmp_info.compression == BI_BITFIELDS)) in ReadBMPImage()
734 bmp_info.red_mask=ReadBlobLSBLong(image); in ReadBMPImage()
735 bmp_info.green_mask=ReadBlobLSBLong(image); in ReadBMPImage()
736 bmp_info.blue_mask=ReadBlobLSBLong(image); in ReadBMPImage()
738 if (bmp_info.size > 40) in ReadBMPImage()
746 bmp_info.alpha_mask=ReadBlobLSBLong(image); in ReadBMPImage()
747 bmp_info.colorspace=ReadBlobLSBSignedLong(image); in ReadBMPImage()
752 bmp_info.red_primary.x=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
753 bmp_info.red_primary.y=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
754 bmp_info.red_primary.z=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
755 bmp_info.green_primary.x=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
756 bmp_info.green_primary.y=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
757 bmp_info.green_primary.z=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
758 bmp_info.blue_primary.x=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
759 bmp_info.blue_primary.y=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
760 bmp_info.blue_primary.z=(double) ReadBlobLSBLong(image)/BMP_DENOM; in ReadBMPImage()
762 gamma=bmp_info.red_primary.x+bmp_info.red_primary.y+ in ReadBMPImage()
763 bmp_info.red_primary.z; in ReadBMPImage()
765 bmp_info.red_primary.x*=gamma; in ReadBMPImage()
766 bmp_info.red_primary.y*=gamma; in ReadBMPImage()
767 image->chromaticity.red_primary.x=bmp_info.red_primary.x; in ReadBMPImage()
768 image->chromaticity.red_primary.y=bmp_info.red_primary.y; in ReadBMPImage()
770 gamma=bmp_info.green_primary.x+bmp_info.green_primary.y+ in ReadBMPImage()
771 bmp_info.green_primary.z; in ReadBMPImage()
773 bmp_info.green_primary.x*=gamma; in ReadBMPImage()
774 bmp_info.green_primary.y*=gamma; in ReadBMPImage()
775 image->chromaticity.green_primary.x=bmp_info.green_primary.x; in ReadBMPImage()
776 image->chromaticity.green_primary.y=bmp_info.green_primary.y; in ReadBMPImage()
778 gamma=bmp_info.blue_primary.x+bmp_info.blue_primary.y+ in ReadBMPImage()
779 bmp_info.blue_primary.z; in ReadBMPImage()
781 bmp_info.blue_primary.x*=gamma; in ReadBMPImage()
782 bmp_info.blue_primary.y*=gamma; in ReadBMPImage()
783 image->chromaticity.blue_primary.x=bmp_info.blue_primary.x; in ReadBMPImage()
784 image->chromaticity.blue_primary.y=bmp_info.blue_primary.y; in ReadBMPImage()
789 bmp_info.gamma_scale.x=(double) ReadBlobLSBLong(image)/0x10000; in ReadBMPImage()
790 bmp_info.gamma_scale.y=(double) ReadBlobLSBLong(image)/0x10000; in ReadBMPImage()
791 bmp_info.gamma_scale.z=(double) ReadBlobLSBLong(image)/0x10000; in ReadBMPImage()
795 image->gamma=(bmp_info.gamma_scale.x+bmp_info.gamma_scale.y+ in ReadBMPImage()
796 bmp_info.gamma_scale.z)/3.0; in ReadBMPImage()
801 if (bmp_info.size > 108) in ReadBMPImage()
838 if ((MagickSizeType) bmp_info.file_size != blob_size) in ReadBMPImage()
849 if (bmp_info.width <= 0) in ReadBMPImage()
851 if (bmp_info.height == 0) in ReadBMPImage()
853 if (bmp_info.planes != 1) in ReadBMPImage()
855 if ((bmp_info.bits_per_pixel != 1) && (bmp_info.bits_per_pixel != 4) && in ReadBMPImage()
856 (bmp_info.bits_per_pixel != 8) && (bmp_info.bits_per_pixel != 16) && in ReadBMPImage()
857 (bmp_info.bits_per_pixel != 24) && (bmp_info.bits_per_pixel != 32)) in ReadBMPImage()
859 if (bmp_info.bits_per_pixel < 16 && in ReadBMPImage()
860 bmp_info.number_colors > (1U << bmp_info.bits_per_pixel)) in ReadBMPImage()
862 if ((bmp_info.compression == BI_RLE8) && (bmp_info.bits_per_pixel != 8)) in ReadBMPImage()
864 if ((bmp_info.compression == BI_RLE4) && (bmp_info.bits_per_pixel != 4)) in ReadBMPImage()
866 if ((bmp_info.compression == BI_BITFIELDS) && (bmp_info.bits_per_pixel < 16)) in ReadBMPImage()
868 switch (bmp_info.compression) in ReadBMPImage()
886 image->columns=(size_t) MagickAbsoluteValue(bmp_info.width); in ReadBMPImage()
887 image->rows=(size_t) MagickAbsoluteValue(bmp_info.height); in ReadBMPImage()
888 image->depth=bmp_info.bits_per_pixel <= 8 ? bmp_info.bits_per_pixel : 8; in ReadBMPImage()
889 image->alpha_trait=((bmp_info.alpha_mask != 0) && in ReadBMPImage()
890 (bmp_info.compression == BI_BITFIELDS)) ? BlendPixelTrait : in ReadBMPImage()
892 if (bmp_info.bits_per_pixel < 16) in ReadBMPImage()
898 image->colors=bmp_info.number_colors; in ReadBMPImage()
901 image->colors=one << bmp_info.bits_per_pixel; in ReadBMPImage()
903 image->resolution.x=(double) bmp_info.x_pixels/100.0; in ReadBMPImage()
904 image->resolution.y=(double) bmp_info.y_pixels/100.0; in ReadBMPImage()
932 if ((bmp_info.size == 12) || (bmp_info.size == 64)) in ReadBMPImage()
936 offset=SeekBlob(image,start_position+14+bmp_info.size,SEEK_SET); in ReadBMPImage()
963 if (bmp_info.offset_bits == offset_bits) in ReadBMPImage()
965 offset_bits=bmp_info.offset_bits; in ReadBMPImage()
966 offset=SeekBlob(image,start_position+bmp_info.offset_bits,SEEK_SET); in ReadBMPImage()
969 if (bmp_info.compression == BI_RLE4) in ReadBMPImage()
970 bmp_info.bits_per_pixel<<=1; in ReadBMPImage()
971 bytes_per_line=4*((image->columns*bmp_info.bits_per_pixel+31)/32); in ReadBMPImage()
975 if ((bmp_info.compression == BI_RGB) || in ReadBMPImage()
976 (bmp_info.compression == BI_BITFIELDS)) in ReadBMPImage()
1004 status=DecodeImage(image,bmp_info.compression,pixels, in ReadBMPImage()
1016 if (bmp_info.compression == BI_RGB) in ReadBMPImage()
1026 (bmp_info.size == 40) && (bmp_info.bits_per_pixel == 32)) in ReadBMPImage()
1044 bmp_info.alpha_mask=image->alpha_trait != UndefinedPixelTrait ? in ReadBMPImage()
1046 bmp_info.red_mask=0x00ff0000U; in ReadBMPImage()
1047 bmp_info.green_mask=0x0000ff00U; in ReadBMPImage()
1048 bmp_info.blue_mask=0x000000ffU; in ReadBMPImage()
1049 if (bmp_info.bits_per_pixel == 16) in ReadBMPImage()
1054 bmp_info.red_mask=0x00007c00U; in ReadBMPImage()
1055 bmp_info.green_mask=0x000003e0U; in ReadBMPImage()
1056 bmp_info.blue_mask=0x0000001fU; in ReadBMPImage()
1061 if ((bmp_info.bits_per_pixel == 16) || (bmp_info.bits_per_pixel == 32)) in ReadBMPImage()
1069 if (bmp_info.red_mask != 0) in ReadBMPImage()
1070 while (((bmp_info.red_mask << shift.red) & 0x80000000UL) == 0) in ReadBMPImage()
1076 if (bmp_info.green_mask != 0) in ReadBMPImage()
1077 while (((bmp_info.green_mask << shift.green) & 0x80000000UL) == 0) in ReadBMPImage()
1083 if (bmp_info.blue_mask != 0) in ReadBMPImage()
1084 while (((bmp_info.blue_mask << shift.blue) & 0x80000000UL) == 0) in ReadBMPImage()
1090 if (bmp_info.alpha_mask != 0) in ReadBMPImage()
1091 while (((bmp_info.alpha_mask << shift.alpha) & 0x80000000UL) == 0) in ReadBMPImage()
1098 while (((bmp_info.red_mask << sample) & 0x80000000UL) != 0) in ReadBMPImage()
1106 while (((bmp_info.green_mask << sample) & 0x80000000UL) != 0) in ReadBMPImage()
1114 while (((bmp_info.blue_mask << sample) & 0x80000000UL) != 0) in ReadBMPImage()
1122 while (((bmp_info.alpha_mask << sample) & 0x80000000UL) != 0) in ReadBMPImage()
1130 switch (bmp_info.bits_per_pixel) in ReadBMPImage()
1227 if ((bmp_info.compression == BI_RLE8) || in ReadBMPImage()
1228 (bmp_info.compression == BI_RLE4)) in ReadBMPImage()
1265 if ((bmp_info.compression != BI_RGB) && in ReadBMPImage()
1266 (bmp_info.compression != BI_BITFIELDS)) in ReadBMPImage()
1284 red=((pixel & bmp_info.red_mask) << shift.red) >> 16; in ReadBMPImage()
1289 green=((pixel & bmp_info.green_mask) << shift.green) >> 16; in ReadBMPImage()
1296 blue=((pixel & bmp_info.blue_mask) << shift.blue) >> 16; in ReadBMPImage()
1307 alpha=((pixel & bmp_info.alpha_mask) << shift.alpha) >> 16; in ReadBMPImage()
1366 if ((bmp_info.compression != BI_RGB) && in ReadBMPImage()
1367 (bmp_info.compression != BI_BITFIELDS)) in ReadBMPImage()
1390 red=((pixel & bmp_info.red_mask) << shift.red) >> 16; in ReadBMPImage()
1393 green=((pixel & bmp_info.green_mask) << shift.green) >> 16; in ReadBMPImage()
1396 blue=((pixel & bmp_info.blue_mask) << shift.blue) >> 16; in ReadBMPImage()
1405 alpha=((pixel & bmp_info.alpha_mask) << shift.alpha) >> 16; in ReadBMPImage()
1441 if (bmp_info.height < 0) in ReadBMPImage()
1460 if ((bmp_info.colorspace == 0x4D424544L) && (profile_data > 0) && in ReadBMPImage()
1505 offset=(MagickOffsetType) bmp_info.ba_offset; in ReadBMPImage()
1646 bmp_info; in WriteBMPImage() local
1738 (void) memset(&bmp_info,0,sizeof(bmp_info)); in WriteBMPImage()
1739 bmp_info.file_size=14+12; in WriteBMPImage()
1741 bmp_info.file_size+=28; in WriteBMPImage()
1742 bmp_info.offset_bits=bmp_info.file_size; in WriteBMPImage()
1743 bmp_info.compression=BI_RGB; in WriteBMPImage()
1744 bmp_info.red_mask=0x00ff0000U; in WriteBMPImage()
1745 bmp_info.green_mask=0x0000ff00U; in WriteBMPImage()
1746 bmp_info.blue_mask=0x000000ffU; in WriteBMPImage()
1747 bmp_info.alpha_mask=0xff000000U; in WriteBMPImage()
1756 bmp_info.bits_per_pixel=8; in WriteBMPImage()
1758 bmp_info.bits_per_pixel=1; in WriteBMPImage()
1761 bmp_info.bits_per_pixel=4; in WriteBMPImage()
1764 bmp_info.bits_per_pixel=8; in WriteBMPImage()
1766 bmp_info.bits_per_pixel=8; in WriteBMPImage()
1767 bmp_info.number_colors=1U << bmp_info.bits_per_pixel; in WriteBMPImage()
1771 if ((size_t) bmp_info.number_colors < image->colors) in WriteBMPImage()
1775 bmp_info.file_size+=3*(1UL << bmp_info.bits_per_pixel); in WriteBMPImage()
1776 bmp_info.offset_bits+=3*(1UL << bmp_info.bits_per_pixel); in WriteBMPImage()
1779 bmp_info.file_size+=(1UL << bmp_info.bits_per_pixel); in WriteBMPImage()
1780 bmp_info.offset_bits+=(1UL << bmp_info.bits_per_pixel); in WriteBMPImage()
1789 bmp_info.number_colors=0; in WriteBMPImage()
1798 bmp_info.red_mask=0x00000f00U; in WriteBMPImage()
1799 bmp_info.green_mask=0x000000f0U; in WriteBMPImage()
1800 bmp_info.blue_mask=0x0000000fU; in WriteBMPImage()
1801 bmp_info.alpha_mask=0x0000f000U; in WriteBMPImage()
1806 bmp_info.red_mask=0x00007c00U; in WriteBMPImage()
1807 bmp_info.green_mask=0x000003e0U; in WriteBMPImage()
1808 bmp_info.blue_mask=0x0000001fU; in WriteBMPImage()
1809 bmp_info.alpha_mask=0x00008000U; in WriteBMPImage()
1817 bmp_info.red_mask=0x00007c00U; in WriteBMPImage()
1818 bmp_info.green_mask=0x000003e0U; in WriteBMPImage()
1819 bmp_info.blue_mask=0x0000001fU; in WriteBMPImage()
1820 bmp_info.alpha_mask=0U; in WriteBMPImage()
1825 bmp_info.red_mask=0x0000f800U; in WriteBMPImage()
1826 bmp_info.green_mask=0x000007e0U; in WriteBMPImage()
1827 bmp_info.blue_mask=0x0000001fU; in WriteBMPImage()
1828 bmp_info.alpha_mask=0U; in WriteBMPImage()
1834 bmp_info.bits_per_pixel=16; in WriteBMPImage()
1835 bmp_info.compression=BI_BITFIELDS; in WriteBMPImage()
1839 bmp_info.bits_per_pixel=(unsigned short) ((type > 3) && in WriteBMPImage()
1841 bmp_info.compression=(unsigned int) ((type > 3) && in WriteBMPImage()
1847 bmp_info.bits_per_pixel=32; in WriteBMPImage()
1851 bytes_per_line=4*((image->columns*bmp_info.bits_per_pixel+31)/32); in WriteBMPImage()
1852 bmp_info.ba_offset=0; in WriteBMPImage()
1858 bmp_info.size=12; in WriteBMPImage()
1864 bmp_info.size=40; in WriteBMPImage()
1871 bmp_info.size=108; in WriteBMPImage()
1876 bmp_info.size=124; in WriteBMPImage()
1879 bmp_info.file_size+=extra_size; in WriteBMPImage()
1880 bmp_info.offset_bits+=extra_size; in WriteBMPImage()
1885 bmp_info.width=(ssize_t) image->columns; in WriteBMPImage()
1886 bmp_info.height=(ssize_t) image->rows; in WriteBMPImage()
1887 bmp_info.planes=1; in WriteBMPImage()
1888 bmp_info.image_size=(unsigned int) (bytes_per_line*image->rows); in WriteBMPImage()
1889 bmp_info.file_size+=bmp_info.image_size; in WriteBMPImage()
1890 bmp_info.x_pixels=75*39; in WriteBMPImage()
1891 bmp_info.y_pixels=75*39; in WriteBMPImage()
1897 bmp_info.x_pixels=(unsigned int) (100.0*image->resolution.x/2.54); in WriteBMPImage()
1898 bmp_info.y_pixels=(unsigned int) (100.0*image->resolution.y/2.54); in WriteBMPImage()
1903 bmp_info.x_pixels=(unsigned int) (100.0*image->resolution.x); in WriteBMPImage()
1904 bmp_info.y_pixels=(unsigned int) (100.0*image->resolution.y); in WriteBMPImage()
1908 bmp_info.colors_important=bmp_info.number_colors; in WriteBMPImage()
1917 (void) memset(pixels,0,(size_t) bmp_info.image_size); in WriteBMPImage()
1918 switch (bmp_info.bits_per_pixel) in WriteBMPImage()
2175 if ((type > 2) && (bmp_info.bits_per_pixel == 8)) in WriteBMPImage()
2192 bmp_info.file_size-=bmp_info.image_size; in WriteBMPImage()
2193 bmp_info.image_size=(unsigned int) EncodeImage(image,bytes_per_line, in WriteBMPImage()
2195 bmp_info.file_size+=bmp_info.image_size; in WriteBMPImage()
2199 bmp_info.compression=BI_RLE8; in WriteBMPImage()
2223 " BMP bits_per_pixel=%.20g",(double) bmp_info.bits_per_pixel); in WriteBMPImage()
2224 switch ((int) bmp_info.compression) in WriteBMPImage()
2247 " Compression=UNKNOWN (%u)",bmp_info.compression); in WriteBMPImage()
2251 if (bmp_info.number_colors == 0) in WriteBMPImage()
2256 " Number_colors=%u",bmp_info.number_colors); in WriteBMPImage()
2263 profile_data=(MagickOffsetType) bmp_info.file_size-14; /* from head of BMP info header */ in WriteBMPImage()
2267 bmp_info.file_size+=profile_size+profile_size_pad; in WriteBMPImage()
2270 (void) WriteBlobLSBLong(image,bmp_info.file_size); in WriteBMPImage()
2271 (void) WriteBlobLSBLong(image,bmp_info.ba_offset); /* always 0 */ in WriteBMPImage()
2272 (void) WriteBlobLSBLong(image,bmp_info.offset_bits); in WriteBMPImage()
2278 (void) WriteBlobLSBLong(image,bmp_info.size); in WriteBMPImage()
2279 (void) WriteBlobLSBSignedShort(image,(signed short) bmp_info.width); in WriteBMPImage()
2280 (void) WriteBlobLSBSignedShort(image,(signed short) bmp_info.height); in WriteBMPImage()
2281 (void) WriteBlobLSBShort(image,bmp_info.planes); in WriteBMPImage()
2282 (void) WriteBlobLSBShort(image,bmp_info.bits_per_pixel); in WriteBMPImage()
2289 (void) WriteBlobLSBLong(image,bmp_info.size); in WriteBMPImage()
2290 (void) WriteBlobLSBSignedLong(image,(signed int) bmp_info.width); in WriteBMPImage()
2291 (void) WriteBlobLSBSignedLong(image,(signed int) bmp_info.height); in WriteBMPImage()
2292 (void) WriteBlobLSBShort(image,bmp_info.planes); in WriteBMPImage()
2293 (void) WriteBlobLSBShort(image,bmp_info.bits_per_pixel); in WriteBMPImage()
2294 (void) WriteBlobLSBLong(image,bmp_info.compression); in WriteBMPImage()
2295 (void) WriteBlobLSBLong(image,bmp_info.image_size); in WriteBMPImage()
2296 (void) WriteBlobLSBLong(image,bmp_info.x_pixels); in WriteBMPImage()
2297 (void) WriteBlobLSBLong(image,bmp_info.y_pixels); in WriteBMPImage()
2298 (void) WriteBlobLSBLong(image,bmp_info.number_colors); in WriteBMPImage()
2299 (void) WriteBlobLSBLong(image,bmp_info.colors_important); in WriteBMPImage()
2307 (void) WriteBlobLSBLong(image,bmp_info.red_mask); in WriteBMPImage()
2308 (void) WriteBlobLSBLong(image,bmp_info.green_mask); in WriteBMPImage()
2309 (void) WriteBlobLSBLong(image,bmp_info.blue_mask); in WriteBMPImage()
2310 (void) WriteBlobLSBLong(image,bmp_info.alpha_mask); in WriteBMPImage()
2335 if (isgreater(bmp_info.gamma_scale.x, 1.0) || in WriteBMPImage()
2336 !isgreater(bmp_info.gamma_scale.x, 0.0)) in WriteBMPImage()
2337 bmp_info.gamma_scale.x = 0.0; in WriteBMPImage()
2338 if (isgreater(bmp_info.gamma_scale.y, 1.0) || in WriteBMPImage()
2339 !isgreater(bmp_info.gamma_scale.y, 0.0)) in WriteBMPImage()
2340 bmp_info.gamma_scale.y = 0.0; in WriteBMPImage()
2341 if (isgreater(bmp_info.gamma_scale.z, 1.0) || in WriteBMPImage()
2342 !isgreater(bmp_info.gamma_scale.z, 0.0)) in WriteBMPImage()
2343 bmp_info.gamma_scale.z = 0.0; in WriteBMPImage()
2367 (bmp_info.gamma_scale.x*0x10000)); in WriteBMPImage()
2369 (bmp_info.gamma_scale.y*0x10000)); in WriteBMPImage()
2371 (bmp_info.gamma_scale.z*0x10000)); in WriteBMPImage()
2425 bmp_info.bits_per_pixel),4*sizeof(*bmp_colormap)); in WriteBMPImage()
2432 … for (i=0; i < (ssize_t) MagickMin((ssize_t) image->colors,(ssize_t) bmp_info.number_colors); i++) in WriteBMPImage()
2440 for ( ; i < (ssize_t) (1UL << bmp_info.bits_per_pixel); i++) in WriteBMPImage()
2449 (void) WriteBlob(image,(size_t) (3*(1L << bmp_info.bits_per_pixel)), in WriteBMPImage()
2452 (void) WriteBlob(image,(size_t) (4*(1L << bmp_info.bits_per_pixel)), in WriteBMPImage()
2458 " Pixels: %u bytes",bmp_info.image_size); in WriteBMPImage()
2459 (void) WriteBlob(image,(size_t) bmp_info.image_size,pixels); in WriteBMPImage()