Opened 3 years ago

Closed 3 years ago

#4670 closed defect (fixed)

jpeg2000: fix decoding of precints and PCRL order

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: j2k
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

C:\>kdu_compress.exe -i test.bmp -o prec_pcrl_256_256.jp2 Creversible=yes Stiles={711,393} Cprecincts={256,256} Corder=PCRL
Note:
    The default rate control policy for colour images employs visual (CSF)
    weighting factors.  To minimize MSE instead, specify `-no_weights'.
Note:
    If you want quality scalability, you should generate multiple layers with
    `-rate' or by using the "Clayers" option.

Generated 6 tile-part(s) for a total of 6 tile(s).
Code-stream bytes (excluding any file format) = 738,345 = 7.894089 bits/pel.
Layer bit-rates (possibly inexact if tiles are divided across tile-parts):
        7.894089
Layer thresholds:
        0
Processed using the multi-threaded environment, with
    8 parallel threads of execution
C:\>ffmpeg -i prec_pcrl_256_256.jp2 out.bmp
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6.2 (GCC)
  configuration: --disable-pthreads --enable-gpl --disable-ffprobe
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 37.100 / 56. 37.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 17.100 /  5. 17.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[jpeg2000 @ 0229f6a0] Warning: not compiled with thread support, using thread em
ulation
[jpeg2000 @ 0229f6a0] Progression order PCRLprc 1 0 outside limits 1 2
[jpeg2000 @ 0229f6a0] prc 2 0 outside limits 2 3
[jpeg2000 @ 0229f6a0] prc 1 0 outside limits 1 2
[jpeg2000 @ 0229f6a0] prc 2 0 outside limits 2 3
[jpeg2000 @ 0229f6a0] prc 1 0 outside limits 1 2
[jpeg2000 @ 0229f6a0] prc 2 0 outside limits 2 3
[jpeg2000 @ 0229f6a0] prc 3 0 outside limits 2 3
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc 2 1 outside limits 2 3
[jpeg2000 @ 0229f6a0] prc -1 -2 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc 0 -1 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -1 -2 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc 0 -2 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc -3 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc -2 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc -1 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc 0 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc -1 0 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -3 0 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -1 0 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -3 0 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -1 0 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -3 0 outside limits 1 1
[jpeg2000 @ 0229f6a0] prc -2 0 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] prc -1 0 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 0229f6a0] End mismatch 15
[jpeg2000 @ 0229f6a0] End mismatch 508
[jpeg2000 @ 0229f6a0] End mismatch 18
[jpeg2000 @ 0229f6a0] End mismatch 12
[jpeg2000 @ 0229f6a0] End mismatch 7
[jpeg2000 @ 0229f6a0] End mismatch 817
[jpeg2000 @ 0229f6a0] End mismatch 113
[jpeg2000 @ 0229f6a0] End mismatch 37
[jpeg2000 @ 0229f6a0] End mismatch 8
[jpeg2000 @ 0229f6a0] End mismatch 1
[jpeg2000 @ 0229f6a0] End mismatch 1633
[jpeg2000 @ 0229f6a0] End mismatch 4
[jpeg2000 @ 0229f6a0] End mismatch 33
[jpeg2000 @ 0229f6a0] End mismatch 1
    Last message repeated 1 times
[jpeg2000 @ 0229f6a0] End mismatch 800
[jpeg2000 @ 0229f6a0] End mismatch 176
[jpeg2000 @ 0229f6a0] End mismatch 3
[jpeg2000 @ 0229f6a0] End mismatch 34
[jpeg2000 @ 0229f6a0] End mismatch 75
[jpeg2000 @ 0229f6a0] End mismatch 11
[jpeg2000 @ 0229f6a0] End mismatch 290
[jpeg2000 @ 0229f6a0] End mismatch 6
Input #0, j2k_pipe, from 'prec_pcrl_256_256.jp2':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0), rgb24, 99
9x749, 25 tbr, 25 tbn, 25 tbc
File 'out.bmp' already exists. Overwrite ? [y/N] y
[bmp @ 02d57020] Warning: not compiled with thread support, using thread emulati
on
[jpeg2000 @ 029b8bc0] Warning: not compiled with thread support, using thread em
ulation
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.37.100
    Stream #0:0: Video: bmp, bgr24, 999x749, q=2-31, 200 kb/s, 25 fps, 25 tbn, 2
5 tbc
    Metadata:
      encoder         : Lavc56.41.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> bmp (native))
