diff tools/lib64util.c @ 2238:5db6e0b63b35

Change again how the interlace type information is stored. Now store it in DMC64Image::extraInfo[] where it actually makes sense. Also add index for FLI type.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 06:43:36 +0300
parents fa5e74384d87
children e2c6af0c9431
line wrap: on
line diff
--- a/tools/lib64util.c	Sat Jun 15 06:26:07 2019 +0300
+++ b/tools/lib64util.c	Sat Jun 15 06:43:36 2019 +0300
@@ -57,7 +57,7 @@
         if (img->fmt->type & D64_FMT_ILACE)
         {
             char *tmps;
-            switch (img->laceType)
+            switch (img->extraInfo[D64_EI_ILACE_TYPE])
             {
                 case D64_ILACE_COLOR: tmps = "color"; break;
                 case D64_ILACE_RES: tmps = "resolution"; break;
@@ -68,6 +68,13 @@
                 indent, tmps);
         }
 
+        if (img->fmt->type & D64_FMT_FLI)
+        {
+            fprintf(fh,
+                "%sFLI type            : %d\n",
+                indent, img->extraInfo[D64_EI_FLI_TYPE]);
+        }
+
         fprintf(fh,
             "%sWidth x Height      : %d x %d\n"
             "%sCHwidth x CHheight  : %d x %d\n"