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

- Main Page
- Data Structures
- Files

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

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2004 by Denton Woods (this file by thakis)
    00005 // Last modified: 06/09/2004
    00006 //
    00007 // Filename: src-IL/include/il_hdr.h
    00008 //
    00009 // Description: Reads a RADIANCE High Dynamic Range Image
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012
    00013
    00014 #ifndef HDR_H
    00015 #define HDR_H
    00016
    00017 #include "il_internal.h"
    00018
    00019 #ifdef _WIN32
    00020         #pragma pack(push, gif_struct, 1)
    00021 #endif
    00022
    00023 typedef struct HDRHEADER
    00024 {
    00025         char Signature[10]; //must be "#?RADIANCE"
    00026         ILuint Width, Height;
    00027 } IL_PACKSTRUCT HDRHEADER;
    00028
    00029 #ifdef _WIN32
    00030         #pragma pack(pop, gif_struct)
    00031 #endif
    00032
    00033 // Internal functions
    00034 ILboolean ilIsValidHdrF(ILHANDLE file);
    00035 ILboolean iIsValidHdr();
    00036 ILboolean iCheckHdr(HDRHEADER *Header);
    00037 ILboolean ilLoadHdrF(ILHANDLE file);
    00038 ILboolean iLoadHdrInternal();
    00039 ILboolean iSaveHdrInternal();
    00040
    00041 void ReadScanline(ILubyte *scanline, ILuint w);
    00042
    00043 #endif//HDR_H