Opened 9 years ago

Closed 9 years ago

#4626 closed defect (fixed)

jpeg2000: fix decoding of mode VSC

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

-M <key value>
    Mode switch.
    [1=BYPASS(LAZY) 2=RESET 4=RESTART(TERMALL)
    8=VSC 16=ERTERM(SEGTERM) 32=SEGMARK(SEGSYM)]
    Indicate multiple modes by adding their values.
      Example: RESTART(4) + RESET(2) + SEGMARK(32) => -M 38
C:\>opj_compress.exe  -i test.bmp -M 8 -o m8.jp2


[INFO] tile number 1 / 1
[INFO] Generated outfile m8.jp2
C:\>ffmpeg -i m8.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. 36.100 / 56. 36.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 @ 0228f600] Warning: not compiled with thread support, using thread em
ulation
[jpeg2000 @ 0228f600] End mismatch 48
[jpeg2000 @ 0228f600] End mismatch 908
[jpeg2000 @ 0228f600] End mismatch 672
[jpeg2000 @ 0228f600] End mismatch 169
[jpeg2000 @ 0228f600] End mismatch 388
[jpeg2000 @ 0228f600] End mismatch 91
[jpeg2000 @ 0228f600] End mismatch 283
[jpeg2000 @ 0228f600] End mismatch 403
[jpeg2000 @ 0228f600] End mismatch 129
[jpeg2000 @ 0228f600] End mismatch 483
[jpeg2000 @ 0228f600] End mismatch 967
[jpeg2000 @ 0228f600] End mismatch 669
[jpeg2000 @ 0228f600] End mismatch 23
[jpeg2000 @ 0228f600] End mismatch 936
[jpeg2000 @ 0228f600] End mismatch 612
[jpeg2000 @ 0228f600] End mismatch 43
[jpeg2000 @ 0228f600] End mismatch 580
[jpeg2000 @ 0228f600] End mismatch 398
[jpeg2000 @ 0228f600] End mismatch 281
[jpeg2000 @ 0228f600] End mismatch 705
[jpeg2000 @ 0228f600] End mismatch 166
[...]
[jpeg2000 @ 0228f600] End mismatch 152
[jpeg2000 @ 0228f600] End mismatch 229
[jpeg2000 @ 0228f600] End mismatch 227
[jpeg2000 @ 0228f600] End mismatch 422
[jpeg2000 @ 0228f600] End mismatch 229
[jpeg2000 @ 0228f600] End mismatch 219
[jpeg2000 @ 0228f600] End mismatch 132
[jpeg2000 @ 0228f600] End mismatch 258
[jpeg2000 @ 0228f600] End mismatch 46
[jpeg2000 @ 0228f600] End mismatch 390
[jpeg2000 @ 0228f600] End mismatch 217
[jpeg2000 @ 0228f600] End mismatch 62
[jpeg2000 @ 0228f600] End mismatch 143
[jpeg2000 @ 0228f600] End mismatch 22
Input #0, j2k_pipe, from 'm8.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 @ 02286640] Warning: not compiled with thread support, using thread emulati
on
[jpeg2000 @ 02286020] Warning: not compiled with thread support, using thread em
ulation
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.36.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 @ 02286020] extra cblk styles 8
[jpeg2000 @ 02286020] End mismatch 56
[jpeg2000 @ 02286020] End mismatch 28
[jpeg2000 @ 02286020] End mismatch 142
[jpeg2000 @ 02286020] End mismatch 194
[jpeg2000 @ 02286020] End mismatch 521
[jpeg2000 @ 02286020] End mismatch 1119
[jpeg2000 @ 02286020] End mismatch 862
[jpeg2000 @ 02286020] End mismatch 582
[jpeg2000 @ 02286020] End mismatch 834
[jpeg2000 @ 02286020] End mismatch 49
[...]
[jpeg2000 @ 02286020] End mismatch 64
[jpeg2000 @ 02286020] End mismatch 90
[jpeg2000 @ 02286020] End mismatch 152
[jpeg2000 @ 02286020] End mismatch 229
[jpeg2000 @ 02286020] End mismatch 227
[jpeg2000 @ 02286020] End mismatch 422
[jpeg2000 @ 02286020] End mismatch 229
[jpeg2000 @ 02286020] End mismatch 219
[jpeg2000 @ 02286020] End mismatch 132
[jpeg2000 @ 02286020] End mismatch 258
[jpeg2000 @ 02286020] End mismatch 46
[jpeg2000 @ 02286020] End mismatch 390
[jpeg2000 @ 02286020] End mismatch 217
[jpeg2000 @ 02286020] End mismatch 62
[jpeg2000 @ 02286020] End mismatch 143
[jpeg2000 @ 02286020] End mismatch 22
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 (1)

m8.jp2 (717.4 KB ) - added by ami_stuff 9 years ago.

Download all attachments as: .zip

Change History (3)

by ami_stuff, 9 years ago

Attachment: m8.jp2 added

comment:1 by Carl Eugen Hoyos, 9 years ago

Component: undeterminedavcodec
Keywords: j2k added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Michael Niedermayer, 9 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.