Mercurial > hg > dmlib
diff 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 |
line wrap: on
line diff
--- a/tools/lib64gfx.h Thu Jun 13 22:02:04 2019 +0300 +++ b/tools/lib64gfx.h Thu Jun 13 22:07:16 2019 +0300 @@ -142,6 +142,15 @@ }; +// Operation flags (op->flags) +enum +{ + DF_NORMAL = 0xffff, + DF_DECODE = 0x0001, + DF_ENCODE = 0x0002, +}; + + typedef struct { int dither; // Dither mode (D64_DITH_*) @@ -218,6 +227,8 @@ int (*decFunction)(const struct _DMC64EncDecOp *op, DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt); int (*encFunction)(const struct _DMC64EncDecOp *op, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageCommonFormat *fmt); + + int flags; // Operation flags (DF_*) } DMC64EncDecOp;