Press [q] to stop, [?] for help
[jpeg2000 @ 029b8bc0] Progression order PCRLprc 1 0 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc 2 0 outside limits 2 3
[jpeg2000 @ 029b8bc0] prc 1 0 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc 2 0 outside limits 2 3
[jpeg2000 @ 029b8bc0] prc 1 0 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc 2 0 outside limits 2 3
[jpeg2000 @ 029b8bc0] prc 3 0 outside limits 2 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc 2 1 outside limits 2 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc 3 1 outside limits 2 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc 1 1 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc 2 2 outside limits 2 3
[jpeg2000 @ 029b8bc0] prc 1 1 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc 2 2 outside limits 2 3
[jpeg2000 @ 029b8bc0] prc 1 1 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc 2 2 outside limits 2 3
[jpeg2000 @ 029b8bc0] prc 3 2 outside limits 2 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] Progression order PCRLprc -1 0 outside limits 3 3
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 3 3
    Last message repeated 1 times
[jpeg2000 @ 029b8bc0] prc -1 1 outside limits 3 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 2 outside limits 3 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] Progression order PCRLprc -1 0 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc -3 0 outside limits 1 3
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc -3 0 outside limits 1 3
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc -3 0 outside limits 1 3
[jpeg2000 @ 029b8bc0] prc -2 0 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -3 1 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -2 1 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 1 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 1 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc -3 2 outside limits 1 3
[jpeg2000 @ 029b8bc0] prc -1 1 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc -3 2 outside limits 1 3
[jpeg2000 @ 029b8bc0] prc -1 1 outside limits 1 2
[jpeg2000 @ 029b8bc0] prc -3 2 outside limits 1 3
[jpeg2000 @ 029b8bc0] prc -2 2 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 2 outside limits 1 3
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] Progression order PCRLprc 0 -1 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc 2 0 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc 3 0 outside limits 2 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] Progression order PCRLprc 0 -1 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc -1 -2 outside limits 3 1
[jpeg2000 @ 029b8bc0] prc 0 -1 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc -1 -2 outside limits 3 1
[jpeg2000 @ 029b8bc0] prc 0 -1 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc -1 -2 outside limits 3 1
[jpeg2000 @ 029b8bc0] prc 0 -2 outside limits 3 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc 1 -1 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc 1 -2 outside limits 3 1
[jpeg2000 @ 029b8bc0] prc 1 -1 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc 1 -2 outside limits 3 1
[jpeg2000 @ 029b8bc0] prc 1 -1 outside limits 2 1
[jpeg2000 @ 029b8bc0] prc 1 -2 outside limits 3 1
[jpeg2000 @ 029b8bc0] prc 2 -2 outside limits 3 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 -1 outside limits 3 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -2 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc 0 -1 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc -3 0 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc -3 0 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc -3 0 outside limits 1 1
[jpeg2000 @ 029b8bc0] prc -2 0 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] prc -1 0 outside limits 1 1
    Last message repeated 2 times
[jpeg2000 @ 029b8bc0] End mismatch 15
[jpeg2000 @ 029b8bc0] End mismatch 508
[jpeg2000 @ 029b8bc0] End mismatch 18
[jpeg2000 @ 029b8bc0] End mismatch 12
[jpeg2000 @ 029b8bc0] End mismatch 7
[jpeg2000 @ 029b8bc0] End mismatch 817
[jpeg2000 @ 029b8bc0] End mismatch 113
[jpeg2000 @ 029b8bc0] End mismatch 37
[jpeg2000 @ 029b8bc0] End mismatch 8
[jpeg2000 @ 029b8bc0] End mismatch 1
[jpeg2000 @ 029b8bc0] End mismatch 1633
[jpeg2000 @ 029b8bc0] End mismatch 4
[jpeg2000 @ 029b8bc0] End mismatch 33
[jpeg2000 @ 029b8bc0] End mismatch 1
    Last message repeated 1 times
[jpeg2000 @ 029b8bc0] End mismatch 800
[jpeg2000 @ 029b8bc0] End mismatch 176
[jpeg2000 @ 029b8bc0] End mismatch 3
[jpeg2000 @ 029b8bc0] End mismatch 34
[jpeg2000 @ 029b8bc0] End mismatch 75
[jpeg2000 @ 029b8bc0] End mismatch 11
[jpeg2000 @ 029b8bc0] End mismatch 290
[jpeg2000 @ 029b8bc0] End mismatch 6
frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:2194kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: unknown

Attachments (2)

prec_pcrl_256_256.jp2 (721.1 KB) - added by ami_stuff 3 years ago.
prec_pcrl_128_128.jp2 (721.6 KB) - added by ami_stuff 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by ami_stuff

Changed 3 years ago by ami_stuff

comment:1 Changed 3 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords j2k added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:2 Changed 3 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.