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

`#include "il_internal.h"`
`#include "il_psd.h"`

## Functions

ILboolean | ilIsValidPsd (ILconst_string FileName)
| Checks if the file specified in FileName is a valid Psd file.
ILboolean | ilIsValidPsdF (ILHANDLE File)
| Checks if the ILHANDLE contains a valid Psd file at the current position.
ILboolean | ilIsValidPsdL (const void *Lump, ILuint Size)
| Checks if Lump is a valid Psd lump.
ILboolean | iGetPsdHead (PSDHEAD *Header)
ILboolean | iIsValidPsd ()
ILboolean | iCheckPsd (PSDHEAD *Header)
ILboolean | ilLoadPsd (ILconst_string FileName)
| Reads a Psd file.
ILboolean | ilLoadPsdF (ILHANDLE File)
| Reads an already-opened Psd file.
ILboolean | ilLoadPsdL (const void *Lump, ILuint Size)
| Reads from a memory "lump" that contains a Psd.
ILboolean | iLoadPsdInternal ()
ILboolean | ReadPsd (PSDHEAD *Head)
ILboolean | ReadGrey (PSDHEAD *Head)
ILboolean | ReadIndexed (PSDHEAD *Head)
ILboolean | ReadRGB (PSDHEAD *Head)
ILboolean | ReadCMYK (PSDHEAD *Head)
ILuint * | GetCompChanLen (PSDHEAD *Head)
ILboolean | PsdGetData (PSDHEAD *Head, void *Buffer, ILboolean Compressed)
ILboolean | ParseResources (ILuint ResourceSize, ILubyte *Resources)
ILboolean | GetSingleChannel (PSDHEAD *Head, ILubyte *Buffer, ILboolean Compressed)
ILboolean | ilSavePsd (const ILstring FileName)
| Writes a Psd file.
ILuint | ilSavePsdF (ILHANDLE File)
| Writes a Psd to an already-opened file.
ILuint | ilSavePsdL (void *Lump, ILuint Size)
| Writes a Psd to a memory "lump".
ILboolean | iSavePsdInternal ()

## Function Documentation

ILuint* GetCompChanLen | ( | PSDHEAD * | Head | ) |

Referenced by PsdGetData().

ILboolean GetSingleChannel | ( | PSDHEAD * | Head,
|  | ILubyte * | Buffer,
|  | ILboolean | Compressed |
| ) |  |  |

Referenced by ReadCMYK().

ILboolean iCheckPsd | ( | PSDHEAD * | Header | ) |

Referenced by iIsValidPsd(), and iLoadPsdInternal().

ILboolean iGetPsdHead | ( | PSDHEAD * | Header | ) |

Referenced by iIsValidPsd(), and iLoadPsdInternal().

ILboolean iIsValidPsd | ( | void |  | ) |

Referenced by ilIsValidPsdF(), and ilIsValidPsdL().

ILboolean ilIsValidPsd | ( | ILconst_string | FileName | ) |

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

Referenced by ilIsValid().

ILboolean ilIsValidPsdF | ( | ILHANDLE | File | ) |

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

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

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

Checks if Lump is a valid Psd lump.

Referenced by ilDetermineTypeL(), and ilIsValidL().

ILboolean ilLoadPsd | ( | ILconst_string | FileName | ) |

Reads a Psd file.

Referenced by ilLoad(), and ilLoadImage().

ILboolean ilLoadPsdF | ( | ILHANDLE | File | ) |

Reads an already-opened Psd file.

Referenced by ilLoadF(), and ilLoadPsd().

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

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

Referenced by ilLoadL().

ILboolean iLoadPsdInternal | ( | void |  | ) |

Referenced by ilLoadPsdF(), and ilLoadPsdL().

ILboolean ilSavePsd | ( | const ILstring | FileName | ) |

Writes a Psd file.

Referenced by ilSave(), and ilSaveImage().

ILuint ilSavePsdF | ( | ILHANDLE | File | ) |

Writes a Psd to an already-opened file.

Referenced by ilSaveF(), and ilSavePsd().

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

Writes a Psd to a memory "lump".

Referenced by ilDetermineSize(), and ilSaveL().

ILboolean iSavePsdInternal | ( | void |  | ) |

Referenced by ilSavePsdF(), and ilSavePsdL().

ILboolean ParseResources | ( | ILuint | ResourceSize,
|  | ILubyte * | Resources |
| ) |  |  |

Referenced by ReadCMYK(), ReadGrey(), ReadIndexed(), and ReadRGB().

ILboolean PsdGetData | ( | PSDHEAD * | Head,
|  | void * | Buffer,
|  | ILboolean | Compressed |
| ) |  |  |

Referenced by ReadCMYK(), ReadGrey(), ReadIndexed(), and ReadRGB().

ILboolean ReadCMYK | ( | PSDHEAD * | Head | ) |

Referenced by ReadPsd().

ILboolean ReadGrey | ( | PSDHEAD * | Head | ) |

Referenced by ReadPsd().

ILboolean ReadIndexed | ( | PSDHEAD * | Head | ) |

Referenced by ReadPsd().

ILboolean ReadPsd | ( | PSDHEAD * | Head | ) |

Referenced by iLoadPsdInternal().

ILboolean ReadRGB | ( | PSDHEAD * | Head | ) |

Referenced by ReadPsd().