@@ -49,6 +49,7 @@ source product.
49
49
using iText . IO . Source ;
50
50
51
51
namespace iText . IO . Codec {
52
+ //TODO DEVSIX-6406: add support for indeterminate-segment-size value of dataLength
52
53
/// <summary>
53
54
/// Class to read a JBIG2 file at a basic level: understand all the segments,
54
55
/// understand what segments belong to which pages, how many pages there are,
@@ -62,7 +63,6 @@ namespace iText.IO.Codec {
62
63
/// are any. Or: the minimum required to be able to take a normal sequential
63
64
/// or random-access organized file, and be able to embed JBIG2 pages as images
64
65
/// in a PDF.
65
- /// TODO: the indeterminate-segment-size value of dataLength, else?
66
66
/// </remarks>
67
67
public class Jbig2SegmentReader {
68
68
//see 7.4.2.
@@ -290,8 +290,8 @@ public virtual void Read() {
290
290
291
291
internal virtual void ReadSegment ( Jbig2SegmentReader . Jbig2Segment s ) {
292
292
int ptr = ( int ) ra . GetPosition ( ) ;
293
+ //TODO DEVSIX-6406 7.2.7 not supported
293
294
if ( s . dataLength == unchecked ( ( long ) ( 0xffffffffl ) ) ) {
294
- // TODO figure this bit out, 7.2.7
295
295
return ;
296
296
}
297
297
byte [ ] data = new byte [ ( int ) s . dataLength ] ;
@@ -376,7 +376,6 @@ internal virtual Jbig2SegmentReader.Jbig2Segment ReadHeader() {
376
376
referred_to_segment_numbers [ i ] = ra . ReadUnsignedShort ( ) ;
377
377
}
378
378
else {
379
- // TODO wtf ack
380
379
referred_to_segment_numbers [ i ] = ( int ) ra . ReadUnsignedInt ( ) ;
381
380
}
382
381
}
@@ -410,7 +409,7 @@ internal virtual Jbig2SegmentReader.Jbig2Segment ReadHeader() {
410
409
}
411
410
// 7.2.7
412
411
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
414
413
s . dataLength = segment_data_length ;
415
414
int end_ptr = ( int ) ra . GetPosition ( ) ;
416
415
ra . Seek ( ptr ) ;
0 commit comments