GFL
view release on metacpan or search on metacpan
*/
#define GFL_LOAD_SKIP_ALPHA 0x0001
#define GFL_LOAD_IGNORE_READ_ERROR 0x0002
/*
* LOAD_PARAMS struct
*/
typedef struct {
GFL_UINT32 Flags;
GFL_INT32 FormatIndex; /* -1 for automatic recognition */
GFL_INT32 ImageWanted; /* for multi-page or animated file */
GFL_ORIGIN Origin; /* default: GFL_TOP_LEFT */
GFL_BITMAP_TYPE ColorModel; /* Only for 24/32 bits picture, GFL_RGB/GFL_RGBA (default), GFL_BGR/GFL_ABGR */
GFL_UINT32 LinePadding; /* 1 (default), 2, 4, .... */
/*
* RAW/YUV only
*/
GFL_INT32 Width;
GFL_INT32 Height;
GFL_UINT32 Offset;
/*
* RAW only
*/
GFL_CORDER ChannelOrder;
GFL_CTYPE ChannelType;
/*
* PCD only
*/
GFL_UINT16 PcdBase; /* PCD -> 2:768x576, 1:384x288, 0:192x144 */
struct {
GFL_READ_CALLBACK Read;
GFL_TELL_CALLBACK Tell;
GFL_SEEK_CALLBACK Seek;
GFL_ALLOC_CALLBACK Alloc; /* Not yet implemented */
GFL_FREE_CALLBACK Free; /* Not yet implemented */
void * AllocParam;
} Callbacks;
} GFL_LOAD_PARAMS;
/*
* SAVE_PARAMS struct
*/
#define GFL_SAVE_REPLACE_EXTENSION 0x0001
#define GFL_SAVE_WANT_FILENAME 0x0002
/*
* BE CAREFULL: For the moment, gflSave can only save bitmap in RGB/RGBA order and GFL_TOP_LEFT !!
*/
typedef struct {
GFL_UINT32 Flags;
GFL_INT32 FormatIndex;
GFL_COMPRESSION Compression;
GFL_INT16 Quality; /* Jpeg/Wic/Fpx */
GFL_INT16 CompressionLevel; /* Png */
GFL_BOOL Interlaced; /* Gif */
GFL_BOOL Progressive; /* Jpeg */
/*
* For RAW/YUV
*/
GFL_UINT32 Offset;
GFL_CORDER ChannelOrder;
GFL_CTYPE ChannelType;
struct {
GFL_WRITE_CALLBACK Write; /* Not yet implemented */
GFL_TELL_CALLBACK Tell; /* Not yet implemented */
GFL_SEEK_CALLBACK Seek; /* Not yet implemented */
GFL_ALLOC_CALLBACK Alloc; /* Not yet implemented */
GFL_FREE_CALLBACK Free; /* Not yet implemented */
void * AllocParam;
} Callbacks;
} GFL_SAVE_PARAMS;
/*
* FILE_INFORMATION struct
*/
typedef struct {
GFL_BITMAP_TYPE Type;
GFL_INT32 Width;
GFL_INT32 Height;
GFL_INT32 FormatIndex;
char FormatName[8];
char Description[64];
GFL_UINT16 Xdpi;
GFL_UINT16 Ydpi;
GFL_UINT16 BitsPerPlane;
GFL_UINT16 NumberOfPlanes;
GFL_UINT32 BytesPerPlane;
GFL_INT32 NumberOfImages;
GFL_UINT32 FileSize;
GFL_ORIGIN Origin;
GFL_COMPRESSION Compression;
char CompressionDescription[64];
} GFL_FILE_INFORMATION;
#define GFL_READ 0x01
#define GFL_WRITE 0x02
/*
* FORMAT_INFORMATION struct
*/
typedef struct {
GFL_INT32 Index;
char Name[8];
char Description[64];
GFL_UINT32 Status;
GFL_UINT32 NumberOfExtension;
char Extension[16][8];
} GFL_FORMAT_INFORMATION;
/*
( run in 2.426 seconds using v1.01-cache-2.11-cpan-d8267643d1d )