PageRenderTime 162ms CodeModel.GetById 80ms app.highlight 1ms RepoModel.GetById 80ms app.codeStats 0ms

/freeimage/ImageFormat.ooc

http://github.com/tsion/ooc-freeimage
Unknown | 50 lines | 46 code | 4 blank | 0 comment | 0 complexity | 468e470cafec666ffecba81d81f95266 MD5 | raw file
 1use freeimage
 2import structs/ArrayList, text/StringTokenizer
 3
 4ImageFormat: extern(FREE_IMAGE_FORMAT) enum {
 5    unknown: extern(FIF_UNKNOWN)
 6    bmp:     extern(FIF_BMP)
 7    ico:     extern(FIF_ICO)
 8    jpeg:    extern(FIF_JPEG)
 9    jgn:     extern(FIF_JNG)
10    koala:   extern(FIF_KOALA)
11    lbm:     extern(FIF_LBM)
12    iff:     extern(FIF_IFF)
13    mng:     extern(FIF_MNG)
14    pbm:     extern(FIF_PBM)
15    pbmraw:  extern(FIF_PBMRAW)
16    pcd:     extern(FIF_PCD)
17    pcx:     extern(FIF_PCX)
18    pgm:     extern(FIF_PGM)
19    pgmraw:  extern(FIF_PGMRAW)
20    png:     extern(FIF_PNG)
21    ppm:     extern(FIF_PPM)
22    ppmraw:  extern(FIF_PPMRAW)
23    ras:     extern(FIF_RAS)
24    targa:   extern(FIF_TARGA)
25    tiff:    extern(FIF_TIFF)
26    wbmp:    extern(FIF_WBMP)
27    psd:     extern(FIF_PSD)
28    cut:     extern(FIF_CUT)
29    xbm:     extern(FIF_XBM)
30    xpm:     extern(FIF_XPM)
31    dds:     extern(FIF_DDS)
32    gif:     extern(FIF_GIF)
33    hdr:     extern(FIF_HDR)
34    faxg3:   extern(FIF_FAXG3)
35    sgi:     extern(FIF_SGI)
36    exr:     extern(FIF_EXR)
37    j2k:     extern(FIF_J2K)
38    jp2:     extern(FIF_JP2)
39    pfm:     extern(FIF_PFM)
40    pict:    extern(FIF_PICT)
41    raw:     extern(FIF_RAW)
42
43//    toString: extern(FreeImage_GetFormatFromFIF) func -> String
44
45//    extensionListString: extern(FreeImage_GetFIFExtensionList) func -> String
46
47//    extensionList: func -> ArrayList<String> {
48//        extensionListString() split(',') toArrayList()
49//    }
50}