ref: 36db5a62d5a170ef91c9e7f0805c71c5af5593ca
parent: 944999a4bd52b9eef0139ad122bf2c77ee319a36
author: Sebastian Rasmussen <sebras@gmail.com>
date: Mon Apr 23 23:40:06 EDT 2018
jbig2dec: Clarify lack of support for dependency bit. The extension segment dependency bit only matters for encoders. This is because it informs the encoder what other segments a specific segment depends on. Since jbig2dec doesn't do any alteration of segments this need not be supported (or indeed even parsed).
--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -217,7 +217,10 @@
type = jbig2_get_uint32(segment_data);
reserved = type & 0x20000000;
- /* dependent = type & 0x40000000; (NYI) */
+ /* Not implemented since this bit
+ is only needed by encoders.
+ dependent = type & 0x40000000;
+ */
necessary = type & 0x80000000;
if (necessary && !reserved) {