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

- Main Page
- Data Structures
- Files

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

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2009 by Denton Woods
    00005 // Last modified: 03/01/2009
    00006 //
    00007 // Filename: src-IL/include/il_internal.h
    00008 //
    00009 // Description: Internal stuff for DevIL
    00010 //
    00011 //-----------------------------------------------------------------------------
    00012 #ifndef INTERNAL_H
    00013 #define INTERNAL_H
    00014 #define _IL_BUILD_LIBRARY
    00015
    00016
    00017 // Local headers
    00018 /*#if (defined(_WIN32) || defined(_WIN64)) && !defined(HAVE_CONFIG_H)
    00019         #define HAVE_CONFIG_H
    00020 #endif*/
    00021 #ifdef HAVE_CONFIG_H //if we use autotools, we have HAVE_CONFIG_H defined and we have to look for it like that
    00022         #include <config.h>
    00023 #else // If we do not use autotools, we have to point to (possibly different) config.h than in the opposite case
    00024         #include <IL/config.h>
    00025 #endif
    00026
    00027 // Standard headers
    00028 #include <stdlib.h>
    00029 #include <stdio.h>
    00030 #include <math.h>
    00031 #include <string.h>
    00032
    00033 #ifdef __cplusplus
    00034 extern "C" {
    00035 #endif
    00036
    00037 #include <IL/il.h>
    00038 #include <IL/devil_internal_exports.h>
    00039 #include "il_files.h"
    00040 #include "il_endian.h"
    00041
    00042 #ifndef _WIN32
    00043         // The Microsoft HD Photo Device Porting Kit has not been ported to anything other
    00044         //  than Windows yet, so we disable this if Windows is not the current platform.
    00045         #define IL_NO_WDP
    00046 #endif//_WIN32
    00047
    00048 // If we do not want support for game image formats, this define removes them all.
    00049 #ifdef IL_NO_GAMES
    00050         #define IL_NO_BLP
    00051         #define IL_NO_DOOM
    00052         #define IL_NO_FTX
    00053         #define IL_NO_IWI
    00054         #define IL_NO_LIF
    00055         #define IL_NO_MDL
    00056         #define IL_NO_ROT
    00057         #define IL_NO_TPL
    00058         #define IL_NO_UTX
    00059         #define IL_NO_WAL
    00060 #endif//IL_NO_GAMES
    00061
    00062 // If we want to compile without support for formats supported by external libraries,
    00063 //  this define will remove them all.
    00064 #ifdef IL_NO_EXTLIBS
    00065         #define IL_NO_EXR
    00066         #define IL_NO_JP2
    00067         #define IL_NO_JPG
    00068         #define IL_NO_LCMS
    00069         #define IL_NO_MNG
    00070         #define IL_NO_PNG
    00071         #define IL_NO_TIF
    00072         #define IL_NO_WDP
    00073         #undef IL_USE_DXTC_NVIDIA
    00074         #undef IL_USE_DXTC_SQUISH
    00075 #endif//IL_NO_EXTLIBS
    00076
    00077 // Windows-specific
    00078 #ifdef _WIN32
    00079         #ifdef _MSC_VER
    00080                 #if _MSC_VER > 1000
    00081                         #pragma once
    00082                         #pragma intrinsic(memcpy)
    00083                         #pragma intrinsic(memset)
    00084                         #pragma intrinsic(strcmp)
    00085                         #pragma intrinsic(strlen)
    00086                         #pragma intrinsic(strcpy)
    00087
    00088                         #if _MSC_VER >= 1300
    00089                                 #pragma warning(disable : 4996)  // MSVC++ 8/9 deprecation warnings
    00090                         #endif
    00091                 #endif // _MSC_VER > 1000
    00092         #endif
    00093         #define WIN32_LEAN_AND_MEAN  // Exclude rarely-used stuff from Windows headers
    00094         #include <windows.h>
    00095 #endif//_WIN32
    00096
    00097 #ifdef _UNICODE
    00098         #define IL_TEXT(s) L##s
    00099         #ifndef _WIN32  // At least in Linux, fopen works fine, and wcsicmp is not defined.
    00100                 #define wcsicmp wcsncasecmp
    00101                 #define _wcsicmp wcsncasecmp
    00102                 #define _wfopen fopen
    00103         #endif
    00104         #define iStrCpy wcscpy
    00105 #else
    00106         #define IL_TEXT(s) (s)
    00107         #define iStrCpy strcpy
    00108 #endif
    00109
    00110 #ifdef IL_INLINE_ASM
    00111         #if (defined (_MSC_VER) && defined(_WIN32))  // MSVC++ only
    00112                 #define USE_WIN32_ASM
    00113         #endif
    00114
    00115         #ifdef _WIN64
    00116                 #undef USE_WIN32_ASM
    00117         //@TODO: Windows 64 compiler cannot use inline ASM, so we need to
    00118         //  generate some MASM code at some point.
    00119         #endif
    00120
    00121         #ifdef _WIN32_WCE  // Cannot use our inline ASM in Windows Mobile.
    00122                 #undef USE_WIN32_ASM
    00123         #endif
    00124 #endif
    00125 extern ILimage *iCurImage;
    00126 #define BIT_0   0x00000001
    00127 #define BIT_1   0x00000002
    00128 #define BIT_2   0x00000004
    00129 #define BIT_3   0x00000008
    00130 #define BIT_4   0x00000010
    00131 #define BIT_5   0x00000020
    00132 #define BIT_6   0x00000040
    00133 #define BIT_7   0x00000080
    00134 #define BIT_8   0x00000100
    00135 #define BIT_9   0x00000200
    00136 #define BIT_10  0x00000400
    00137 #define BIT_11  0x00000800
    00138 #define BIT_12  0x00001000
    00139 #define BIT_13  0x00002000
    00140 #define BIT_14  0x00004000
    00141 #define BIT_15  0x00008000
    00142 #define BIT_16  0x00010000
    00143 #define BIT_17  0x00020000
    00144 #define BIT_18  0x00040000
    00145 #define BIT_19  0x00080000
    00146 #define BIT_20  0x00100000
    00147 #define BIT_21  0x00200000
    00148 #define BIT_22  0x00400000
    00149 #define BIT_23  0x00800000
    00150 #define BIT_24  0x01000000
    00151 #define BIT_25  0x02000000
    00152 #define BIT_26  0x04000000
    00153 #define BIT_27  0x08000000
    00154 #define BIT_28  0x10000000
    00155 #define BIT_29  0x20000000
    00156 #define BIT_30  0x40000000
    00157 #define BIT_31  0x80000000
    00158 #define NUL '\0'  // Easier to type and ?portable?
    00159 #if !_WIN32 || _WIN32_WCE
    00160         int stricmp(const char *src1, const char *src2);
    00161         int strnicmp(const char *src1, const char *src2, size_t max);
    00162 #endif//_WIN32
    00163 #ifdef _WIN32_WCE
    00164         char *strdup(const char *src);
    00165 #endif
    00166 int iStrCmp(ILconst_string src1, ILconst_string src2);
    00167
    00168 //
    00169 // Some math functions
    00170 //
    00171 // A fast integer squareroot, completely accurate for x < 289.
    00172 // Taken from http://atoms.org.uk/sqrt/
    00173 // There is also a version that is accurate for all integers
    00174 // < 2^31, if we should need it
    00175 int iSqrt(int x);
    00176 //
    00177 // Useful miscellaneous functions
    00178 //
    00179 ILboolean       iCheckExtension(ILconst_string Arg, ILconst_string Ext);
    00180 ILbyte*         iFgets(char *buffer, ILuint maxlen);
    00181 ILboolean       iFileExists(ILconst_string FileName);
    00182 ILstring        iGetExtension(ILconst_string FileName);
    00183 ILstring        ilStrDup(ILconst_string Str);
    00184 ILuint          ilStrLen(ILconst_string Str);
    00185 ILuint          ilCharStrLen(const char *Str);
    00186 // Miscellaneous functions
    00187 void                                    ilDefaultStates(void);
    00188 ILenum                                  iGetHint(ILenum Target);
    00189 ILint                                   iGetInt(ILenum Mode);
    00190 void                                    ilRemoveRegistered(void);
    00191 ILAPI void ILAPIENTRY   ilSetCurImage(ILimage *Image);
    00192 ILuint                                  ilDetermineSize(ILenum Type);
    00193 //
    00194 // Rle compression
    00195 //
    00196 #define         IL_TGACOMP 0x01
    00197 #define         IL_PCXCOMP 0x02
    00198 #define         IL_SGICOMP 0x03
    00199 #define     IL_BMPCOMP 0x04
    00200 ILboolean       ilRleCompressLine(ILubyte *ScanLine, ILuint Width, ILubyte Bpp, ILubyte *Dest, ILuint *DestWidth, ILenum CompressMode);
    00201 ILuint          ilRleCompress(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp, ILubyte *Dest, ILenum CompressMode, ILuint *ScanTable);
    00202 void            iSetImage0(void);
    00203 // DXTC compression
    00204 ILuint                  ilNVidiaCompressDXTFile(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILenum DxtType);
    00205 ILAPI ILubyte*  ILAPIENTRY ilNVidiaCompressDXT(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILenum DxtFormat, ILuint *DxtSize);
    00206 ILAPI ILubyte*  ILAPIENTRY ilSquishCompressDXT(ILubyte *Data, ILuint Width, ILuint Height, ILuint Depth, ILenum DxtFormat, ILuint *DxtSize);
    00207
    00208 // Conversion functions
    00209 ILboolean       ilAddAlpha(void);
    00210 ILboolean       ilAddAlphaKey(ILimage *Image);
    00211 ILboolean       iFastConvert(ILenum DestFormat);
    00212 ILboolean       ilFixCur(void);
    00213 ILboolean       ilFixImage(void);
    00214 ILboolean       ilRemoveAlpha(void);
    00215 ILboolean       ilSwapColours(void);
    00216 // Palette functions
    00217 ILboolean       iCopyPalette(ILpal *Dest, ILpal *Src);
    00218 // Miscellaneous functions
    00219 char*           iGetString(ILenum StringName);  // Internal version of ilGetString
    00220
    00221 //
    00222 // Image loading/saving functions
    00223 //
    00224 ILboolean ilIsValidBlp(ILconst_string FileName);
    00225 ILboolean ilIsValidBlpF(ILHANDLE File);
    00226 ILboolean ilIsValidBlpL(const void *Lump, ILuint Size);
    00227 ILboolean ilLoadBlp(ILconst_string FileName);
    00228 ILboolean ilLoadBlpF(ILHANDLE File);
    00229 ILboolean ilLoadBlpL(const void *Lump, ILuint Size);
    00230 ILboolean ilIsValidBmp(ILconst_string CONST_RESTRICT FileName);
    00231 ILboolean ilIsValidBmpF(ILHANDLE File);
    00232 ILboolean ilIsValidBmpL(const void *Lump, ILuint Size);
    00233 ILboolean ilLoadBmp(ILconst_string FileName);
    00234 ILboolean ilLoadBmpF(ILHANDLE File);
    00235 ILboolean ilLoadBmpL(const void *Lump, ILuint Size);
    00236 ILboolean ilSaveBmp(ILconst_string FileName);
    00237 ILuint    ilSaveBmpF(ILHANDLE File);
    00238 ILuint    ilSaveBmpL(void *Lump, ILuint Size);
    00239 ILboolean ilSaveCHeader(ILconst_string FileName, char *InternalName);
    00240 ILboolean ilLoadCut(ILconst_string FileName);
    00241 ILboolean ilLoadCutF(ILHANDLE File);
    00242 ILboolean ilLoadCutL(const void *Lump, ILuint Size);
    00243 ILboolean ilIsValidDcx(ILconst_string FileName);
    00244 ILboolean ilIsValidDcxF(ILHANDLE File);
    00245 ILboolean ilIsValidDcxL(const void *Lump, ILuint Size);
    00246 ILboolean ilLoadDcx(ILconst_string FileName);
    00247 ILboolean ilLoadDcxF(ILHANDLE File);
    00248 ILboolean ilLoadDcxL(const void *Lump, ILuint Size);
    00249 ILboolean ilIsValidDds(ILconst_string FileName);
    00250 ILboolean ilIsValidDdsF(ILHANDLE File);
    00251 ILboolean ilIsValidDdsL(const void *Lump, ILuint Size);
    00252 ILboolean ilLoadDds(ILconst_string FileName);
    00253 ILboolean ilLoadDdsF(ILHANDLE File);
    00254 ILboolean ilLoadDdsL(const void *Lump, ILuint Size);
    00255 ILboolean ilSaveDds(ILconst_string FileName);
    00256 ILuint    ilSaveDdsF(ILHANDLE File);
    00257 ILuint    ilSaveDdsL(void *Lump, ILuint Size);
    00258 ILboolean ilIsValidDicom(ILconst_string FileName);
    00259 ILboolean ilIsValidDicomF(ILHANDLE File);
    00260 ILboolean ilIsValidDicomL(const void *Lump, ILuint Size);
    00261 ILboolean ilLoadDicom(ILconst_string FileName);
    00262 ILboolean ilLoadDicomF(ILHANDLE File);
    00263 ILboolean ilLoadDicomL(const void *Lump, ILuint Size);
    00264 ILboolean ilLoadDoom(ILconst_string FileName);
    00265 ILboolean ilLoadDoomF(ILHANDLE File);
    00266 ILboolean ilLoadDoomL(const void *Lump, ILuint Size);
    00267 ILboolean ilLoadDoomFlat(ILconst_string FileName);
    00268 ILboolean ilLoadDoomFlatF(ILHANDLE File);
    00269 ILboolean ilLoadDoomFlatL(const void *Lump, ILuint Size);
    00270 ILboolean ilIsValidDpx(ILconst_string FileName);
    00271 ILboolean ilIsValidDpxF(ILHANDLE File);
    00272 ILboolean ilIsValidDpxL(const void *Lump, ILuint Size);
    00273 ILboolean ilLoadDpx(ILconst_string FileName);
    00274 ILboolean ilLoadDpxF(ILHANDLE File);
    00275 ILboolean ilLoadDpxL(const void *Lump, ILuint Size);
    00276 ILboolean ilIsValidExr(ILconst_string FileName);
    00277 ILboolean ilIsValidExrF(ILHANDLE File);
    00278 ILboolean ilIsValidExrL(const void *Lump, ILuint Size);
    00279 ILboolean ilLoadExr(ILconst_string FileName);
    00280 ILboolean ilLoadExrF(ILHANDLE File);
    00281 ILboolean ilLoadExrL(const void *Lump, ILuint Size);
    00282 ILboolean ilSaveExr(ILconst_string FileName);
    00283 ILuint    ilSaveExrF(ILHANDLE File);
    00284 ILuint    ilSaveExrL(void *Lump, ILuint Size);
    00285 ILboolean ilIsValidFits(ILconst_string FileName);
    00286 ILboolean ilIsValidFitsF(ILHANDLE File);
    00287 ILboolean ilIsValidFitsL(const void *Lump, ILuint Size);
    00288 ILboolean ilLoadFits(ILconst_string FileName);
    00289 ILboolean ilLoadFitsF(ILHANDLE File);
    00290 ILboolean ilLoadFitsL(const void *Lump, ILuint Size);
    00291 ILboolean ilLoadFtx(ILconst_string FileName);
    00292 ILboolean ilLoadFtxF(ILHANDLE File);
    00293 ILboolean ilLoadFtxL(const void *Lump, ILuint Size);
    00294 ILboolean ilIsValidGif(ILconst_string FileName);
    00295 ILboolean ilIsValidGifF(ILHANDLE File);
    00296 ILboolean ilIsValidGifL(const void *Lump, ILuint Size);
    00297 ILboolean ilLoadGif(ILconst_string FileName);
    00298 ILboolean ilLoadGifF(ILHANDLE File);
    00299 ILboolean ilLoadGifL(const void *Lump, ILuint Size);
    00300 ILboolean ilIsValidHdr(ILconst_string FileName);
    00301 ILboolean ilIsValidHdrF(ILHANDLE File);
    00302 ILboolean ilIsValidHdrL(const void *Lump, ILuint Size);
    00303 ILboolean ilLoadHdr(ILconst_string FileName);
    00304 ILboolean ilLoadHdrF(ILHANDLE File);
    00305 ILboolean ilLoadHdrL(const void *Lump, ILuint Size);
    00306 ILboolean ilSaveHdr(ILconst_string FileName);
    00307 ILuint    ilSaveHdrF(ILHANDLE File);
    00308 ILuint    ilSaveHdrL(void *Lump, ILuint Size);
    00309 ILboolean ilLoadIcon(ILconst_string FileName);
    00310 ILboolean ilLoadIconF(ILHANDLE File);
    00311 ILboolean ilLoadIconL(const void *Lump, ILuint Size);
    00312 ILboolean ilIsValidIcns(ILconst_string FileName);
    00313 ILboolean ilIsValidIcnsF(ILHANDLE File);
    00314 ILboolean ilIsValidIcnsL(const void *Lump, ILuint Size);
    00315 ILboolean ilLoadIcns(ILconst_string FileName);
    00316 ILboolean ilLoadIcnsF(ILHANDLE File);
    00317 ILboolean ilLoadIcnsL(const void *Lump, ILuint Size);
    00318 ILboolean ilLoadIff(ILconst_string FileName);
    00319 ILboolean ilLoadIffF(ILHANDLE File);
    00320 ILboolean ilLoadIffL(const void *Lump, ILuint Size);
    00321 ILboolean ilIsValidIlbm(ILconst_string FileName);
    00322 ILboolean ilIsValidIlbmF(ILHANDLE File);
    00323 ILboolean ilIsValidIlbmL(const void *Lump, ILuint Size);
    00324 ILboolean ilLoadIlbm(ILconst_string FileName);
    00325 ILboolean ilLoadIlbmF(ILHANDLE File);
    00326 ILboolean ilLoadIlbmL(const void *Lump, ILuint Size);
    00327 ILboolean ilIsValidIwi(ILconst_string FileName);
    00328 ILboolean ilIsValidIwiF(ILHANDLE File);
    00329 ILboolean ilIsValidIwiL(const void *Lump, ILuint Size);
    00330 ILboolean ilLoadIwi(ILconst_string FileName);
    00331 ILboolean ilLoadIwiF(ILHANDLE File);
    00332 ILboolean ilLoadIwiL(const void *Lump, ILuint Size);
    00333 ILboolean ilIsValidJp2(ILconst_string FileName);
    00334 ILboolean ilIsValidJp2F(ILHANDLE File);
    00335 ILboolean ilIsValidJp2L(const void *Lump, ILuint Size);
    00336 ILboolean ilLoadJp2(ILconst_string FileName);
    00337 ILboolean ilLoadJp2F(ILHANDLE File);
    00338 ILboolean ilLoadJp2L(const void *Lump, ILuint Size);
    00339 ILboolean ilLoadJp2LInternal(const void *Lump, ILuint Size, ILimage *Image);
    00340 ILboolean ilSaveJp2(ILconst_string FileName);
    00341 ILuint    ilSaveJp2F(ILHANDLE File);
    00342 ILuint    ilSaveJp2L(void *Lump, ILuint Size);
    00343 ILboolean ilIsValidJpeg(ILconst_string FileName);
    00344 ILboolean ilIsValidJpegF(ILHANDLE File);
    00345 ILboolean ilIsValidJpegL(const void *Lump, ILuint Size);
    00346 ILboolean ilLoadJpeg(ILconst_string FileName);
    00347 ILboolean ilLoadJpegF(ILHANDLE File);
    00348 ILboolean ilLoadJpegL(const void *Lump, ILuint Size);
    00349 ILboolean ilSaveJpeg(ILconst_string FileName);
    00350 ILuint    ilSaveJpegF(ILHANDLE File);
    00351 ILuint    ilSaveJpegL(void *Lump, ILuint Size);
    00352 ILboolean ilIsValidLif(ILconst_string FileName);
    00353 ILboolean ilIsValidLifF(ILHANDLE File);
    00354 ILboolean ilIsValidLifL(const void *Lump, ILuint Size);
    00355 ILboolean ilLoadLif(ILconst_string FileName);
    00356 ILboolean ilLoadLifF(ILHANDLE File);
    00357 ILboolean ilLoadLifL(const void *Lump, ILuint Size);
    00358 ILboolean ilIsValidMdl(ILconst_string FileName);
    00359 ILboolean ilIsValidMdlF(ILHANDLE File);
    00360 ILboolean ilIsValidMdlL(const void *Lump, ILuint Size);
    00361 ILboolean ilLoadMdl(ILconst_string FileName);
    00362 ILboolean ilLoadMdlF(ILHANDLE File);
    00363 ILboolean ilLoadMdlL(const void *Lump, ILuint Size);
    00364 ILboolean ilLoadMng(ILconst_string FileName);
    00365 ILboolean ilLoadMngF(ILHANDLE File);
    00366 ILboolean ilLoadMngL(const void *Lump, ILuint Size);
    00367 ILboolean ilSaveMng(ILconst_string FileName);
    00368 ILuint    ilSaveMngF(ILHANDLE File);
    00369 ILuint    ilSaveMngL(void *Lump, ILuint Size);
    00370 ILboolean ilIsValidMp3(ILconst_string FileName);
    00371 ILboolean ilIsValidMp3F(ILHANDLE File);
    00372 ILboolean ilIsValidMp3L(const void *Lump, ILuint Size);
    00373 ILboolean ilLoadMp3(ILconst_string FileName);
    00374 ILboolean ilLoadMp3F(ILHANDLE File);
    00375 ILboolean ilLoadMp3L(const void *Lump, ILuint Size);
    00376 ILboolean ilLoadPcd(ILconst_string FileName);
    00377 ILboolean ilLoadPcdF(ILHANDLE File);
    00378 ILboolean ilLoadPcdL(const void *Lump, ILuint Size);
    00379 ILboolean ilIsValidPcx(ILconst_string FileName);
    00380 ILboolean ilIsValidPcxF(ILHANDLE File);
    00381 ILboolean ilIsValidPcxL(const void *Lump, ILuint Size);
    00382 ILboolean ilLoadPcx(ILconst_string FileName);
    00383 ILboolean ilLoadPcxF(ILHANDLE File);
    00384 ILboolean ilLoadPcxL(const void *Lump, ILuint Size);
    00385 ILboolean ilSavePcx(ILconst_string FileName);
    00386 ILuint    ilSavePcxF(ILHANDLE File);
    00387 ILuint    ilSavePcxL(void *Lump, ILuint Size);
    00388 ILboolean ilIsValidPic(ILconst_string FileName);
    00389 ILboolean ilIsValidPicF(ILHANDLE File);
    00390 ILboolean ilIsValidPicL(const void *Lump, ILuint Size);
    00391 ILboolean ilLoadPic(ILconst_string FileName);
    00392 ILboolean ilLoadPicF(ILHANDLE File);
    00393 ILboolean ilLoadPicL(const void *Lump, ILuint Size);
    00394 ILboolean ilLoadPix(ILconst_string FileName);
    00395 ILboolean ilLoadPixF(ILHANDLE File);
    00396 ILboolean ilLoadPixL(const void *Lump, ILuint Size);
    00397 ILboolean ilIsValidPng(ILconst_string FileName);
    00398 ILboolean ilIsValidPngF(ILHANDLE File);
    00399 ILboolean ilIsValidPngL(const void *Lump, ILuint Size);
    00400 ILboolean ilLoadPng(ILconst_string FileName);
    00401 ILboolean ilLoadPngF(ILHANDLE File);
    00402 ILboolean ilLoadPngL(const void *Lump, ILuint Size);
    00403 ILboolean ilSavePng(ILconst_string FileName);
    00404 ILuint    ilSavePngF(ILHANDLE File);
    00405 ILuint    ilSavePngL(void *Lump, ILuint Size);
    00406 ILboolean ilIsValidPnm(ILconst_string FileName);
    00407 ILboolean ilIsValidPnmF(ILHANDLE File);
    00408 ILboolean ilIsValidPnmL(const void *Lump, ILuint Size);
    00409 ILboolean ilLoadPnm(ILconst_string FileName);
    00410 ILboolean ilLoadPnmF(ILHANDLE File);
    00411 ILboolean ilLoadPnmL(const void *Lump, ILuint Size);
    00412 ILboolean ilSavePnm(ILconst_string FileName);
    00413 ILuint    ilSavePnmF(ILHANDLE File);
    00414 ILuint    ilSavePnmL(void *Lump, ILuint Size);
    00415 ILboolean ilIsValidPsd(ILconst_string FileName);
    00416 ILboolean ilIsValidPsdF(ILHANDLE File);
    00417 ILboolean ilIsValidPsdL(const void *Lump, ILuint Size);
    00418 ILboolean ilLoadPsd(ILconst_string FileName);
    00419 ILboolean ilLoadPsdF(ILHANDLE File);
    00420 ILboolean ilLoadPsdL(const void *Lump, ILuint Size);
    00421 ILboolean ilSavePsd(ILconst_string FileName);
    00422 ILuint    ilSavePsdF(ILHANDLE File);
    00423 ILuint    ilSavePsdL(void *Lump, ILuint Size);
    00424 ILboolean ilIsValidPsp(ILconst_string FileName);
    00425 ILboolean ilIsValidPspF(ILHANDLE File);
    00426 ILboolean ilIsValidPspL(const void *Lump, ILuint Size);
    00427 ILboolean ilLoadPsp(ILconst_string FileName);
    00428 ILboolean ilLoadPspF(ILHANDLE File);
    00429 ILboolean ilLoadPspL(const void *Lump, ILuint Size);
    00430 ILboolean ilLoadPxr(ILconst_string FileName);
    00431 ILboolean ilLoadPxrF(ILHANDLE File);
    00432 ILboolean ilLoadPxrL(const void *Lump, ILuint Size);
    00433 ILboolean ilLoadRaw(ILconst_string FileName);
    00434 ILboolean ilLoadRawF(ILHANDLE File);
    00435 ILboolean ilLoadRawL(const void *Lump, ILuint Size);
    00436 ILboolean ilSaveRaw(ILconst_string FileName);
    00437 ILuint    ilSaveRawF(ILHANDLE File);
    00438 ILuint    ilSaveRawL(void *Lump, ILuint Size);
    00439 ILboolean ilLoadRot(ILconst_string FileName);
    00440 ILboolean ilLoadRotF(ILHANDLE File);
    00441 ILboolean ilLoadRotL(const void *Lump, ILuint Size);
    00442 ILboolean ilIsValidRot(ILconst_string FileName);
    00443 ILboolean ilIsValidRotF(ILHANDLE File);
    00444 ILboolean ilIsValidRotL(const void *Lump, ILuint Size);
    00445 ILboolean ilIsValidSgi(ILconst_string FileName);
    00446 ILboolean ilIsValidSgiF(ILHANDLE File);
    00447 ILboolean ilIsValidSgiL(const void *Lump, ILuint Size);
    00448 ILboolean ilLoadSgi(ILconst_string FileName);
    00449 ILboolean ilLoadSgiF(ILHANDLE File);
    00450 ILboolean ilLoadSgiL(const void *Lump, ILuint Size);
    00451 ILboolean ilSaveSgi(ILconst_string FileName);
    00452 ILuint    ilSaveSgiF(ILHANDLE File);
    00453 ILuint    ilSaveSgiL(void *Lump, ILuint Size);
    00454 ILboolean ilIsValidSun(ILconst_string FileName);
    00455 ILboolean ilIsValidSunF(ILHANDLE File);
    00456 ILboolean ilIsValidSunL(const void *Lump, ILuint Size);
    00457 ILboolean ilLoadSun(ILconst_string FileName);
    00458 ILboolean ilLoadSunF(ILHANDLE File);
    00459 ILboolean ilLoadSunL(const void *Lump, ILuint Size);
    00460 ILboolean ilIsValidTga(ILconst_string FileName);
    00461 ILboolean ilIsValidTgaF(ILHANDLE File);
    00462 ILboolean ilIsValidTgaL(const void *Lump, ILuint Size);
    00463 ILboolean ilLoadTarga(ILconst_string FileName);
    00464 ILboolean ilLoadTargaF(ILHANDLE File);
    00465 ILboolean ilLoadTargaL(const void *Lump, ILuint Size);
    00466 ILboolean ilSaveTarga(ILconst_string FileName);
    00467 ILuint    ilSaveTargaF(ILHANDLE File);
    00468 ILuint    ilSaveTargaL(void *Lump, ILuint Size);
    00469 ILboolean ilLoadTexture(ILconst_string FileName);
    00470 ILboolean ilLoadTextureF(ILHANDLE File);
    00471 ILboolean ilLoadTextureL(const void *Lump, ILuint Size);
    00472 ILboolean ilIsValidTiff(ILconst_string FileName);
    00473 ILboolean ilIsValidTiffF(ILHANDLE File);
    00474 ILboolean ilIsValidTiffL(const void *Lump, ILuint Size);
    00475 ILboolean ilLoadTiff(ILconst_string FileName);
    00476 ILboolean ilLoadTiffF(ILHANDLE File);
    00477 ILboolean ilLoadTiffL(const void *Lump, ILuint Size);
    00478 ILboolean ilSaveTiff(ILconst_string FileName);
    00479 ILuint    ilSaveTiffF(ILHANDLE File);
    00480 ILuint    ilSaveTiffL(void *Lump, ILuint Size);
    00481 ILboolean ilIsValidTpl(ILconst_string FileName);
    00482 ILboolean ilIsValidTplF(ILHANDLE File);
    00483 ILboolean ilIsValidTplL(const void *Lump, ILuint Size);
    00484 ILboolean ilLoadTpl(ILconst_string FileName);
    00485 ILboolean ilLoadTplF(ILHANDLE File);
    00486 ILboolean ilLoadTplL(const void *Lump, ILuint Size);
    00487 ILboolean ilLoadUtx(ILconst_string FileName);
    00488 ILboolean ilLoadUtxF(ILHANDLE File);
    00489 ILboolean ilLoadUtxL(const void *Lump, ILuint Size);
    00490 ILboolean ilIsValidVtf(ILconst_string FileName);
    00491 ILboolean ilIsValidVtfF(ILHANDLE File);
    00492 ILboolean ilIsValidVtfL(const void *Lump, ILuint Size);
    00493 ILboolean ilLoadVtf(ILconst_string FileName);
    00494 ILboolean ilLoadVtfF(ILHANDLE File);
    00495 ILboolean ilLoadVtfL(const void *Lump, ILuint Size);
    00496 ILboolean ilSaveVtf(ILconst_string FileName);
    00497 ILuint    ilSaveVtfF(ILHANDLE File);
    00498 ILuint    ilSaveVtfL(void *Lump, ILuint Size);ILboolean ilLoadWal(ILconst_string FileName);
    00499 ILboolean ilLoadWalF(ILHANDLE File);
    00500 ILboolean ilLoadWalL(const void *Lump, ILuint Size);
    00501 ILboolean ilLoadWbmp(ILconst_string FileName);
    00502 ILboolean ilLoadWbmpF(ILHANDLE File);
    00503 ILboolean ilLoadWbmpL(const void *Lump, ILuint Size);
    00504 ILboolean ilSaveWbmp(ILconst_string FileName);
    00505 ILuint    ilSaveWbmpF(ILHANDLE File);
    00506 ILuint    ilSaveWbmpL(void *Lump, ILuint Size);
    00507 ILboolean ilIsValidWdp(ILconst_string FileName);
    00508 ILboolean ilIsValidWdpF(ILHANDLE File);
    00509 ILboolean ilIsValidWdpL(const void *Lump, ILuint Size);
    00510 ILboolean ilLoadWdp(ILconst_string FileName);
    00511 ILboolean ilLoadWdpF(ILHANDLE File);
    00512 ILboolean ilLoadWdpL(const void *Lump, ILuint Size);
    00513 ILboolean ilIsValidXpm(ILconst_string FileName);
    00514 ILboolean ilIsValidXpmF(ILHANDLE File);
    00515 ILboolean ilIsValidXpmL(const void *Lump, ILuint Size);
    00516 ILboolean ilLoadXpm(ILconst_string FileName);
    00517 ILboolean ilLoadXpmF(ILHANDLE File);
    00518 ILboolean ilLoadXpmL(const void *Lump, ILuint Size);
    00519
    00520
    00521 // OpenEXR is written in C++, so we have to wrap this to avoid linker errors.
    00522 /*#ifndef IL_NO_EXR
    00523         #ifdef __cplusplus
    00524         extern "C" {
    00525         #endif
    00526                 ILboolean ilLoadExr(ILconst_string FileName);
    00527         #ifdef __cplusplus
    00528         }
    00529         #endif
    00530 #endif*/
    00531
    00532 //ILboolean ilLoadExr(ILconst_string FileName);
    00533
    00534
    00535 #ifdef __cplusplus
    00536 }
    00537 #endif
    00538
    00539 #endif//INTERNAL_H