[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: fix tilepart processing

2024-06-06 Thread Osamu Watanabe
From: Osamu Watanabe <65328111+osamu...@users.noreply.github.com> Fix http://trac.ffmpeg.org/ticket/10121 Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b/liba

[FFmpeg-devel] [PATCH 1/2] avcodec/jpeg2000dec: Add support for placeholder passes, CAP, and CPF markers

2024-06-14 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 10 + libavcodec/jpeg2000dec.c | 454 ++--- libavcodec/jpeg2000dec.h | 7 + libavcodec/jpeg2000htdec.c | 225 ++ libavcodec/jpeg2000htdec.h | 2 +- 5 files changed, 518

[FFmpeg-devel] [PATCH 2/2] avcodec/jpeg2000dec: fix tilepart processing

2024-06-14 Thread Osamu Watanabe
This is the same as https://patchwork.ffmpeg.org/project/ffmpeg/patch/20240607002549.2259139-1-owata...@es.takushoku-u.ac.jp/ Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b

[FFmpeg-devel] [PATCH v2] avcodec/jpeg2000dec: Add support for placeholder passes, CAP, and CPF markers

2024-06-16 Thread Osamu Watanabe
This v2 - fixes the regression indicated in Message-ID: <20240615201144.GB4991@pb2> by counting the number of necessary terminations for non HT code blocks with the existing code. - drops the commit that was recently merged. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h

[FFmpeg-devel] [PATCH v3 1/3] avcodec/jpeg2000dec: Add support for CAP and CPF markers

2024-06-23 Thread Osamu Watanabe
This commit adds suuport for CAP and CPF markers Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h| 8 +++ libavcodec/jpeg2000dec.c | 112 ++- libavcodec/jpeg2000dec.h | 7 +++ 3 files changed, 126 insertions(+), 1 deletion(-) diff --git a

[FFmpeg-devel] [PATCH v3 2/3] avcodec/jpeg2000dec: Add support for placeholder passes

2024-06-23 Thread Osamu Watanabe
This commit adds support for placeholder pass parsing Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 2 + libavcodec/jpeg2000dec.c | 292 +++-- libavcodec/jpeg2000htdec.c | 18 +-- 3 files changed, 257 insertions(+), 55 deletions(-) diff

[FFmpeg-devel] [PATCH v3 3/3] avcodec/jpeg2000dec: Fix HT decoding

2024-06-23 Thread Osamu Watanabe
This commit fixes wrong treatment of MAGBP value in Ccap15 and bugs in HT block decoding. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 79 +++--- libavcodec/jpeg2000htdec.c | 208 + libavcodec/jpeg2000htdec.h | 2 +- 3 files

[FFmpeg-devel] [PATCH v4 1/3] avcodec/jpeg2000dec: Add support for CAP and CPF markers

2024-06-24 Thread Osamu Watanabe
/?series=12199). The suggested modifications have been made according to the discussion on this mailing list. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h| 8 +++ libavcodec/jpeg2000dec.c | 112 ++- libavcodec/jpeg2000dec.h | 7 +++ 3 files

[FFmpeg-devel] [PATCH v4 2/3] avcodec/jpeg2000dec: Add support for placeholder passes

2024-06-24 Thread Osamu Watanabe
This commit adds support for placeholder pass parsing Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 2 + libavcodec/jpeg2000dec.c | 352 + libavcodec/jpeg2000htdec.c | 90 +- 3 files changed, 326 insertions(+), 118 deletions

[FFmpeg-devel] [PATCH v4 3/3] avcodec/jpeg2000dec: Fix HT decoding

2024-06-24 Thread Osamu Watanabe
This commit fixes wrong treatment of MAGBP value in Ccap15 and bugs in HT block decoding. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 +-- libavcodec/jpeg2000htdec.c | 136 ++--- libavcodec/jpeg2000htdec.h | 2 +- 3 files changed, 89

