shithub: jbig2

Download patch

ref: 8a15ebc942e84fb5a35598fc82591e9917c7380b
parent: 372463f06054462bff49dae0c9238e8e47c32ec9
author: Sebastian Rasmussen <[email protected]>
date: Sat May 26 22:49:49 EDT 2018

jbig2dec: Label everything not yet implemented NYI.

--- a/jbig2_halftone.c
+++ b/jbig2_halftone.c
@@ -467,7 +467,7 @@
 
     /* 6.6.5 point 2. compute HSKIP */
     if (params->HENABLESKIP == 1) {
-        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "unhandled option HENABLESKIP");
+        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "unhandled option HENABLESKIP (NYI)");
     }
 
     /* 6.6.5 point 3. set HBPP to ceil(log2(HNUMPATS)):
--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -345,7 +345,7 @@
     case 23:                   /* immediate lossless halftone region */
         return jbig2_halftone_region(ctx, segment, segment_data);
     case 36:
-        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "unhandled segment type 'intermediate generic region'");
+        return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "unhandled segment type 'intermediate generic region' (NYI)");
     case 38:                   /* immediate generic region */
     case 39:                   /* immediate lossless generic region */
         return jbig2_immediate_generic_region(ctx, segment, segment_data);
@@ -368,7 +368,7 @@
     case 53:                   /* user-supplied huffman table */
         return jbig2_table(ctx, segment, segment_data);
     case 54:
-        return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "unhandled segment type 'color palette'");
+        return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "unhandled segment type 'color palette' (NYI)");
     case 62:
         return jbig2_parse_extension_segment(ctx, segment, segment_data);
     default: