diff mbox series

[FFmpeg-devel] fate/jpeg2000dec: add selected conformance codestreams from ISO/IEC 15444-4

Message ID 20240820060304.54557-1-pal@sandflow.com
State New
Headers show
Series [FFmpeg-devel] fate/jpeg2000dec: add selected conformance codestreams from ISO/IEC 15444-4 | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Pierre-Anthony Lemieux Aug. 20, 2024, 6:03 a.m. UTC
From: Pierre-Anthony Lemieux <pal@palemieux.com>

---
 tests/fate/jpeg2000.mak                  | 129 +++++++++++++++++++++--
 tests/ref/fate/jpeg2000dec-ds0_hm_15_b8  |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_02_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_02_b12 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_03_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_03_b14 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_04_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_04_b12 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_05_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_05_b12 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_07_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_07_b15 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_07_b16 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_08_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_08_b15 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_08_b16 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_09_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_10_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_11_b10 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_12_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_14_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_15_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_15_b14 |   6 ++
 tests/ref/fate/jpeg2000dec-ds0_ht_16_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_01_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_01_b12 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_02_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_02_b12 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_03_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_03_b12 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_04_b9  |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_05_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-ds1_ht_06_b11 |   6 ++
 tests/ref/fate/jpeg2000dec-hifi_ht1_02   |   6 ++
 tests/ref/fate/jpeg2000dec-hifi_p1_02    |   6 ++
 tests/ref/fate/jpeg2000dec-p1_01         |   6 ++
 tests/ref/fate/jpeg2000dec-p1_02         |   6 ++
 tests/ref/fate/jpeg2000dec-p1_03         |   6 ++
 tests/ref/fate/jpeg2000dec-p1_04         |   6 ++
 tests/ref/fate/jpeg2000dec-p1_05         |   6 ++
 tests/ref/fate/jpeg2000dec-p1_06         |   6 ++
 41 files changed, 363 insertions(+), 6 deletions(-)
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_hm_15_b8
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_02_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_02_b12
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_03_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_03_b14
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_04_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_04_b12
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_05_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_05_b12
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_07_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_07_b15
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_07_b16
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_08_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_08_b15
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_08_b16
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_09_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_10_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_11_b10
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_12_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_14_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_15_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_15_b14
 create mode 100644 tests/ref/fate/jpeg2000dec-ds0_ht_16_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_01_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_01_b12
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_02_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_02_b12
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_03_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_03_b12
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_04_b9
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_05_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-ds1_ht_06_b11
 create mode 100644 tests/ref/fate/jpeg2000dec-hifi_ht1_02
 create mode 100644 tests/ref/fate/jpeg2000dec-hifi_p1_02
 create mode 100644 tests/ref/fate/jpeg2000dec-p1_01
 create mode 100644 tests/ref/fate/jpeg2000dec-p1_02
 create mode 100644 tests/ref/fate/jpeg2000dec-p1_03
 create mode 100644 tests/ref/fate/jpeg2000dec-p1_04
 create mode 100644 tests/ref/fate/jpeg2000dec-p1_05
 create mode 100644 tests/ref/fate/jpeg2000dec-p1_06

Comments

Tomas Härdin Aug. 21, 2024, 3:54 p.m. UTC | #1
mån 2024-08-19 klockan 23:03 -0700 skrev pal@sandflow.com:
> From: Pierre-Anthony Lemieux <pal@palemieux.com>
> 
> ---
>  tests/fate/jpeg2000.mak                  | 129

I presume you've tested that the frames match the references as
required. If so then it looks OK to me

/Tomas
Pierre-Anthony Lemieux Aug. 21, 2024, 4:01 p.m. UTC | #2
On Wed, Aug 21, 2024 at 8:54 AM Tomas Härdin <git@haerdin.se> wrote:
>
> mån 2024-08-19 klockan 23:03 -0700 skrev pal@sandflow.com:
> > From: Pierre-Anthony Lemieux <pal@palemieux.com>
> >
> > ---
> >  tests/fate/jpeg2000.mak                  | 129
>
> I presume you've tested that the frames match the references as
> required. If so then it looks OK to me

@osamu you checked that all the codestreams decoded within acceptable
limits, right? If so, I will add you as co-author.

(I have only checked a few of them for accuracy per the spec. I have
checked all of them for memory leaks/crashes.)

>
> /Tomas
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Osamu Watanabe Aug. 22, 2024, 6:24 a.m. UTC | #3
Hi Pierre, Tomas,