[FFmpeg-devel] [PATCH v5 1/3] This commit adds support for CAP and CPF markers. Decoder will exit when encountering an illegal codestream.

2024-07-31 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h| 8 +++ libavcodec/jpeg2000dec.c | 128 ++- libavcodec/jpeg2000dec.h | 7 +++ 3 files changed, 142 insertions(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h index

[FFmpeg-devel] [PATCH v5 2/3] This commit adds support for placeholder pass parsing.

2024-07-31 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 2 + libavcodec/jpeg2000dec.c | 352 + libavcodec/jpeg2000htdec.c | 90 +- 3 files changed, 326 insertions(+), 118 deletions(-) diff --git a/libavcodec/jpeg2000.h b/libavcodec

[FFmpeg-devel] [PATCH v5 3/3] This commit fixes wrong treatment of MAGBP value in Ccap15 and bugs in HT block decoding.

2024-07-31 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 +-- libavcodec/jpeg2000htdec.c | 136 ++--- libavcodec/jpeg2000htdec.h | 2 +- 3 files changed, 89 insertions(+), 60 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec

[FFmpeg-devel] [PATCH v6 1/3] avcodec/jpeg2000dec: Add support for CAP and CPF markers

2024-07-31 Thread Osamu Watanabe
This commit adds support for CAP and CPF markers. Decoder will exit when encountering an illegal codestream. It is confirmed that the decoder passes all the test cases in FATE and ISO/IEC 15444-4. The subject was wrong in the v5 set of patches. The v6 corrects it. Signed-off-by: Osamu Watanabe

[FFmpeg-devel] [PATCH v6 3/3] avcodec/jpeg2000dec: Fix HT decoding

2024-07-31 Thread Osamu Watanabe
This commit fixes wrong treatment of MAGBP value in Ccap15 and bugs in HT block decoding. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 +-- libavcodec/jpeg2000htdec.c | 136 ++--- libavcodec/jpeg2000htdec.h | 2 +- 3 files changed, 89

[FFmpeg-devel] [PATCH v6 2/3] avcodec/jpeg2000dec: Add support for placeholder passes

2024-07-31 Thread Osamu Watanabe
This commit adds support for placeholder pass parsing. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 2 + libavcodec/jpeg2000dec.c | 352 + libavcodec/jpeg2000htdec.c | 90 +- 3 files changed, 326 insertions(+), 118 deletions

[FFmpeg-devel] [PATCH v7 1/3] avcodec/jpeg2000dec: Add support for CAP and CPF markers

2024-08-03 Thread Osamu Watanabe
This commit adds support for CAP and CPF markers. Decoding will exit when encountering Ilegal input codestreams. The variable `Jpeg2000DecoderContext->HT_MAGB` has been changed to `HT_B` according to the definition in the spec (ISO/IEC 15444-15). Signed-off-by: Osamu Watanabe --- libavco

[FFmpeg-devel] [PATCH v7 2/3] avcodec/jpeg2000dec: Add support for placeholder passes

2024-08-03 Thread Osamu Watanabe
This commit adds support for placeholder pass parsing. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 2 + libavcodec/jpeg2000dec.c | 352 + libavcodec/jpeg2000htdec.c | 90 +- 3 files changed, 326 insertions(+), 118 deletions

[FFmpeg-devel] [PATCH v7 3/3] avcodec/jpeg2000dec: Fix HT decoding

2024-08-03 Thread Osamu Watanabe
This commit fixes wrong treatment of MAGBP value in Ccap15 and bugs in HT block decoding. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 +-- libavcodec/jpeg2000htdec.c | 136 ++--- libavcodec/jpeg2000htdec.h | 2 +- 3 files changed, 89

[FFmpeg-devel] [PATCH v8 1/3] avcodec/jpeg2000dec: Add support for CAP and CPF markers

2024-08-06 Thread Osamu Watanabe
This commit adds support for CAP and CPF markers. Decoding will exit when encountering Ilegal input codestreams. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h| 8 +++ libavcodec/jpeg2000dec.c | 134 ++- libavcodec/jpeg2000dec.h | 7 ++ 3

[FFmpeg-devel] [PATCH v8 2/3] avcodec/jpeg2000dec: Add support for placeholder passes

2024-08-06 Thread Osamu Watanabe
This commit adds support for placeholder pass parsing. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.h | 2 + libavcodec/jpeg2000dec.c | 352 + libavcodec/jpeg2000dec.h | 2 +- libavcodec/jpeg2000htdec.c | 90 +- 4 files changed

[FFmpeg-devel] [PATCH v8 3/3] avcodec/jpeg2000dec: Fix HT decoding

2024-08-06 Thread Osamu Watanabe
This commit fixes wrong treatment of MAGBP value in Ccap15 and bugs in HT block decoding. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 11 +-- libavcodec/jpeg2000htdec.c | 144 ++--- libavcodec/jpeg2000htdec.h | 2 +- 3 files changed, 93

[FFmpeg-devel] [PATCH 1/2] avcodec/jpeg2000dec: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4.

2024-08-29 Thread Osamu Watanabe
From: OSAMU WATANABE This commit fixes the problem described below on the integer version of the inverse DWT processing (FF_DWT97_INT, https://trac.ffmpeg.org/ticket/10123), which is activated with `-flags +bitexact`. - Problem - The tests for the following codestreams were filed with

[FFmpeg-devel] [PATCH 2/2] avcodec/jpeg2000dec: Update FATE refs for conformance testing defined in ISO/IEC 15444-4

2024-08-29 Thread Osamu Watanabe
The FATE refs are updated to reflect changes in the [PATCH 1/2]. Signed-off-by: Osamu Watanabe --- tests/ref/fate/jpeg2000dec-p0_04 | 2 +- tests/ref/fate/jpeg2000dec-p0_05 | 2 +- tests/ref/fate/jpeg2000dec-p0_09 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ref

[FFmpeg-devel] [PATCH v2 1/2] avcodec/jpeg2000dec: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4.

2024-08-29 Thread Osamu Watanabe
From: OSAMU WATANABE This commit fixes the problem described below on the integer version of the inverse DWT processing (FF_DWT97_INT, https://trac.ffmpeg.org/ticket/10123), which is activated with `-flags +bitexact`. - Problem - The tests for the following codestreams were filed with

[FFmpeg-devel] [PATCH v2 2/2] avcodec/jpeg2000dec: Update to JPEG 2000 related FATE refs with the fix of FF_DWT97_INT (integer implementation of inverse DWT 97)

2024-08-29 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- tests/ref/fate/j2k-dwt | 59 tests/ref/fate/jpeg2000-dcinema | 4 +-- tests/ref/fate/jpeg2000dec-p0_04 | 2 +- tests/ref/fate/jpeg2000dec-p0_05 | 2 +- tests/ref/fate/jpeg2000dec-p0_09 | 2 +- 5 files changed, 5

[FFmpeg-devel] [PATCH v3 1/2] avcodec/jpeg2000dec: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4.

2024-09-04 Thread Osamu Watanabe
`. - p0_04.j2k, p0_05.j2k, p0_09.j2k, p1_02.j2k, p1_03.j2k, p1_06.j2k. - ds0_ht_04_b11.j2k, ds0_ht_04_b12.j2k, ds0_ht_05_b11.j2k, ds0_ht_05_b12.j2k, ds0_ht_09_b11.j2k, ds1_ht_02_b11.j2k, ds1_ht_02_b12.j2k, ds1_ht_03_b11.j2k, ds1_ht_03_b12.j2k, ds1_ht_06_b11.j2k. Signed-off-by: Osamu Watanabe

[FFmpeg-devel] [PATCH v3 2/2] avcodec/jpeg2000dec: Update to JPEG 2000 related FATE refs with the fix of FF_DWT97_INT (integer implementation of DWT 97)

2024-09-04 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- tests/ref/fate/j2k-dwt| 59 --- tests/ref/fate/jpeg2000-dcinema | 4 +- tests/ref/fate/jpeg2000dec-p0_04 | 2 +- tests/ref/fate/jpeg2000dec-p0_05 | 2 +- tests/ref/fate

[FFmpeg-devel] [PATCH v4 1/2] avcodec/jpeg2000dec: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4

2024-09-09 Thread Osamu Watanabe
comes from the insufficient precision of the fixed-point implementation of the 9-7 DWT. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000.c| 6 ++ libavcodec/jpeg2000dec.c | 2 +- libavcodec/jpeg2000dwt.c | 43 +++- 3 files changed, 28

[FFmpeg-devel] [PATCH v4 2/2] fate/jpeg2000: Update refs for the conformance testing defined in ISO/IEC 15444-4

2024-09-09 Thread Osamu Watanabe
Signed-off-by: Osamu Watanabe --- tests/ref/fate/j2k-dwt | 59 tests/ref/fate/jpeg2000-dcinema | 4 +- tests/ref/fate/jpeg2000dec-p0_04 | 2 +- tests/ref/fate/jpeg2000dec-p0_05 | 2 +- tests/ref/fate/jpeg2000dec-p0_09

[FFmpeg-devel] [PATCH v5] avcodec/jpeg2000: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4

2024-09-12 Thread Osamu Watanabe
, the encoded codestream size is slightly larger for a given Q value. For example, `-flags +bitexact -i lena.pnm -q: 20 -format j2k -y tmp.j2c` gives 13K (HEAD) and 19K (with this patch). This commit also updates the source and reference files for affected FATE tests. Signed-off-by: Osamu Watanabe

[FFmpeg-devel] [PATCH v6] avcodec/jpeg2000: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4

2024-11-01 Thread Osamu Watanabe
, the encoded codestream size is slightly larger for a given Q value. For example, -flags +bitexact -i lena.pnm -q: 20 -format j2k -y tmp.j2c gives 13K (HEAD) and 19K (with this patch). This commit also updates the source and reference files for affected FATE tests. Signed-off-by: Osamu Watanabe

[FFmpeg-devel] [PATCH v7] avcodec/jpeg2000: Fix FF_DWT97_INT to pass the conformance testing defined in ISO/IEC 15444-4

2024-11-02 Thread Osamu Watanabe
, the encoded codestream size is slightly larger for a given Q value. For example, `-flags +bitexact -i lena.pnm -q: 20 -format j2k -y tmp.j2c` gives 13K (HEAD) and 19K (with this patch). This commit also updates the source and reference files for affected FATE tests. Signed-off-by: Osamu Watanabe

[FFmpeg-devel] [PATCH] avcodec/jpeg2000: Fix undefined behaviour in left shift operations

2024-11-11 Thread Osamu Watanabe
This patch fixes undefined behaviour error in left shift operations in jpeg2000dec.c and jpeg2000htdec.c. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 6 +++--- libavcodec/jpeg2000htdec.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec

[FFmpeg-devel] [PATCH v2] avcodec/jpeg2000: Fix undefined behaviour in left shift operations

2024-12-04 Thread Osamu Watanabe
This patch fixes undefined behaviour error in left shift operations in jpeg2000dec.c, jpeg2000htdec.c, and libavcodec/tests/jpeg2000dwt.c. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 6 +++--- libavcodec/jpeg2000htdec.c | 6 +++--- libavcodec/tests/jpeg2000dwt.c | 2

[FFmpeg-devel] [PATCH] avcodec/jpeg2000: Fix undefined behaviour in left shift operations

2024-12-04 Thread Osamu Watanabe
This patch fixes undefined behaviour error in left shift operations in jpeg2000dec.c and jpeg2000htdec.c. Signed-off-by: Osamu Watanabe --- libavcodec/jpeg2000dec.c | 6 +++--- libavcodec/jpeg2000htdec.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec