# E:/DevIL/src-IL/src/il_iff.c File Reference

`#include "il_internal.h"`

## Data Structures

struct | _iff_chunk

## Defines

#define | CHUNK_STACK_SIZE (32)
#define | RGB_FLAG (1)
#define | ALPHA_FLAG (2)
#define | ZBUFFER_FLAG (4)

## Typedefs

typedef struct _iff_chunk | iff_chunk

## Functions

iff_chunk | iff_begin_read_chunk ()
void | iff_end_read_chunk ()
char * | iff_read_data (int size)
ILboolean | iLoadIffInternal (void)
char * | iff_decompress_rle (ILuint numBytes, char *compressedData, ILuint compressedDataSize, ILuint *compressedStartIndex)
char * | iffReadUncompressedTile (ILushort width, ILushort height, ILbyte depth)
char * | iff_decompress_tile_rle (ILushort width, ILushort height, ILushort depth, char *compressedData, ILuint compressedDataSize)
ILboolean | ilLoadIff (const ILstring FileName)
| Reads an IFF file.
ILboolean | ilLoadIffF (ILHANDLE File)
| Reads an already-opened IFF file.
ILboolean | ilLoadIffL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a IFF.

## Variables

const ILuint | IFF_TAG_CIMG = ('C' << 24) | ('I' << 16) | ('M' << 8) | ('G')
const ILuint | IFF_TAG_FOR4 = ('F' << 24) | ('O' << 16) | ('R' << 8) | ('4')
const ILuint | IFF_TAG_TBHD = ('T' << 24) | ('B' << 16) | ('H' << 8) | ('D')
const ILuint | IFF_TAG_TBMP = ('T' << 24) | ('B' << 16) | ('M' << 8) | ('P')
const ILuint | IFF_TAG_RGBA = ('R' << 24) | ('G' << 16) | ('B' << 8) | ('A')
const ILuint | IFF_TAG_CLPZ = ('C' << 24) | ('L' << 16) | ('P' << 8) | ('Z')
const ILuint | IFF_TAG_ESXY = ('E' << 24) | ('S' << 16) | ('X' << 8) | ('Y')
const ILuint | IFF_TAG_ZBUF = ('Z' << 24) | ('B' << 16) | ('U' << 8) | ('F')
const ILuint | IFF_TAG_BLUR = ('B' << 24) | ('L' << 16) | ('U' << 8) | ('R')
const ILuint | IFF_TAG_BLRT = ('B' << 24) | ('L' << 16) | ('R' << 8) | ('T')
const ILuint | IFF_TAG_HIST = ('H' << 24) | ('I' << 16) | ('S' << 8) | ('T')

## Define Documentation

#define ALPHA_FLAG (2)

Referenced by iLoadIffInternal().

#define CHUNK_STACK_SIZE (32)

Referenced by iff_begin_read_chunk().

#define RGB_FLAG (1)

Referenced by iLoadIffInternal().

#define ZBUFFER_FLAG (4)

Referenced by iLoadIffInternal().

## Typedef Documentation

typedef struct _iff_chunk iff_chunk

## Function Documentation

iff_chunk iff_begin_read_chunk | ( |  | ) |

Referenced by iLoadIffInternal().

char * iff_decompress_rle | ( | ILuint | numBytes,
|  | char * | compressedData,
|  | ILuint | compressedDataSize,
|  | ILuint * | compressedStartIndex |
| ) |  |  |

Referenced by iff_decompress_tile_rle().

char * iff_decompress_tile_rle | ( | ILushort | width,
|  | ILushort | height,
|  | ILushort | depth,
|  | char * | compressedData,
|  | ILuint | compressedDataSize |
| ) |  |  |

Referenced by iLoadIffInternal().

void iff_end_read_chunk | ( |  | ) |

Referenced by iLoadIffInternal().

char * iff_read_data | ( | int | size | ) |

Referenced by iLoadIffInternal().

char * iffReadUncompressedTile | ( | ILushort | width,
|  | ILushort | height,
|  | ILbyte | depth |
| ) |  |  |

Referenced by iLoadIffInternal().

ILboolean ilLoadIff | ( | const ILstring | FileName | ) |

Reads an IFF file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadIffF | ( | ILHANDLE | File | ) |

Reads an already-opened IFF file.

Referenced by ilLoadF(), and ilLoadIff().

ILboolean ilLoadIffL | ( | const void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Reads from a memory "lump" that contains a IFF.

Referenced by ilLoadL().

ILboolean iLoadIffInternal | ( | void |  | ) |

Referenced by ilLoadIffF(), and ilLoadIffL().

## Variable Documentation

const ILuint IFF_TAG_BLRT = ('B' << 24) | ('L' << 16) | ('R' << 8) | ('T')

const ILuint IFF_TAG_BLUR = ('B' << 24) | ('L' << 16) | ('U' << 8) | ('R')

const ILuint IFF_TAG_CIMG = ('C' << 24) | ('I' << 16) | ('M' << 8) | ('G')

Referenced by iLoadIffInternal().

const ILuint IFF_TAG_CLPZ = ('C' << 24) | ('L' << 16) | ('P' << 8) | ('Z')

const ILuint IFF_TAG_ESXY = ('E' << 24) | ('S' << 16) | ('X' << 8) | ('Y')

const ILuint IFF_TAG_FOR4 = ('F' << 24) | ('O' << 16) | ('R' << 8) | ('4')

const ILuint IFF_TAG_HIST = ('H' << 24) | ('I' << 16) | ('S' << 8) | ('T')

const ILuint IFF_TAG_RGBA = ('R' << 24) | ('G' << 16) | ('B' << 8) | ('A')

const ILuint IFF_TAG_TBHD = ('T' << 24) | ('B' << 16) | ('H' << 8) | ('D')

const ILuint IFF_TAG_TBMP = ('T' << 24) | ('B' << 16) | ('M' << 8) | ('P')

const ILuint IFF_TAG_ZBUF = ('Z' << 24) | ('B' << 16) | ('U' << 8) | ('F')