Skip to content

Commit dd75c1d

Browse files
dmitry.radchukiText-CI
authored andcommitted
Remove TODOs, add TODO linked to the DEVSIX-6406
DEVSIX-6261 Autoported commit. Original commit hash: [ee8e2e37e]
1 parent b5d2438 commit dd75c1d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

itext/itext.io/itext/io/codec/Jbig2SegmentReader.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ source product.
4949
using iText.IO.Source;
5050

5151
namespace 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);

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cc0f553429cb077f8d86c93ec0c56a0b9f0d19ce
1+
ee8e2e37e75479eee6f73376604d71039716b80c

0 commit comments

Comments
 (0)