For lossy codestreams, I found a potential problem on the current 9x7 integer IDWT (which will be activated with the +bitexact flag.)

I have confirmed that FFMPEG passes all the test cases without the flag.

The problem has been locally solved with the updated code, however, the patch set is not yet ready.
(It won't take long)

Best,
Osamu


> 2024/08/22 1:01、Pierre-Anthony Lemieux <pal@sandflow.com>のメール:
> 
> ?On Wed, Aug 21, 2024 at 8:54?AM Tomas Hardin <git@haerdin.se> wrote:
>> 
>> man 2024-08-19 klockan 23:03 -0700 skrev pal@sandflow.com:
>>> From: Pierre-Anthony Lemieux <pal@palemieux.com>
>>> 
>>> ---
>>> tests/fate/jpeg2000.mak                  | 129
>> 
>> I presume you've tested that the frames match the references as
>> required. If so then it looks OK to me
> 
> @osamu you checked that all the codestreams decoded within acceptable
> limits, right? If so, I will add you as co-author.
> 
> (I have only checked a few of them for accuracy per the spec. I have
> checked all of them for memory leaks/crashes.)
> 
>> 
>> /Tomas
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Pierre-Anthony Lemieux Aug. 22, 2024, 4:36 p.m. UTC | #4
On Thu, Aug 22, 2024 at 2:24 AM WATANABE Osamu
<owatanab@es.takushoku-u.ac.jp> wrote:
>
> Hi Pierre, Tomas,
>
> For lossy codestreams, I found a potential problem on the current 9x7 integer IDWT (which will be activated with the +bitexact flag.)

Probably related?

https://trac.ffmpeg.org/ticket/10123

>
> I have confirmed that FFMPEG passes all the test cases without the flag.
>
> The problem has been locally solved with the updated code, however, the patch set is not yet ready.
> (It won't take long)
>
> Best,
> Osamu
>
>
> > 2024/08/22 1:01、Pierre-Anthony Lemieux <pal@sandflow.com>のメール:
> >
> > ?On Wed, Aug 21, 2024 at 8:54?AM Tomas Hardin <git@haerdin.se> wrote:
> >>
> >> man 2024-08-19 klockan 23:03 -0700 skrev pal@sandflow.com:
> >>> From: Pierre-Anthony Lemieux <pal@palemieux.com>
> >>>
> >>> ---
> >>> tests/fate/jpeg2000.mak                  | 129
> >>
> >> I presume you've tested that the frames match the references as
> >> required. If so then it looks OK to me
> >
> > @osamu you checked that all the codestreams decoded within acceptable
> > limits, right? If so, I will add you as co-author.
> >
> > (I have only checked a few of them for accuracy per the spec. I have
> > checked all of them for memory leaks/crashes.)
> >
> >>
> >> /Tomas
> >> _______________________________________________
> >> ffmpeg-devel mailing list
> >> ffmpeg-devel@ffmpeg.org
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >>
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Osamu Watanabe Aug. 26, 2024, 7:30 a.m. UTC | #5
Yes, it is related to the potential problem.

The problem may be here:
https://github.com/FFmpeg/FFmpeg/blob/40dda881d6ad761b4589c3078b925e0d849546b3/libavcodec/jpeg2000dec.c#L2139

Shifting down by 16 bits here is too much because it will cancel the value of "1" (=0.5) below the binary point.


> On Aug 23, 2024, at 1:36, Pierre-Anthony Lemieux <pal@sandflow.com> wrote:
> 
> On Thu, Aug 22, 2024 at 2:24?AM WATANABE Osamu
> <owatanab@es.takushoku-u.ac.jp> wrote:
>> 
>> Hi Pierre, Tomas,
>> 
>> For lossy codestreams, I found a potential problem on the current 9x7 integer IDWT (which will be activated with the +bitexact flag.)
> 
> Probably related?
> 
> https://trac.ffmpeg.org/ticket/10123
> 
>> 
>> I have confirmed that FFMPEG passes all the test cases without the flag.
>> 
>> The problem has been locally solved with the updated code, however, the patch set is not yet ready.
>> (It won't take long)
>> 
>> Best,
>> Osamu
>> 
>> 
>>> 2024/08/22 1:01、Pierre-Anthony Lemieux <pal@sandflow.com>のメール:
>>> 
>>> ?On Wed, Aug 21, 2024 at 8:54?AM Tomas Hardin <git@haerdin.se> wrote:
>>>> 
>>>> man 2024-08-19 klockan 23:03 -0700 skrev pal@sandflow.com:
>>>>> From: Pierre-Anthony Lemieux <pal@palemieux.com>
>>>>> 
>>>>> ---
>>>>> tests/fate/jpeg2000.mak                  | 129
>>>> 
>>>> I presume you've tested that the frames match the references as
>>>> required. If so then it looks OK to me
>>> 
>>> @osamu you checked that all the codestreams decoded within acceptable
>>> limits, right? If so, I will add you as co-author.
>>> 
>>> (I have only checked a few of them for accuracy per the spec. I have
>>> checked all of them for memory leaks/crashes.)
>>> 
>>>> 
>>>> /Tomas
>>>> _______________________________________________
>>>> ffmpeg-devel mailing list
>>>> ffmpeg-devel@ffmpeg.org
>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>> 
>>>> To unsubscribe, visit link above, or email
>>>> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/tests/fate/jpeg2000.mak b/tests/fate/jpeg2000.mak
index a99b0c4e0c..974f33bdc3 100644
--- a/tests/fate/jpeg2000.mak
+++ b/tests/fate/jpeg2000.mak
@@ -7,16 +7,13 @@ 
 # Notes:
 # * p0_06.j2k is not included because it uses a pixel format that is not
 #   supported (4:2:2:1)
-# * p0_10.j2k is not included because errors are emitted during decoding and
-#   there are significant deviations from the reference image in the bottom-left
-#   quadrant
 # * p0_13.j2k is not included because it uses a pixel format that is not
 #   supported (257 color channels)
-# * p0_04.j2k and p0_05.j2k exceed the error thresholds specified in the
-#   conformance suite
 # * p0_09.j2k matches the reference image exactly when bitexact is not used, but
 #   exceed the error thresholds specified in the conformance suite when bitexact
 #   is used
+# * p1_07.j2k is not included because it uses a pixel format that is not
+#   supported (12-bit signed integer)
 
 FATE_JPEG2000DEC += fate-jpeg2000dec-p0_01
 fate-jpeg2000dec-p0_01: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile0/p0_01.j2k
@@ -60,8 +57,128 @@  fate-jpeg2000dec-p0_15: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpe
 FATE_JPEG2000DEC += fate-jpeg2000dec-p0_16
 fate-jpeg2000dec-p0_16: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile0/p0_16.j2k
 
+FATE_JPEG2000DEC += fate-jpeg2000dec-p1_01
+fate-jpeg2000dec-p1_01: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/p1_01.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-p1_02
+fate-jpeg2000dec-p1_02: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/p1_02.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-p1_03
+fate-jpeg2000dec-p1_03: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/p1_03.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-p1_04
+fate-jpeg2000dec-p1_04: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/p1_04.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-p1_05
+fate-jpeg2000dec-p1_05: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/p1_05.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-p1_06
+fate-jpeg2000dec-p1_06: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/p1_06.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-hifi_ht1_02
+fate-jpeg2000dec-hifi_ht1_02: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/hifi_ht1_02.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-hifi_p1_02
+fate-jpeg2000dec-hifi_p1_02: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/codestreams_profile1/hifi_p1_02.j2k
+
 FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_01_b11
-fate-jpeg2000dec-ds0_ht_01_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/ds0_ht_01_b11.j2k
+fate-jpeg2000dec-ds0_ht_01_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_01_bset/ds0_ht_01_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_02_b11
+fate-jpeg2000dec-ds0_ht_02_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_02_bset/ds0_ht_02_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_02_b12
+fate-jpeg2000dec-ds0_ht_02_b12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_02_bset/ds0_ht_02_b12.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_03_b11
+fate-jpeg2000dec-ds0_ht_03_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_03_bset/ds0_ht_03_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_03_b14
+fate-jpeg2000dec-ds0_ht_03_b14: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_03_bset/ds0_ht_03_b14.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_04_b11
+fate-jpeg2000dec-ds0_ht_04_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_04_bset/ds0_ht_04_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_04_b12
+fate-jpeg2000dec-ds0_ht_04_b12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_04_bset/ds0_ht_04_b12.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_05_b11
+fate-jpeg2000dec-ds0_ht_05_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_05_bset/ds0_ht_05_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_05_b12
+fate-jpeg2000dec-ds0_ht_05_b12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_05_bset/ds0_ht_05_b12.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_07_b11
+fate-jpeg2000dec-ds0_ht_07_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_07_bset/ds0_ht_07_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_07_b15
+fate-jpeg2000dec-ds0_ht_07_b15: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_07_bset/ds0_ht_07_b15.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_07_b16
+fate-jpeg2000dec-ds0_ht_07_b16: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_07_bset/ds0_ht_07_b16.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_08_b11
+fate-jpeg2000dec-ds0_ht_08_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_08_bset/ds0_ht_08_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_08_b15
+fate-jpeg2000dec-ds0_ht_08_b15: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_08_bset/ds0_ht_08_b15.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_08_b16
+fate-jpeg2000dec-ds0_ht_08_b16: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_08_bset/ds0_ht_08_b16.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_09_b11
+fate-jpeg2000dec-ds0_ht_09_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_09_bset/ds0_ht_09_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_10_b11
+fate-jpeg2000dec-ds0_ht_10_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_10_bset/ds0_ht_10_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_11_b10
+fate-jpeg2000dec-ds0_ht_11_b10: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_11_bset/ds0_ht_11_b10.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_12_b11
+fate-jpeg2000dec-ds0_ht_12_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_12_bset/ds0_ht_12_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_14_b11
+fate-jpeg2000dec-ds0_ht_14_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_14_bset/ds0_ht_14_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_hm_15_b8
+fate-jpeg2000dec-ds0_hm_15_b8: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_15_bset/ds0_hm_15_b8.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_15_b11
+fate-jpeg2000dec-ds0_ht_15_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_15_bset/ds0_ht_15_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_15_b14
+fate-jpeg2000dec-ds0_ht_15_b14: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_15_bset/ds0_ht_15_b14.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds0_ht_16_b11
+fate-jpeg2000dec-ds0_ht_16_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile0/p0_16_bset/ds0_ht_16_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_01_b11
+fate-jpeg2000dec-ds1_ht_01_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_01_bset/ds1_ht_01_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_01_b12
+fate-jpeg2000dec-ds1_ht_01_b12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_01_bset/ds1_ht_01_b12.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_02_b11
+fate-jpeg2000dec-ds1_ht_02_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_02_bset/ds1_ht_02_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_02_b12
+fate-jpeg2000dec-ds1_ht_02_b12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_02_bset/ds1_ht_02_b12.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_03_b11
+fate-jpeg2000dec-ds1_ht_03_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_03_bset/ds1_ht_03_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_03_b12
+fate-jpeg2000dec-ds1_ht_03_b12: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_03_bset/ds1_ht_03_b12.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_04_b9
+fate-jpeg2000dec-ds1_ht_04_b9: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_04_bset/ds1_ht_04_b9.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_05_b11
+fate-jpeg2000dec-ds1_ht_05_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_05_bset/ds1_ht_05_b11.j2k
+
+FATE_JPEG2000DEC += fate-jpeg2000dec-ds1_ht_06_b11
+fate-jpeg2000dec-ds1_ht_06_b11: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/jpeg2000/itu-iso/htj2k_bsets_profile1/p1_06_bset/ds1_ht_06_b11.j2k
 
 FATE_JPEG2000DEC += $(FATE_JPEG2000DEC-yes)
 
diff --git a/tests/ref/fate/jpeg2000dec-ds0_hm_15_b8 b/tests/ref/fate/jpeg2000dec-ds0_hm_15_b8
new file mode 100644
index 0000000000..e508fb61e0
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_hm_15_b8
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
+0,          0,          0,        1,    65536, 0x252408c0
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_02_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_02_b11
new file mode 100644
index 0000000000..0ec1189148
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_02_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x126
+#sar 0: 0/1
+0,          0,          0,        1,     8064, 0x32fbc710
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_02_b12 b/tests/ref/fate/jpeg2000dec-ds0_ht_02_b12
new file mode 100644
index 0000000000..f96d24c121
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_02_b12
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x126
+#sar 0: 0/1
+0,          0,          0,        1,     8064, 0xd634c70c
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_03_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_03_b11
new file mode 100644
index 0000000000..c2fb29eb42
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_03_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
+0,          0,          0,        1,    65536, 0x33783820
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_03_b14 b/tests/ref/fate/jpeg2000dec-ds0_ht_03_b14
new file mode 100644
index 0000000000..e508fb61e0
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_03_b14
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
+0,          0,          0,        1,    65536, 0x252408c0
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_04_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_04_b11
new file mode 100644
index 0000000000..4b78f460dd
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_04_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
+0,          0,          0,        1,   921600, 0x11f59714
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_04_b12 b/tests/ref/fate/jpeg2000dec-ds0_ht_04_b12
new file mode 100644
index 0000000000..5de7880c44
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_04_b12
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
+0,          0,          0,        1,   921600, 0x097d9665
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_05_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_05_b11
new file mode 100644
index 0000000000..882cc4c811
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_05_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2621440, 0x35615062
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_05_b12 b/tests/ref/fate/jpeg2000dec-ds0_ht_05_b12
new file mode 100644
index 0000000000..bb215043a1
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_05_b12
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2621440, 0x081f5048
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_07_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_07_b11
new file mode 100644
index 0000000000..add2665ea1
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_07_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2048x2048
+#sar 0: 0/1
+0,          0,          0,        1, 25165824, 0x5992b06f
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_07_b15 b/tests/ref/fate/jpeg2000dec-ds0_ht_07_b15
new file mode 100644
index 0000000000..865ba44b50
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_07_b15
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2048x2048
+#sar 0: 0/1
+0,          0,          0,        1, 25165824, 0x17b04b02
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_07_b16 b/tests/ref/fate/jpeg2000dec-ds0_ht_07_b16
new file mode 100644
index 0000000000..e561a1b780
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_07_b16
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 2048x2048
+#sar 0: 0/1
+0,          0,          0,        1, 25165824, 0x9685aad6
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_08_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_08_b11
new file mode 100644
index 0000000000..456acc586c
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_08_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 513x3072
+#sar 0: 0/1
+0,          0,          0,        1,  9455616, 0xe9e06d04
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_08_b15 b/tests/ref/fate/jpeg2000dec-ds0_ht_08_b15
new file mode 100644
index 0000000000..c330595f83
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_08_b15
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 513x3072
+#sar 0: 0/1
+0,          0,          0,        1,  9455616, 0xade3bd10
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_08_b16 b/tests/ref/fate/jpeg2000dec-ds0_ht_08_b16
new file mode 100644
index 0000000000..ef28d600e1
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_08_b16
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 513x3072
+#sar 0: 0/1
+0,          0,          0,        1,  9455616, 0x0af3ab70
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_09_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_09_b11
new file mode 100644
index 0000000000..1755e7cc7d
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_09_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 17x37
+#sar 0: 0/1
+0,          0,          0,        1,      629, 0x5c9c389d
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_10_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_10_b11
new file mode 100644
index 0000000000..16c4e5e39d
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_10_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 64x64
+#sar 0: 0/1
+0,          0,          0,        1,    12288, 0x68638483
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_11_b10 b/tests/ref/fate/jpeg2000dec-ds0_ht_11_b10
new file mode 100644
index 0000000000..9b15604361
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_11_b10
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x1
+#sar 0: 0/1
+0,          0,          0,        1,      128, 0xae9630db
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_12_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_12_b11
new file mode 100644
index 0000000000..435c124c99
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_12_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 3x5
+#sar 0: 0/1
+0,          0,          0,        1,       15, 0x2a170596
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_14_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_14_b11
new file mode 100644
index 0000000000..5d28e611a0
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_14_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 49x49
+#sar 0: 0/1
+0,          0,          0,        1,     7203, 0x61d40b41
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_15_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_15_b11
new file mode 100644
index 0000000000..c2fb29eb42
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_15_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
+0,          0,          0,        1,    65536, 0x33783820
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_15_b14 b/tests/ref/fate/jpeg2000dec-ds0_ht_15_b14
new file mode 100644
index 0000000000..e508fb61e0
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_15_b14
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 256x256
+#sar 0: 0/1
+0,          0,          0,        1,    65536, 0x252408c0
diff --git a/tests/ref/fate/jpeg2000dec-ds0_ht_16_b11 b/tests/ref/fate/jpeg2000dec-ds0_ht_16_b11
new file mode 100644
index 0000000000..d923cc2109
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds0_ht_16_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,    16384, 0x04a3647e
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_01_b11 b/tests/ref/fate/jpeg2000dec-ds1_ht_01_b11
new file mode 100644
index 0000000000..04eb8ddde3
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_01_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 61x99
+#sar 0: 0/1
+0,          0,          0,        1,     6039, 0x14c29859
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_01_b12 b/tests/ref/fate/jpeg2000dec-ds1_ht_01_b12
new file mode 100644
index 0000000000..43648bcae9
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_01_b12
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 61x99
+#sar 0: 0/1
+0,          0,          0,        1,     6039, 0x317c985b
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_02_b11 b/tests/ref/fate/jpeg2000dec-ds1_ht_02_b11
new file mode 100644
index 0000000000..0fbcb85d70
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_02_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
+0,          0,          0,        1,   921600, 0xfd949749
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_02_b12 b/tests/ref/fate/jpeg2000dec-ds1_ht_02_b12
new file mode 100644
index 0000000000..5de7880c44
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_02_b12
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
+0,          0,          0,        1,   921600, 0x097d9665
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_03_b11 b/tests/ref/fate/jpeg2000dec-ds1_ht_03_b11
new file mode 100644
index 0000000000..515880e223
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_03_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2621440, 0x40075880
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_03_b12 b/tests/ref/fate/jpeg2000dec-ds1_ht_03_b12
new file mode 100644
index 0000000000..e58cc1c7af
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_03_b12
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2621440, 0x35ed57e5
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_04_b9 b/tests/ref/fate/jpeg2000dec-ds1_ht_04_b9
new file mode 100644
index 0000000000..5a44016472
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_04_b9
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2097152, 0x2ed53b14
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_05_b11 b/tests/ref/fate/jpeg2000dec-ds1_ht_05_b11
new file mode 100644
index 0000000000..fb217c0700
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_05_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
+0,          0,          0,        1,   786432, 0x67fbebad
diff --git a/tests/ref/fate/jpeg2000dec-ds1_ht_06_b11 b/tests/ref/fate/jpeg2000dec-ds1_ht_06_b11
new file mode 100644
index 0000000000..4c9ab4f1b6
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-ds1_ht_06_b11
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x12
+#sar 0: 0/1
+0,          0,          0,        1,      432, 0x4f30c9b4
diff --git a/tests/ref/fate/jpeg2000dec-hifi_ht1_02 b/tests/ref/fate/jpeg2000dec-hifi_ht1_02
new file mode 100644
index 0000000000..8cdec13421
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-hifi_ht1_02
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,    98304, 0x37710911
diff --git a/tests/ref/fate/jpeg2000dec-hifi_p1_02 b/tests/ref/fate/jpeg2000dec-hifi_p1_02
new file mode 100644
index 0000000000..67110b34fd
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-hifi_p1_02
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,    98304, 0x00b91380
diff --git a/tests/ref/fate/jpeg2000dec-p1_01 b/tests/ref/fate/jpeg2000dec-p1_01
new file mode 100644
index 0000000000..43648bcae9
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-p1_01
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 61x99
+#sar 0: 0/1
+0,          0,          0,        1,     6039, 0x317c985b
diff --git a/tests/ref/fate/jpeg2000dec-p1_02 b/tests/ref/fate/jpeg2000dec-p1_02
new file mode 100644
index 0000000000..5de7880c44
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-p1_02
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 640x480
+#sar 0: 0/1
+0,          0,          0,        1,   921600, 0x097d9665
diff --git a/tests/ref/fate/jpeg2000dec-p1_03 b/tests/ref/fate/jpeg2000dec-p1_03
new file mode 100644
index 0000000000..e58cc1c7af
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-p1_03
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2621440, 0x35ed57e5
diff --git a/tests/ref/fate/jpeg2000dec-p1_04 b/tests/ref/fate/jpeg2000dec-p1_04
new file mode 100644
index 0000000000..5a44016472
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-p1_04
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1024x1024
+#sar 0: 0/1
+0,          0,          0,        1,  2097152, 0x2ed53b14
diff --git a/tests/ref/fate/jpeg2000dec-p1_05 b/tests/ref/fate/jpeg2000dec-p1_05
new file mode 100644
index 0000000000..fb217c0700
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-p1_05
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 512x512
+#sar 0: 0/1
+0,          0,          0,        1,   786432, 0x67fbebad
diff --git a/tests/ref/fate/jpeg2000dec-p1_06 b/tests/ref/fate/jpeg2000dec-p1_06
new file mode 100644
index 0000000000..4c9ab4f1b6
--- /dev/null
+++ b/tests/ref/fate/jpeg2000dec-p1_06
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x12
+#sar 0: 0/1
+0,          0,          0,        1,      432, 0x4f30c9b4