comparison tools/libgfx.h @ 1896:f80b2dc77c30

Work begins on IFF ILBM/PBM image writer. It is pretty broken, some things will not work and some things are hardcoded. The ByteRun1 compression implementation is somewhat inefficient. Interleaved files do not work yet.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 26 Jun 2018 03:13:38 +0300
parents cbc911ffd21e
children ee9bbf891352
comparison
equal deleted inserted replaced
1895:eb03869a10d3 1896:f80b2dc77c30
88 88
89 typedef struct 89 typedef struct
90 { 90 {
91 int format; 91 int format;
92 int scaleX, scaleY; 92 int scaleX, scaleY;
93 int nplanes, bpp; 93 int nplanes, bpp, mask;
94 BOOL planar, paletted; 94 BOOL planar, paletted;
95 int compression;
95 } DMImageConvSpec; 96 } DMImageConvSpec;
96 97
97 98
98 typedef struct 99 typedef struct
99 { 100 {
138 139
139 int dmWritePCXImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec); 140 int dmWritePCXImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec);
140 int dmReadPCXImage(DMResource *fp, DMImage **pimg); 141 int dmReadPCXImage(DMResource *fp, DMImage **pimg);
141 142
142 int dmReadIFFImage(DMResource *fp, DMImage **pimg); 143 int dmReadIFFImage(DMResource *fp, DMImage **pimg);
144 int dmWriteIFFImage(DMResource *fp, const DMImage *img, const DMImageConvSpec *spec);
143 145
144 146
145 typedef struct _DMBitStreamContext 147 typedef struct _DMBitStreamContext
146 { 148 {
147 void *handle; 149 void *handle;