1 module sbylib.wrapper.freeimage.constants; 2 3 import derelict.freeimage.freeimage; 4 5 /** 6 Type which is returned by Image.getImageType 7 */ 8 enum ImageType { 9 Unknown = FIT_UNKNOWN, 10 Bitmap = FIT_BITMAP, 11 Uint16 = FIT_UINT16, 12 Int16 = FIT_INT16, 13 Uint32 = FIT_UINT32, 14 Int32 = FIT_INT32, 15 Float = FIT_FLOAT, 16 Double = FIT_DOUBLE, 17 Complex = FIT_COMPLEX, 18 Rgb16 = FIT_RGB16, 19 Rgba16 = FIT_RGBA16, 20 Rgbf = FIT_RGBF, 21 Rgbaf = FIT_RGBAF 22 } 23 24 package enum ImageFormat { 25 Unknown = FIF_UNKNOWN, 26 Bmp = FIF_BMP, 27 Cut = FIF_CUT, 28 Dds = FIF_DDS, 29 Exr = FIF_EXR, 30 FaxG3 = FIF_FAXG3, 31 Gif = FIF_GIF, 32 Hdr = FIF_HDR, 33 Ico = FIF_ICO, 34 Iff = FIF_IFF, 35 J2k = FIF_J2K, 36 Jng = FIF_JNG, 37 Jp2 = FIF_JP2, 38 Jpeg = FIF_JPEG, 39 Koala = FIF_KOALA, 40 Mng = FIF_MNG, 41 Pbm = FIF_PBM, 42 PbmRaw = FIF_PBMRAW, 43 Pcd = FIF_PCD, 44 Pcx = FIF_PCX, 45 Pfm = FIF_PFM, 46 Pgm = FIF_PGM, 47 PgmRaw = FIF_PGMRAW, 48 Pict = FIF_PICT, 49 Png = FIF_PNG, 50 Ppm = FIF_PPM, 51 PpmRaw = FIF_PPMRAW, 52 Psd = FIF_PSD, 53 Ras = FIF_RAS, 54 Raw = FIF_RAW, 55 Sgi = FIF_SGI, 56 Targa = FIF_TARGA, 57 Tiff = FIF_TIFF, 58 Wbmp = FIF_WBMP, 59 Xbm = FIF_XBM, 60 Xpm = FIF_XPM 61 } 62 63 /** 64 Flag type used in ImageLoader.loadAsJpeg 65 */ 66 enum JpegLoadQuality { 67 Fast = JPEG_FAST, 68 Accurate = JPEG_ACCURATE, 69 } 70 71 /** 72 Flag type used in ImageLoader.loadAsPcd 73 */ 74 enum PcdLoadOption { 75 Base = PCD_BASE, 76 BaseDiv4 = PCD_BASEDIV4, 77 BaseDiv16 = PCD_BASEDIV16, 78 } 79 80 /** 81 Flag type used in Image.saveAsExr 82 */ 83 enum ExrCompressOption { 84 None = EXR_NONE, 85 Zip = EXR_ZIP, 86 Piz = EXR_PIZ, 87 Pxr24 = EXR_PXR24, 88 B44 = EXR_B44, 89 LC = EXR_LC, 90 } 91 92 /** 93 Flag type used in Image.saveAsJpeg 94 */ 95 enum JpegSaveQualityOption { 96 Default = JPEG_DEFAULT, 97 Superb = JPEG_QUALITYSUPERB, 98 Good = JPEG_QUALITYGOOD, 99 Normal = JPEG_QUALITYNORMAL, 100 Average = JPEG_QUALITYAVERAGE, 101 Bad = JPEG_QUALITYBAD, 102 } 103 104 /** 105 Flag type used in Image.saveAsJpeg 106 */ 107 enum JpegSaveSubsamplingOption { 108 Subsampling411 = JPEG_SUBSAMPLING_411, 109 Subsampling420 = JPEG_SUBSAMPLING_420, 110 Subsampling422 = JPEG_SUBSAMPLING_422, 111 Subsampling444 = JPEG_SUBSAMPLING_444, 112 } 113 114 /** 115 Flag type used in Image.saveAsPng 116 */ 117 enum PngCompressOption { 118 BestSpeed = PNG_Z_BEST_SPEED, 119 DefaultCompression = PNG_Z_DEFAULT_COMPRESSION, 120 BestCompression = PNG_Z_BEST_COMPRESSION, 121 NoCompression = PNG_Z_NO_COMPRESSION, 122 } 123 124 /** 125 Flag type used in Image.saveAsPbm, Image.saveAsPgm, Image.saveAsPpm 126 */ 127 enum PnmSaveOption { 128 Raw = PNM_SAVE_RAW, 129 Ascii = PNM_SAVE_ASCII 130 } 131 132 /** 133 Flag type used in Image.saveAsTiff 134 */ 135 enum TiffCompressOption { 136 PackBits = TIFF_PACKBITS, 137 Deflate = TIFF_DEFLATE, 138 AdobeDeflate = TIFF_ADOBE_DEFLATE, 139 None = TIFF_NONE, 140 CCITT_Fax3 = TIFF_CCITTFAX3, 141 CCITT_Fax4 = TIFF_CCITTFAX4, 142 LZW = TIFF_LZW, 143 Jpeg = TIFF_JPEG, 144 }