Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 2196:28871f500e84
Add new "flags" field to DMC64EncDecOp, defined by DF_* that can be used to
specify additional control over the operator blocks.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 13 Jun 2019 22:07:16 +0300 |
parents | 33cf1b330b7b |
children | dcd26cdc395e |
comparison
equal
deleted
inserted
replaced
2195:868b68c188e5 | 2196:28871f500e84 |
---|---|
140 | 140 |
141 DS_LAST | 141 DS_LAST |
142 }; | 142 }; |
143 | 143 |
144 | 144 |
145 // Operation flags (op->flags) | |
146 enum | |
147 { | |
148 DF_NORMAL = 0xffff, | |
149 DF_DECODE = 0x0001, | |
150 DF_ENCODE = 0x0002, | |
151 }; | |
152 | |
153 | |
145 typedef struct | 154 typedef struct |
146 { | 155 { |
147 int dither; // Dither mode (D64_DITH_*) | 156 int dither; // Dither mode (D64_DITH_*) |
148 BOOL aspect; // Correct pixel aspect ratio? | 157 BOOL aspect; // Correct pixel aspect ratio? |
149 } DMC64ImageConvSpec; | 158 } DMC64ImageConvSpec; |
216 size_t size; // Size of data (0 for "default") | 225 size_t size; // Size of data (0 for "default") |
217 size_t offs2; // Offset in data-block | 226 size_t offs2; // Offset in data-block |
218 | 227 |
219 int (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt); | 228 int (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt); |
220 int (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt); | 229 int (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt); |
230 | |
231 int flags; // Operation flags (DF_*) | |
221 } DMC64EncDecOp; | 232 } DMC64EncDecOp; |
222 | 233 |
223 | 234 |
224 #define D64_MAX_ENCDEC_OPS 32 | 235 #define D64_MAX_ENCDEC_OPS 32 |
225 typedef DMC64EncDecOp DMC64EncDecOpList[D64_MAX_ENCDEC_OPS]; | 236 typedef DMC64EncDecOp DMC64EncDecOpList[D64_MAX_ENCDEC_OPS]; |