@@ -49,6 +49,7 @@ source product.
4949using iText . IO . Source ;
5050
5151namespace iText . IO . Codec {
52+ //TODO DEVSIX-6406: add support for indeterminate-segment-size value of dataLength
5253 /// <summary>
5354 /// Class to read a JBIG2 file at a basic level: understand all the segments,
5455 /// understand what segments belong to which pages, how many pages there are,
@@ -62,7 +63,6 @@ namespace iText.IO.Codec {
6263 /// are any. Or: the minimum required to be able to take a normal sequential
6364 /// or random-access organized file, and be able to embed JBIG2 pages as images
6465 /// in a PDF.
65- /// TODO: the indeterminate-segment-size value of dataLength, else?
6666 /// </remarks>
6767 public class Jbig2SegmentReader {
6868 //see 7.4.2.
@@ -290,8 +290,8 @@ public virtual void Read() {
290290
291291 internal virtual void ReadSegment ( Jbig2SegmentReader . Jbig2Segment s ) {
292292 int ptr = ( int ) ra . GetPosition ( ) ;
293+ //TODO DEVSIX-6406 7.2.7 not supported
293294 if ( s . dataLength == unchecked ( ( long ) ( 0xffffffffl ) ) ) {
294- // TODO figure this bit out, 7.2.7
295295 return ;
296296 }
297297 byte [ ] data = new byte [ ( int ) s . dataLength ] ;
@@ -376,7 +376,6 @@ internal virtual Jbig2SegmentReader.Jbig2Segment ReadHeader() {
376376 referred_to_segment_numbers [ i ] = ra . ReadUnsignedShort ( ) ;
377377 }
378378 else {
379- // TODO wtf ack
380379 referred_to_segment_numbers [ i ] = ( int ) ra . ReadUnsignedInt ( ) ;
381380 }
382381 }
@@ -410,7 +409,7 @@ internal virtual Jbig2SegmentReader.Jbig2Segment ReadHeader() {
410409 }
411410 // 7.2.7
412411 long segment_data_length = ra . ReadUnsignedInt ( ) ;
413- // TODO the 0xffffffff value that might be here, and how to understand those afflicted segments
412+ //TODO DEVSIX-6406 the 0xffffffff value that might be here, and how to understand those afflicted segments
414413 s . dataLength = segment_data_length ;
415414 int end_ptr = ( int ) ra . GetPosition ( ) ;
416415 ra . Seek ( ptr ) ;
0 commit comments