DevIL: /home/dwoods/DevIL/src-IL/include/il_pnm.h Source File

- Main Page
- Data Structures
- Files

# /home/dwoods/DevIL/src-IL/include/il_pnm.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2002 by Denton Woods
    00005 // Last modified: 05/25/2001 <--Y2K Compliant! =]
    00006 //
    00007 // Filename: src-IL/include/il_pnm.h
    00008 //
    00009 // Description: Reads/writes to/from pbm/pgm/ppm formats
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012
    00013
    00014 #ifndef PPMPGM_H
    00015 #define PPMPGM_H
    00016
    00017 #include "il_internal.h"
    00018
    00019 #define IL_PBM_ASCII    0x0001
    00020 #define IL_PGM_ASCII    0x0002
    00021 #define IL_PPM_ASCII    0x0003
    00022 #define IL_PBM_BINARY   0x0004
    00023 #define IL_PGM_BINARY   0x0005
    00024 #define IL_PPM_BINARY   0x0006
    00025
    00026 typedef struct PPMINFO
    00027 {
    00028         ILenum  Type;
    00029         ILuint  Width;
    00030         ILuint  Height;
    00031         ILuint  MaxColour;
    00032         ILubyte Bpp;
    00033 } PPMINFO;
    00034
    00035 ILboolean       iIsValidPnm(void);
    00036 ILboolean       iCheckPnm(char Header[2]);
    00037 ILboolean       iLoadPnmInternal(void);
    00038 ILboolean       iSavePnmInternal(void);
    00039 ILimage         *ilReadAsciiPpm(PPMINFO *Info);
    00040 ILimage         *ilReadBinaryPpm(PPMINFO *Info);
    00041 ILimage         *ilReadBitPbm(PPMINFO *Info);
    00042 ILboolean       iGetWord(ILboolean);
    00043 void            PbmMaximize(ILimage *Image);
    00044
    00045
    00046 #endif//PPMPGM_H