Mercurial > hg > dmlib
comparison 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 |
comparison
equal
deleted
inserted
replaced
2091:3b3acb6b4ba0 | 2092:614b161c0aa5 |
---|---|
32 | 32 |
33 | 33 |
34 enum | 34 enum |
35 { | 35 { |
36 DM_COLFMT_PALETTE, | 36 DM_COLFMT_PALETTE, |
37 DM_COLFMT_GRAYSCALE, | |
37 DM_COLFMT_RGB, | 38 DM_COLFMT_RGB, |
38 DM_COLFMT_RGBA, | 39 DM_COLFMT_RGBA, |
39 }; | 40 }; |
40 | 41 |
41 | 42 |
133 | 134 |
134 int dmWriteIFFMasterRAWHeader(DMResource *fp, const char *filename, const char *prefix, const DMImage *img, const DMImageConvSpec *spec); | 135 int dmWriteIFFMasterRAWHeader(DMResource *fp, const char *filename, const char *prefix, const DMImage *img, const DMImageConvSpec *spec); |
135 int dmWriteRAWImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); | 136 int dmWriteRAWImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); |
136 | 137 |
137 int dmWritePPMImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); | 138 int dmWritePPMImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); |
139 int dmReadPPMImage(DMResource *fp, DMImage **pimg); | |
138 | 140 |
139 #ifdef DM_USE_LIBPNG | 141 #ifdef DM_USE_LIBPNG |
140 int dmWritePNGImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); | 142 int dmWritePNGImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); |
141 int dmReadPNGImage(DMResource *fp, DMImage **pimg); | 143 int dmReadPNGImage(DMResource *fp, DMImage **pimg); |
142 #endif | 144 #endif |