comparison lib64gfx.h @ 507:272e64259fde

Add function pointers for encoding and convertTo/convertFrom to the DMC64ImageFormat structure.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 13:49:44 +0200
parents e4a3f183e463
children 43ea59887c69
comparison
equal deleted inserted replaced
506:443228332e5b 507:272e64259fde
126 int type; 126 int type;
127 char *extension; 127 char *extension;
128 char *name; 128 char *name;
129 int (*probe)(const Uint8 *buf, const size_t len); 129 int (*probe)(const Uint8 *buf, const size_t len);
130 int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt); 130 int (*decode)(DMC64Image *img, const Uint8 *buf, const size_t len, const struct _DMC64ImageFormat *fmt);
131 int (*convert)(DMImage *, DMC64Image *); 131 int (*encode)(DMC64Image *img, Uint8 **buf, size_t *len, const struct _DMC64ImageFormat *fmt);
132 int (*convertFrom)(DMImage *, DMC64Image *);
133 int (*convertTo)(DMImage *, DMC64Image *);
132 134
133 int ndecodeOps; 135 int ndecodeOps;
134 DMDecodeOp decodeOps[16]; 136 DMDecodeOp decodeOps[16];
135 } DMC64ImageFormat; 137 } DMC64ImageFormat;
136 138