Mercurial > hg > dmlib
diff tools/libgfx.h @ 2202:455a3849b8ac
Comments and cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 14 Jun 2019 01:56:47 +0300 |
parents | 9a9493809b3a |
children | 1ea48084055e |
line wrap: on
line diff
--- a/tools/libgfx.h Fri Jun 14 00:42:36 2019 +0300 +++ b/tools/libgfx.h Fri Jun 14 01:56:47 2019 +0300 @@ -113,10 +113,11 @@ typedef struct { - char *fext; - char *name; + char *fext; // Typical filename extension + char *name; // Format name / description int fmtid; // DM_IMGFMT_* int flags; // DM_FMT_* and DM_PIXFMT_* flags + int (*probe)(const Uint8 *buf, const size_t len); int (*read)(DMResource *fp, DMImage **pimg); int (*write)(DMResource *fp, const DMImage *pimg, const DMImageWriteSpec *spec); @@ -164,6 +165,9 @@ int dmWriteIFFImage(DMResource *fp, const DMImage *img, const DMImageWriteSpec *spec); +// +// Simplistic bitstream reading and writing +// typedef struct _DMBitStreamContext { void *handle;