Mercurial > hg > dmlib
diff tools/libgfx.h @ 2092:614b161c0aa5
Initial support for reading PPM/PGM.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 28 Feb 2019 12:30:21 +0200 |
parents | aedadff9e116 |
children | d17512dbb4ef |
line wrap: on
line diff
--- a/tools/libgfx.h Thu Feb 28 12:18:27 2019 +0200 +++ b/tools/libgfx.h Thu Feb 28 12:30:21 2019 +0200 @@ -34,6 +34,7 @@ enum { DM_COLFMT_PALETTE, + DM_COLFMT_GRAYSCALE, DM_COLFMT_RGB, DM_COLFMT_RGBA, }; @@ -135,6 +136,7 @@ int dmWriteRAWImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); int dmWritePPMImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); +int dmReadPPMImage(DMResource *fp, DMImage **pimg); #ifdef DM_USE_LIBPNG int dmWritePNGImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec);