Details

    • Issuezilla Id:
      79

      Description

      The current version of the JPEG reader provided as part of the Image I/O Tools
      for JAI seems to be unable to decode JPEG files encoded with coding process 12
      (12-bit), full progression, non-hierarchical.

      This kind of JPEG compression is frequently used in medical image files
      (especially DICOM files), and it would be very useful if the support for this
      format could be added to the JPEG reader of the JAI Image I/O Tools library.

      A complete self-contained code sample demonstating the problem (including a
      sample JPEG image) can be downloaded at
      http://demo.neologica.it/JpegReaderTester.zip .

        Activity

        Hide
        marconeol added a comment -

        Created an attachment (id=46)
        Self-contained code sample with sample JPEG image

        Show
        marconeol added a comment - Created an attachment (id=46) Self-contained code sample with sample JPEG image
        Hide
        marconeol added a comment -

        A more appropriate description of the issue.

        Show
        marconeol added a comment - A more appropriate description of the issue.
        Hide
        marconeol added a comment -

        Modified "Platform" and "OS" to "All".

        Show
        marconeol added a comment - Modified "Platform" and "OS" to "All".
        Hide
        jxc added a comment -

        Assign to jxc.

        Show
        jxc added a comment - Assign to jxc.
        Hide
        jxc added a comment -

        The test case caused this exception (and others):

        Caused by: java.lang.IndexOutOfBoundsException: imageIndex out of bounds!
        at
        com.sun.media.imageioimpl.plugins.clib.CLibImageReader.seekToImage(CLibImageReader.jav
        a:437)
        at
        com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getImageTypes(CLibJPEGImage
        Reader.java:263)
        at javax.imageio.ImageReader.getRawImageType(ImageReader.java:665)

        jpegdump SampleImage.jpg gave:

        offset $59 SOF2 (progressive DCT Huffman) (length 11)
        sample precision 12
        width 1356, height 1688 components 1

        From the source code, it seems to me that currently the clib JPEG
        decoder supports only one kind of progression: 8-bit, DCT-based,
        with an SOF2 marker.

        Show
        jxc added a comment - The test case caused this exception (and others): Caused by: java.lang.IndexOutOfBoundsException: imageIndex out of bounds! at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.seekToImage(CLibImageReader.jav a:437) at com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getImageTypes(CLibJPEGImage Reader.java:263) at javax.imageio.ImageReader.getRawImageType(ImageReader.java:665) jpegdump SampleImage.jpg gave: offset $59 SOF2 (progressive DCT Huffman) (length 11) sample precision 12 width 1356, height 1688 components 1 From the source code, it seems to me that currently the clib JPEG decoder supports only one kind of progression: 8-bit, DCT-based, with an SOF2 marker.

          People

          • Assignee:
            jxc
            Reporter:
            marconeol
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: