mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 11:11:35 +02:00
Add DevIL 1.7.8.
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// ImageLib Sources
|
||||
// Copyright (C) 2000-2001 by Denton Woods
|
||||
// Last modified: 01/23/2001 <--Y2K Compliant! =]
|
||||
//
|
||||
// Filename: src-IL/include/il_il_psd.c
|
||||
//
|
||||
// Description: Reads from a PhotoShop (.psd) file.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef PSD_H
|
||||
#define PSD_H
|
||||
|
||||
#include "il_internal.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack(push, packed_struct, 1)
|
||||
#endif
|
||||
typedef struct PSDHEAD
|
||||
{
|
||||
ILubyte Signature[4];
|
||||
ILushort Version;
|
||||
ILubyte Reserved[6];
|
||||
ILushort Channels;
|
||||
ILuint Height;
|
||||
ILuint Width;
|
||||
ILushort Depth;
|
||||
ILushort Mode;
|
||||
} IL_PACKSTRUCT PSDHEAD;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma pack(pop, packed_struct)
|
||||
#endif
|
||||
|
||||
ILushort ChannelNum;
|
||||
|
||||
ILboolean iIsValidPsd(void);
|
||||
ILboolean iCheckPsd(PSDHEAD *Header);
|
||||
ILboolean iLoadPsdInternal(void);
|
||||
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 iSavePsdInternal(void);
|
||||
|
||||
|
||||
|
||||
#endif//PSD_H
|
||||
Reference in New Issue
Block a user