# E:/DevIL/src-IL/include/il_sgi.h File Reference

`#include "il_internal.h"`

Go to the source code of this file.

## Data Structures

struct | iSgiHeader

## Defines

#define | SGI_VERBATIM 0
#define | SGI_RLE 1
#define | SGI_MAGICNUM 474
#define | SGI_COLMAP_NORMAL 0
#define | SGI_COLMAP_DITHERED 1
#define | SGI_COLMAP_SCREEN 2
#define | SGI_COLMAP_COLMAP 3

## Functions

ILboolean | iIsValidSgi (void)
ILboolean | iCheckSgi (iSgiHeader *Header)
ILboolean | iLoadSgiInternal (void)
ILboolean | iSaveSgiInternal (void)
void | iExpandScanLine (ILubyte *Dest, ILubyte *Src, ILuint Bpc)
ILint | iGetScanLine (ILubyte *ScanLine, iSgiHeader *Head, ILuint Length)
ILint | iGetScanLineFast (ILubyte *ScanLine, iSgiHeader *Head, ILuint Length, ILubyte *)
void | sgiSwitchData (ILubyte *Data, ILuint SizeOfData)
ILboolean | iNewSgi (iSgiHeader *Head)
ILboolean | iReadNonRleSgi (iSgiHeader *Head)
ILboolean | iReadRleSgi (iSgiHeader *Head)
ILboolean | iSaveRleSgi (ILubyte *Data, ILuint w, ILuint h, ILuint numChannels, ILuint bps)

## Define Documentation

#define SGI_COLMAP_COLMAP 3

#define SGI_COLMAP_DITHERED 1

#define SGI_COLMAP_NORMAL 0

#define SGI_COLMAP_SCREEN 2

#define SGI_MAGICNUM 474

Referenced by iCheckSgi(), and iSaveSgiInternal().

#define SGI_RLE 1

Referenced by iCheckSgi(), and iLoadSgiInternal().

#define SGI_VERBATIM 0

Referenced by iCheckSgi().

## Function Documentation

ILboolean iCheckSgi | ( | iSgiHeader * | Header | ) |

Referenced by iIsValidSgi(), and iLoadSgiInternal().

void iExpandScanLine | ( | ILubyte * | Dest,
|  | ILubyte * | Src,
|  | ILuint | Bpc |
| ) |  |  |

ILint iGetScanLine | ( | ILubyte * | ScanLine,
|  | iSgiHeader * | Head,
|  | ILuint | Length |
| ) |  |  |

Referenced by iReadRleSgi().

ILint iGetScanLineFast | ( | ILubyte * | ScanLine,
|  | iSgiHeader * | Head,
|  | ILuint | Length,
|  | ILubyte * |  |
| ) |  |  |

ILboolean iIsValidSgi | ( | void |  | ) |

Referenced by ilIsValidSgiF(), and ilIsValidSgiL().

ILboolean iLoadSgiInternal | ( | void |  | ) |

Referenced by ilLoadSgiF(), and ilLoadSgiL().

ILboolean iNewSgi | ( | iSgiHeader * | Head | ) |

Referenced by iReadNonRleSgi(), and iReadRleSgi().

ILboolean iReadNonRleSgi | ( | iSgiHeader * | Head | ) |

Referenced by iLoadSgiInternal().

ILboolean iReadRleSgi | ( | iSgiHeader * | Head | ) |

Referenced by iLoadSgiInternal().

ILboolean iSaveRleSgi | ( | ILubyte * | Data,
|  | ILuint | w,
|  | ILuint | h,
|  | ILuint | numChannels,
|  | ILuint | bps |
| ) |  |  |

Referenced by iSaveSgiInternal().

ILboolean iSaveSgiInternal | ( | void |  | ) |

Referenced by ilSaveSgiF(), and ilSaveSgiL().

void sgiSwitchData | ( | ILubyte * | Data,
|  | ILuint | SizeOfData |
| ) |  |  |

Referenced by iReadRleSgi().