Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 1846:88cef7758303
Implement data block offset in certain DMC64EncDecOps. This allows us to
combine and separate data from multiple sources/destinations into one data block.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 22 Jun 2018 22:31:52 +0300 |
parents | 79667dc1240e |
children | 219417325036 |
comparison
equal
deleted
inserted
replaced
1845:a77451bb6614 | 1846:88cef7758303 |
---|---|
173 typedef struct _DMC64EncDecOp | 173 typedef struct _DMC64EncDecOp |
174 { | 174 { |
175 int type; // Operation type (DO_*) | 175 int type; // Operation type (DO_*) |
176 int subject; // Operation "subject" (DS_*) | 176 int subject; // Operation "subject" (DS_*) |
177 | 177 |
178 size_t offs; | 178 size_t offs; // Offset in "memory" |
179 int bank; | 179 int bank; // Bank number or extradata index |
180 size_t size; | 180 size_t size; // Size of data (0 for "default") |
181 size_t offs2; // Offset in data-block | |
181 | 182 |
182 BOOL (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const DMGrowBuf *buf, const DMC64ImageFormat *fmt); | 183 BOOL (*decFunction)(DMC64Image *img, const struct _DMC64EncDecOp *op, const DMGrowBuf *buf, const DMC64ImageFormat *fmt); |
183 BOOL (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); | 184 BOOL (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); |
184 } DMC64EncDecOp; | 185 } DMC64EncDecOp; |
185 | 186 |