Opened 18 months ago

Last modified 6 weeks ago

#10123 new defect

j2k decoder fails on on conformance codestream p0_09.j2k when bitexact is used

Reported by: Pierre-Anthony Lemieux Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: j2k
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


The jpeg2000 decoder fails to accurately decode the p0_09.j2k image from the ​ISO/ITU conformance codestream set when bitexact is set.


ffmpeg -i p0_09.j2k p0_09.png


ffmpeg -flags +bitexact -i p0_09.j2k p0_09.exact.png

with the reference image (attached) generated from c1p0_09-0.pgx.

Attachments (1)

jpeg2000-p0_09.src.png (123 bytes ) - added by Pierre-Anthony Lemieux 18 months ago.

Download all attachments as: .zip

Change History (5)

by Pierre-Anthony Lemieux, 18 months ago

Attachment: jpeg2000-p0_09.src.png added

comment:1 by Balling, 18 months ago

Is that HTJ2K codestream too?

comment:3 by Balling, 18 months ago

Why are using bitexact here?


by decoding to .yuv (rawvideo (Y800 / 0x30303859), gray(progressive)) you can indeed see it is different with +bitexact. Ha

On the other hand this sample is lossy...

Last edited 18 months ago by Balling (previous) (diff)

comment:4 by MasterQuestionable, 6 weeks ago

Cc: MasterQuestionable added

͏    .
͏    Take care the "stochastic" part.

͏    Does JPEG 2000 use such technique? and for decoding..?
͏    Sounds unpractical.

Note: See TracTickets for help on using tickets.