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

`#include "il_internal.h"`

Go to the source code of this file.

## Data Structures

struct | PIC_HEAD
struct | CHANNEL

## Defines

#define | PIC_UNSIGNED_INTEGER 0x00
#define | PIC_SIGNED_INTEGER 0x10
#define | PIC_SIGNED_FLOAT 0x20
#define | PIC_UNCOMPRESSED 0x00
#define | PIC_PURE_RUN_LENGTH 0x01
#define | PIC_MIXED_RUN_LENGTH 0x02
#define | PIC_RED_CHANNEL 0x80
#define | PIC_GREEN_CHANNEL 0x40
#define | PIC_BLUE_CHANNEL 0x20
#define | PIC_ALPHA_CHANNEL 0x10
#define | PIC_SHADOW_CHANNEL 0x08
#define | PIC_DEPTH_CHANNEL 0x04
#define | PIC_AUXILIARY_1_CHANNEL 0x02
#define | PIC_AUXILIARY_2_CHANNEL 0x01

## Functions

ILboolean | iIsValidPic (void)
ILboolean | iCheckPic (PIC_HEAD *Header)
ILboolean | iLoadPicInternal (void)
ILboolean | readScanlines (ILuint *image, ILint width, ILint height, CHANNEL *channel, ILuint alpha)
ILuint | readScanline (ILubyte *scan, ILint width, CHANNEL *channel, ILint bytes)
ILboolean | channelReadRaw (ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)
ILboolean | channelReadPure (ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)
ILboolean | channelReadMixed (ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes)

## Define Documentation

#define PIC_ALPHA_CHANNEL 0x10

Referenced by iLoadPicInternal(), and readScanline().

#define PIC_AUXILIARY_1_CHANNEL 0x02

#define PIC_AUXILIARY_2_CHANNEL 0x01

#define PIC_BLUE_CHANNEL 0x20

Referenced by readScanline().

#define PIC_DEPTH_CHANNEL 0x04

#define PIC_GREEN_CHANNEL 0x40

Referenced by readScanline().

#define PIC_MIXED_RUN_LENGTH 0x02

Referenced by readScanline().

#define PIC_PURE_RUN_LENGTH 0x01

Referenced by readScanline().

#define PIC_RED_CHANNEL 0x80

Referenced by readScanline().

#define PIC_SHADOW_CHANNEL 0x08

#define PIC_SIGNED_FLOAT 0x20

#define PIC_SIGNED_INTEGER 0x10

#define PIC_UNCOMPRESSED 0x00

Referenced by readScanline().

#define PIC_UNSIGNED_INTEGER 0x00

## Function Documentation

ILboolean channelReadMixed | ( | ILubyte * | scan,
|  | ILint | width,
|  | ILint | noCol,
|  | ILint * | off,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanline().

ILboolean channelReadPure | ( | ILubyte * | scan,
|  | ILint | width,
|  | ILint | noCol,
|  | ILint * | off,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanline().

ILboolean channelReadRaw | ( | ILubyte * | scan,
|  | ILint | width,
|  | ILint | noCol,
|  | ILint * | off,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanline().

ILboolean iCheckPic | ( | PIC_HEAD * | Header | ) |

Referenced by iIsValidPic(), and iLoadPicInternal().

ILboolean iIsValidPic | ( | void |  | ) |

Referenced by ilIsValidPicF(), and ilIsValidPicL().

ILboolean iLoadPicInternal | ( | void |  | ) |

Referenced by ilLoadPicF(), and ilLoadPicL().

ILuint readScanline | ( | ILubyte * | scan,
|  | ILint | width,
|  | CHANNEL * | channel,
|  | ILint | bytes |
| ) |  |  |

Referenced by readScanlines().

ILboolean readScanlines | ( | ILuint * | image,
|  | ILint | width,
|  | ILint | height,
|  | CHANNEL * | channel,
|  | ILuint | alpha |
| ) |  |  |

Referenced by iLoadPicInternal().