diff tools/lib64gfx.c @ 1984:e7f2ddaf94a6

Change encode and decode function format parameter type from DMC64ImageFormat to DMC64ImageCommonFormat.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Jul 2018 07:00:38 +0300
parents 02b216fae7d5
children 221a95caa91e
line wrap: on
line diff
--- a/tools/lib64gfx.c	Sun Jul 01 06:18:55 2018 +0300
+++ b/tools/lib64gfx.c	Sun Jul 01 07:00:38 2018 +0300
@@ -1021,7 +1021,7 @@
 
             case DO_FUNC:
                 if (op->decFunction != NULL &&
-                    !op->decFunction(img, op, buf, fmt))
+                    !op->decFunction(img, op, buf, fmt->format))
                 {
                     return dmError(DMERR_INTERNAL,
                         "Decode op custom function failed: op #%d, "
@@ -1201,7 +1201,7 @@
 
             case DO_FUNC:
                 if (op->encFunction != NULL &&
-                    !op->encFunction(op, buf, img, fmt))
+                    !op->encFunction(op, buf, img, fmt->format))
                 {
                     res = dmError(DMERR_INTERNAL,
                         "Encode op custom function failed: op #%d, "