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

`#include "il_internal.h"`
`#include "il_pcx.h"`
`#include "il_manip.h"`

## Functions

ILboolean | ilIsValidPcx (ILconst_string FileName)
| Checks if the file specified in FileName is a valid .pcx file.
ILboolean | ilIsValidPcxF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid .pcx file at the current position.
ILboolean | ilIsValidPcxL (const void *Lump, ILuint Size)
| Checks if Lump is a valid .pcx lump.
ILboolean | iGetPcxHead (PCXHEAD *Head)
ILboolean | iIsValidPcx ()
ILboolean | iCheckPcx (PCXHEAD *Header)
ILboolean | ilLoadPcx (ILconst_string FileName)
| Reads a .pcx file.
ILboolean | ilLoadPcxF (ILHANDLE File)
| Reads an already-opened .pcx file.
ILboolean | ilLoadPcxL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a .pcx.
ILboolean | iLoadPcxInternal ()
ILboolean | iUncompressPcx (PCXHEAD *Header)
ILboolean | iUncompressSmall (PCXHEAD *Header)
ILboolean | ilSavePcx (const ILstring FileName)
| Writes a .pcx file.
ILuint | ilSavePcxF (ILHANDLE File)
| Writes a .pcx to an already-opened file.
ILuint | ilSavePcxL (void *Lump, ILuint Size)
| Writes a .pcx to a memory "lump".
ILboolean | iSavePcxInternal ()
ILuint | encput (ILubyte byt, ILubyte cnt)
ILuint | encLine (ILubyte *inBuff, ILint inLen, ILubyte Stride)

## Function Documentation

ILuint encLine | ( | ILubyte * | inBuff,
|  | ILint | inLen,
|  | ILubyte | Stride |
| ) |  |  |

Referenced by iSavePcxInternal().

ILuint encput | ( | ILubyte | byt,
|  | ILubyte | cnt |
| ) |  |  |

Referenced by encLine().

ILboolean iCheckPcx | ( | PCXHEAD * | Header | ) |

Referenced by iIsValidPcx(), and iLoadPcxInternal().

ILboolean iGetPcxHead | ( | PCXHEAD * | Head | ) |

Referenced by iIsValidPcx(), and iLoadPcxInternal().

ILboolean iIsValidPcx | ( | void |  | ) |

Referenced by ilIsValidPcxF(), and ilIsValidPcxL().

ILboolean ilIsValidPcx | ( | ILconst_string | FileName | ) |

Checks if the file specified in FileName is a valid .pcx file.

Referenced by ilIsValid().

ILboolean ilIsValidPcxF | ( | ILHANDLE | File | ) |

Checks if the ILHANDLE contains a valid .pcx file at the current position.

Referenced by ilDetermineTypeF(), ilIsValidF(), and ilIsValidPcx().

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

Checks if Lump is a valid .pcx lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadPcx | ( | ILconst_string | FileName | ) |

Reads a .pcx file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadPcxF | ( | ILHANDLE | File | ) |

Reads an already-opened .pcx file.

Referenced by ilLoadF(), and ilLoadPcx().

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

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

Referenced by ilLoadL().

ILboolean iLoadPcxInternal | ( | void |  | ) |

Referenced by ilLoadPcxF(), and ilLoadPcxL().

ILboolean ilSavePcx | ( | const ILstring | FileName | ) |

Writes a .pcx file.

Referenced by ilSave(), and ilSaveImage().

ILuint ilSavePcxF | ( | ILHANDLE | File | ) |

Writes a .pcx to an already-opened file.

Referenced by ilSavePcx().

ILuint ilSavePcxL | ( | void * | Lump,
|  | ILuint | Size |
| ) |  |  |

Writes a .pcx to a memory "lump".

Referenced by ilDetermineSize().

ILboolean iSavePcxInternal | ( | void |  | ) |

Referenced by ilSavePcxF(), and ilSavePcxL().

ILboolean iUncompressPcx | ( | PCXHEAD * | Header | ) |

Referenced by iLoadPcxInternal().

ILboolean iUncompressSmall | ( | PCXHEAD * | Header | ) |

Referenced by iUncompressPcx().