module Vision.Image.Storage.DevIL.ImageType where
import Data.Word
class ImageType t where
toIlType :: t -> Word32
data Autodetect = Autodetect deriving (Eq, Show)
data BLP = BLP deriving (Eq, Show)
data BMP = BMP deriving (Eq, Show)
data CHEAD = CHEAD deriving (Eq, Show)
data CUT = CUT deriving (Eq, Show)
data DCX = DCX deriving (Eq, Show)
data DDS = DDS deriving (Eq, Show)
data DICOM = DICOM deriving (Eq, Show)
data Doom = Doom deriving (Eq, Show)
data DoomFlat = DoomFlat deriving (Eq, Show)
data DPX = DPX deriving (Eq, Show)
data EXR = EXR deriving (Eq, Show)
data FITS = FITS deriving (Eq, Show)
data FTX = FTX deriving (Eq, Show)
data GIF = GIF deriving (Eq, Show)
data HDR = HDR deriving (Eq, Show)
data ICO = ICO deriving (Eq, Show)
data ICNS = ICNS deriving (Eq, Show)
data IFF = IFF deriving (Eq, Show)
data IWI = IWI deriving (Eq, Show)
data JASCPAL = JASCPAL deriving (Eq, Show)
data JP2 = JP2 deriving (Eq, Show)
data JPG = JPG deriving (Eq, Show)
data LIF = LIF deriving (Eq, Show)
data MDL = MDL deriving (Eq, Show)
data MNG = MNG deriving (Eq, Show)
data MP3 = MP3 deriving (Eq, Show)
data PCD = PCD deriving (Eq, Show)
data PCX = PCX deriving (Eq, Show)
data PIC = PIC deriving (Eq, Show)
data PIX = PIX deriving (Eq, Show)
data PNG = PNG deriving (Eq, Show)
data PNM = PNM deriving (Eq, Show)
data PSD = PSD deriving (Eq, Show)
data PSP = PSP deriving (Eq, Show)
data PXR = PXR deriving (Eq, Show)
data RAW = RAW deriving (Eq, Show)
data ROT = ROT deriving (Eq, Show)
data SGI = SGI deriving (Eq, Show)
data SUN = SUN deriving (Eq, Show)
data Texture = Texture deriving (Eq, Show)
data TGA = TGA deriving (Eq, Show)
data TIFF = TIFF deriving (Eq, Show)
data TPL = TPL deriving (Eq, Show)
data UTX = UTX deriving (Eq, Show)
data VTF = VTF deriving (Eq, Show)
data WAL = WAL deriving (Eq, Show)
data WBMP = WBMP deriving (Eq, Show)
data XPM = XPM deriving (Eq, Show)
instance ImageType Autodetect where
toIlType Autodetect = (0)
instance ImageType BLP where
toIlType BLP = (1100)
instance ImageType BMP where
toIlType BMP = (1056)
instance ImageType CHEAD where
toIlType CHEAD = (1071)
instance ImageType CUT where
toIlType CUT = (1057)
instance ImageType DCX where
toIlType DCX = (1080)
instance ImageType DDS where
toIlType DDS = (1079)
instance ImageType DICOM where
toIlType DICOM = (1098)
instance ImageType Doom where
toIlType Doom = (1058)
instance ImageType DoomFlat where
toIlType DoomFlat = (1059)
instance ImageType DPX where
toIlType DPX = (1104)
instance ImageType EXR where
toIlType EXR = (1090)
instance ImageType FITS where
toIlType FITS = (1097)
instance ImageType FTX where
toIlType FTX = (1101)
instance ImageType GIF where
toIlType GIF = (1078)
instance ImageType HDR where
toIlType HDR = (1087)
instance ImageType ICO where
toIlType ICO = (1060)
instance ImageType ICNS where
toIlType ICNS = (1088)
instance ImageType IFF where
toIlType IFF = (1095)
instance ImageType IWI where
toIlType IWI = (1099)
instance ImageType JASCPAL where
toIlType JASCPAL = (1141)
instance ImageType JP2 where
toIlType JP2 = (1089)
instance ImageType JPG where
toIlType JPG = (1061)
instance ImageType LIF where
toIlType LIF = (1076)
instance ImageType MDL where
toIlType MDL = (1073)
instance ImageType MNG where
toIlType MNG = (1077)
instance ImageType MP3 where
toIlType MP3 = (1106)
instance ImageType PCD where
toIlType PCD = (1063)
instance ImageType PCX where
toIlType PCX = (1064)
instance ImageType PIC where
toIlType PIC = (1065)
instance ImageType PIX where
toIlType PIX = (1084)
instance ImageType PNG where
toIlType PNG = (1066)
instance ImageType PNM where
toIlType PNM = (1067)
instance ImageType PSD where
toIlType PSD = (1081)
instance ImageType PSP where
toIlType PSP = (1083)
instance ImageType PXR where
toIlType PXR = (1085)
instance ImageType RAW where
toIlType RAW = (1072)
instance ImageType ROT where
toIlType ROT = (1102)
instance ImageType SGI where
toIlType SGI = (1068)
instance ImageType SUN where
toIlType SUN = (1094)
instance ImageType Texture where
toIlType Texture = (1103)
instance ImageType TGA where
toIlType TGA = (1069)
instance ImageType TIFF where
toIlType TIFF = (1070)
instance ImageType TPL where
toIlType TPL = (1096)
instance ImageType UTX where
toIlType UTX = (1105)
instance ImageType VTF where
toIlType VTF = (1092)
instance ImageType WAL where
toIlType WAL = (1074)
instance ImageType WBMP where
toIlType WBMP = (1093)
instance ImageType XPM where
toIlType XPM = (1086)