Mercurial > hg > dmlib
diff tools/libgfx.h @ 2156:e6ec7fad9ce2
Rename DMImageConvSpec to DMImageWriteSpec to better reflec the struct's purpose.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Jun 2019 16:18:41 +0300 |
parents | 487157934904 |
children | 9a9493809b3a |
line wrap: on
line diff
--- a/tools/libgfx.h Tue Jun 04 16:15:58 2019 +0300 +++ b/tools/libgfx.h Tue Jun 04 16:18:41 2019 +0300 @@ -108,7 +108,7 @@ int nplanes, bpp, mask; // number of planes, bits per PLANE, masking BOOL planar; // use planar format if the format supports it int compression; // Use compression/compression level (0 = none, 9 = max) -} DMImageConvSpec; +} DMImageWriteSpec; typedef struct @@ -119,7 +119,7 @@ int flags; // DM_FMT_* and DM_COLFMT_* flags int (*probe)(const Uint8 *buf, const size_t len); int (*read)(DMResource *fp, DMImage **pimg); - int (*write)(DMResource *fp, const DMImage *pimg, const DMImageConvSpec *spec); + int (*write)(DMResource *fp, const DMImage *pimg, const DMImageWriteSpec *spec); } DMImageFormat; @@ -143,25 +143,25 @@ int dmWriteImageData(const DMImage *img, void *cbdata, - int (*writeRowCB)(void *, const Uint8 *, const size_t), const DMImageConvSpec *spec); + int (*writeRowCB)(void *, const Uint8 *, const size_t), const DMImageWriteSpec *spec); -int dmWriteIFFMasterRAWHeader(DMResource *fp, const char *filename, const char *prefix, const DMImage *img, const DMImageConvSpec *spec); -int dmWriteRAWImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); +int dmWriteIFFMasterRAWHeader(DMResource *fp, const char *filename, const char *prefix, const DMImage *img, const DMImageWriteSpec *spec); +int dmWriteRAWImage(DMResource *fp, const DMImage *img, const DMImageWriteSpec *spec); -int dmWritePPMImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); +int dmWritePPMImage(DMResource *fp, const DMImage *img, const DMImageWriteSpec *spec); int dmReadPPMImage(DMResource *fp, DMImage **pimg); #ifdef DM_USE_LIBPNG -int dmWritePNGImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); +int dmWritePNGImage(DMResource *fp, const DMImage *img, const DMImageWriteSpec *spec); int dmReadPNGImage(DMResource *fp, DMImage **pimg); #endif -int dmWritePCXImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); +int dmWritePCXImage(DMResource *fp, const DMImage *img, const DMImageWriteSpec *spec); int dmReadPCXImage(DMResource *fp, DMImage **pimg); int dmReadIFFImage(DMResource *fp, DMImage **pimg); -int dmWriteIFFImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); +int dmWriteIFFImage(DMResource *fp, const DMImage *img, const DMImageWriteSpec *spec); typedef struct _DMBitStreamContext