Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: codeclib
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: All

    • Issuezilla Id:
      183

      Description

      Images compressed by jai-imageio's JPEG-LS encoder cannot be decompressed by hp
      labs reference JPEG-LS decoder ( http://www.hpl.hp.com/loco/ ) and other
      commercial JPEG-LS decoders!

      1. CT1_jai-imageio.jls
        164 kB
        gunterze
      2. CT1_loco16e.jls
        161 kB
        gunterze
      3. CT1.pgm
        512 kB
        gunterze

        Activity

        Hide
        gunterze added a comment -

        Created an attachment (id=139)
        Uncompressed 512x512x16bit image

        Show
        gunterze added a comment - Created an attachment (id=139) Uncompressed 512x512x16bit image
        Hide
        gunterze added a comment -

        Created an attachment (id=140)
        compressed by hp's loco16e

        Show
        gunterze added a comment - Created an attachment (id=140) compressed by hp's loco16e
        Hide
        gunterze added a comment -

        Created an attachment (id=141)
        compressed by jai-imageio

        Show
        gunterze added a comment - Created an attachment (id=141) compressed by jai-imageio
        Hide
        gunterze added a comment -

        Attempt to decompress CT1_jai-imageio.jls by:

        $ jpegls-hp$ ./loco16d CT1_jai-imageio.jls

        hangs after:

        Input file: CT1_jai-imageio.jls
        Output files: loco16d1.out
        Image: cols= 512 rows= 512 alpha=65536 comp=1 mode=0 (plane by plane)
        Parameters: Ta=18 Tb=67 Tc=276 RESET=64 limit=47

        Show
        gunterze added a comment - Attempt to decompress CT1_jai-imageio.jls by: $ jpegls-hp$ ./loco16d CT1_jai-imageio.jls hangs after: Input file: CT1_jai-imageio.jls Output files: loco16d1.out Image: cols= 512 rows= 512 alpha=65536 comp=1 mode=0 (plane by plane) Parameters: Ta=18 Tb=67 Tc=276 RESET=64 limit=47
        Hide
        gunterze added a comment -

        Comment by a provider of a commercial JPEG-LS codec:
        "The issue is that the JAI compressor implementor incorrectly interpreted an
        item in the spec such that for images>12bpp, they do something incorrectly"

        Show
        gunterze added a comment - Comment by a provider of a commercial JPEG-LS codec: "The issue is that the JAI compressor implementor incorrectly interpreted an item in the spec such that for images>12bpp, they do something incorrectly"
        Hide
        gunterze added a comment -

        Seems, the error is in the calculation of the default values for thresholds T1,
        T2, T3, in particular min(MAXVAL, 4095) is not applied in

        FACTOR = (min(MAXVAL, 4095) + 128)/256

        as specified in http://www.itu.int/rec/T-REC-T.87-199806-I/en .

        Show
        gunterze added a comment - Seems, the error is in the calculation of the default values for thresholds T1, T2, T3, in particular min(MAXVAL, 4095) is not applied in FACTOR = (min(MAXVAL, 4095) + 128)/256 as specified in http://www.itu.int/rec/T-REC-T.87-199806-I/en .

          People

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

            Dates

            • Created:
              Updated: