RFR: 8154228: [TIFF] IIOException: "Insufficient data offsets or byte counts" when loading test image

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RFR: 8154228: [TIFF] IIOException: "Insufficient data offsets or byte counts" when loading test image

Brian Burkhalter-2
Please review at your convenience.

Issue: https://bugs.openjdk.java.net/browse/JDK-8154228
Patch: http://cr.openjdk.java.net/~bpb/8154228/webrev.00/

The problem is that the test image XING_T24.TIF is missing the StripByteCounts field which is required by the TIFF specification. The solution for the case where the image data are uncompressed and the offsets to the data packets (strips or tiles) are known, is to compute the number of bytes in each packet provided the information needed to do so is present in the image.

Thanks,

Brian
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RFR: 8154228: [TIFF] IIOException: "Insufficient data offsets or byte counts" when loading test image

Philip Race
 612             } else {
 613                 
 614             }

?
-phil

On 12/29/16, 2:25 PM, Brian Burkhalter wrote:
Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8154228
Patch:	http://cr.openjdk.java.net/~bpb/8154228/webrev.00/

The problem is that the test image XING_T24.TIF is missing the StripByteCounts field which is required by the TIFF specification. The solution for the case where the image data are uncompressed and the offsets to the data packets (strips or tiles) are known, is to compute the number of bytes in each packet provided the information needed to do so is present in the image.

Thanks,

Brian
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RFR: 8154228: [TIFF] IIOException: "Insufficient data offsets or byte counts" when loading test image

Brian Burkhalter-2
Clearly lines 612-613 need to go.


Thanks,

Brian

On Jan 20, 2017, at 1:13 PM, Philip Race <[hidden email]> wrote:

 612             } else {
 613                 
 614             }

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RFR: 8154228: [TIFF] IIOException: "Insufficient data offsets or byte counts" when loading test image

Philip Race
+1

-phil.

On 01/20/2017 02:07 PM, Brian Burkhalter wrote:
Clearly lines 612-613 need to go.


Thanks,

Brian

On Jan 20, 2017, at 1:13 PM, Philip Race <[hidden email]> wrote:

 612             } else {
 613                 
 614             }


Loading...