[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: error check when processing tlm marker

2020-03-24 Thread gautamramk
From: Gautam Ramakrishnan Validate the value of ST field in the TLM marker of JPEG2000. Throw an error when ST takes value of 0x11. --- libavcodec/jpeg2000dec.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 019d

[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: error check when processing tlm marker

2020-03-24 Thread gautamramk
From: Gautam Ramakrishnan Validate the value of ST field in the TLM marker of JPEG2000. Throw an error when ST takes value of 0x11. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 0

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000.h: fix comments for JPEG2000 markers

2020-03-25 Thread gautamramk
From: Gautam Ramakrishnan The comments for some of the markers were incorrect. This patch fixes the comments associated with the markers. --- libavcodec/jpeg2000.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h index c

[FFmpeg-devel] [PATCH v2] avcodec/jpeg2000dec: error check when processing tlm marker

2020-03-25 Thread gautamramk
From: Gautam Ramakrishnan Validate the value of ST field in the TLM marker of JPEG2000. Throw an error when ST takes value of 0x11. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 0

[FFmpeg-devel] [PATCH v3] avcodec/jpeg2000dec: error check when processing tlm marker

2020-03-25 Thread gautamramk
From: Gautam Ramakrishnan Validate the value of ST field in the TLM marker of JPEG2000. Throw an error when ST takes value of 0b11. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 0

[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec Support for PPT marker

2020-03-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for the JPEG2000 PPT marker. This patch hence, fixes #4610. The patch was tested on the samples posted along with ticket #4610. --- libavcodec/jpeg2000dec.c | 348 +-- 1 file changed, 331 insertions(+), 17 dele

[FFmpeg-devel] [PATCH v2 2/2] libavcodec/jpeg2000dec.c: Functional changes to support PPT marker

2020-03-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. It allows the PPT marker to be read in jpeg2000_read_main_headers(). --- libavcodec/jpeg2000dec.c | 270 --- 1 file changed, 82 insertions(+), 188 deletions(-) diff --git

[FFmpeg-devel] [PATCH v2 1/2] libavcodec/jpeg2000dec.c: Add functions and modify structs for PPT marker support

2020-03-27 Thread gautamramk
From: Gautam Ramakrishnan This patch modifies the Jpeg2000Tile struct and breaks the jpeg2000_decode_packet() function into two to decode packet header and data separately. --- libavcodec/jpeg2000dec.c | 250 ++- 1 file changed, 248 insertions(+), 2 deletions(

[FFmpeg-devel] [PATCH v3 3/3] libavcodec/jpeb2000dec.c: Handle non EOC streams

2020-03-27 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. OpenJPEG implements a similar check. --- libavcodec/jpeg2000dec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c inde

[FFmpeg-devel] [PATCH v3 1/3] libavcodec/jpeg2000dec.c: Add functions and modify structs for PPT marker support

2020-03-27 Thread gautamramk
From: Gautam Ramakrishnan This patch modifies the Jpeg2000Tile struct and breaks the jpeg2000_decode_packet() function into two to decode packet header and data separately. --- libavcodec/jpeg2000dec.c | 250 ++- 1 file changed, 248 insertions(+), 2 deletions(

[FFmpeg-devel] [PATCH v3 2/3] libavcodec/jpeg2000dec.c: Functional changes to support PPT marker

2020-03-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. It allows the PPT marker to be read in jpeg2000_read_main_headers(). --- libavcodec/jpeg2000dec.c | 270 --- 1 file changed, 82 insertions(+), 188 deletions(-) diff --git

[FFmpeg-devel] [PATCH v4 2/2] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-03-28 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. OpenJPEG implements a similar check. --- libavcodec/jpeg2000dec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c in

[FFmpeg-devel] [PATCH v4 1/2] libavcodec/jpeg2000dec.c: Add functions and modify structs for PPT marker support

2020-03-28 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for the PPT marker. It breaks down the jpeg2000_decode_packet() function to decode headers and data separately. --- libavcodec/jpeg2000dec.c | 200 +-- 1 file changed, 170 insertions(+), 30 deletions(-) diff -

[FFmpeg-devel] [PATCH v5 1/2] libavcodec/jpeg2000dec.c: Add functions and modify structs for PPT marker support

2020-03-28 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for the PPT marker. It breaks down the jpeg2000_decode_packet() function to decode headers and data separately. --- libavcodec/jpeg2000dec.c | 200 +-- 1 file changed, 170 insertions(+), 30 deletions(-) diff -

[FFmpeg-devel] [PATCH v5 2/2] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-03-28 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. OpenJPEG implements a similar check. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c i

[FFmpeg-devel] [PATCH v6 1/2] libavcodec/jpeg2000dec.c: Add functions and modify structs for PPT marker support

2020-03-28 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for the PPT marker. It breaks down the jpeg2000_decode_packet() function to decode headers and data separately. --- libavcodec/jpeg2000dec.c | 202 +-- 1 file changed, 172 insertions(+), 30 deletions(-) diff -

[FFmpeg-devel] [PATCH v6 2/2] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-03-28 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. OpenJPEG implements a similar check. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c i

[FFmpeg-devel] [PATCH v7 2/3] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-03-29 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. --- libavcodec/jpeg2000dec.c | 178 +++ 1 file changed, 144 insertions(+), 34 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 4ee20e41b

[FFmpeg-devel] [PATCH v7 3/3] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-03-29 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 71f1245fc1..a319297ae7 100644 --

[FFmpeg-devel] [PATCH v7 1/3] libavcodec/jpeg2000dec.c: Split function and modify structs for PPM marker support

2020-03-29 Thread gautamramk
From: Gautam Ramakrishnan --- libavcodec/jpeg2000dec.c | 48 ++-- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 7103cd6ceb..4ee20e41b1 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavc

[FFmpeg-devel] [PATCH v8 1/3] libavcodec/jpeg2000dec.c: Split function and modify structs for PPM marker support

2020-03-30 Thread gautamramk
From: Gautam Ramakrishnan --- libavcodec/jpeg2000dec.c | 48 ++-- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 7103cd6ceb..9d52969821 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavc

[FFmpeg-devel] [PATCH v8 3/3] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-03-30 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 23e43ff052..d27d753992 100644 --

[FFmpeg-devel] [PATCH v8 2/3] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-03-30 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. --- libavcodec/jpeg2000dec.c | 209 ++- 1 file changed, 162 insertions(+), 47 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 9d5296982

[FFmpeg-devel] [PATCH v9 3/3] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-03-31 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 23e43ff052..d27d753992 100644 --

[FFmpeg-devel] [PATCH v9 2/3] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-03-31 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. --- libavcodec/jpeg2000dec.c | 85 +++- 1 file changed, 76 insertions(+), 9 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 66361fa90a.

[FFmpeg-devel] [PATCH v9 1/3] libavcodec/jpeg2000dec.c: Split function for PPT marker support

2020-03-31 Thread gautamramk
From: Gautam Ramakrishnan This patch splits the jpeg2000_decode_packet() function. --- libavcodec/jpeg2000dec.c | 150 ++- 1 file changed, 116 insertions(+), 34 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 7103cd6ceb..66

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000dec.c: Fix cblk decode error check

2020-04-01 Thread gautamramk
From: Gautam Ramakrishnan bpno becoming negative is not an error. This check has been verified with openjpeg, where the loop ends safely when bpno becomes negative, instead of returning an error. This patch must resolve ticket #5630. --- libavcodec/jpeg2000dec.c | 3 +-- 1 file changed, 1 insert

[FFmpeg-devel] [PATCH v10 2/3] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-04-03 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 02905b9e49..32a09c6d5c 100644 --

[FFmpeg-devel] [PATCH v10 3/3] libavcodec/jpeg2000dec.c: Fix indentation

2020-04-03 Thread gautamramk
From: Gautam Ramakrishnan --- libavcodec/jpeg2000dec.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 32a09c6d5c..36a9e9858a 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -13

[FFmpeg-devel] [PATCH v10 1/3] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-04-03 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. --- libavcodec/jpeg2000dec.c | 88 1 file changed, 79 insertions(+), 9 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 7103cd6ceb.

[FFmpeg-devel] [PATCH v11 3/3] libavcodec/jpeg2000dec.c: Fix indentation

2020-04-04 Thread gautamramk
From: Gautam Ramakrishnan --- libavcodec/jpeg2000dec.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index f2039fa8c1..7033417c65 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -13

[FFmpeg-devel] [PATCH v11 2/3] libavcodec/jpeg2000dec.c: Handle non EOC streams

2020-04-04 Thread gautamramk
From: Gautam Ramakrishnan This patch allows decoding of j2k streams which do not have an EOC marker. --- libavcodec/jpeg2000dec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 01509d62c1..f2039fa8c1 100644 --

[FFmpeg-devel] [PATCH v11 1/3] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-04-04 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. --- libavcodec/jpeg2000dec.c | 88 +++- 1 file changed, 77 insertions(+), 11 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 7103cd6ceb

[FFmpeg-devel] [PATCH v12] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-04-04 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. This patch fixes bug ticket #4610. --- libavcodec/jpeg2000dec.c | 88 +++- 1 file changed, 77 insertions(+), 11 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavc

[FFmpeg-devel] [PATCH v13] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-04-05 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. This patch fixes bug ticket #4610. --- libavcodec/jpeg2000dec.c | 88 +++- 1 file changed, 77 insertions(+), 11 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavc

[FFmpeg-devel] [PATCH v13] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-04-06 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. This patch fixes bug ticket #4610. --- libavcodec/jpeg2000dec.c | 85 ++-- 1 file changed, 74 insertions(+), 11 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavc

[FFmpeg-devel] [PATCH v14] libavcodec/jpeg2000dec.c: Add support for PPT marker

2020-04-07 Thread gautamramk
From: Gautam Ramakrishnan This patch adds functional changes to support the PPT marker. This patch fixes bug ticket #4610. --- libavcodec/jpeg2000dec.c | 91 +++- 1 file changed, 80 insertions(+), 11 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavc

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000dec.c: fix error in cod marker

2020-04-10 Thread gautamramk
From: Gautam Ramakrishnan This patch fixes an error where the COC marker overrides all data of the SPcod field of the COD marker. It must override only one bit of SPcod field. This now allows p0_08.j2k to be decoded correctly (mentioned in #4679). --- libavcodec/jpeg2000dec.c | 3 +++ 1 file cha

[FFmpeg-devel] [PATCH 1/3] libavcodec/jpeg2000: fix cblk decode error check

2020-04-10 Thread gautamramk
From: Gautam Ramakrishnan bpno becoming negative is not an error. This check has been verified with openjpeg, where the loop ends safely when bpno becomes negative, instead of returning an error. This patch must resolve ticket #5630. --- libavcodec/jpeg2000dec.c | 6 +- 1 file changed, 1 ins

[FFmpeg-devel] [PATCH 2/3] libavcodec/jpeg2000dec.c: fix error in cod marker

2020-04-10 Thread gautamramk
From: Gautam Ramakrishnan This patch fixes an error where the COC marker overrides all data of the SPcod field of the COD marker. It must override only one bit of SPcod field. This now allows p0_08.j2k to be decoded correctly (mentioned in #4679). --- libavcodec/jpeg2000dec.c | 3 +++ 1 file cha

[FFmpeg-devel] [PATCH 3/3] libavcodec/jpeg2000: fix precinct coordinate calculation

2020-04-10 Thread gautamramk
From: Gautam Ramakrishnan The calculation of precinct boundaries has been fixed. The precinct boundaries were calculated as an offset to the band boundary, but must instead be calculated as an offset from the reslevel. This patch fixes #4669 and #4679. --- libavcodec/jpeg2000.c | 4 ++-- 1 file

[FFmpeg-devel] [RFC PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-04-18 Thread gautamramk
From: Gautam Ramakrishnan I have attempted to write a JPEG2000 Parser. Need help on testing the code and some tips on how to document this code. The variable names are also a bit hard to understand. Would appreciate some tips. The sample from #7445 seems to get decoded now. --- libavcodec/Makefi

[FFmpeg-devel] [RFC PATCH v2] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-04-19 Thread gautamramk
From: Gautam Ramakrishnan I have attempted to write a JPEG2000 Parser. Need help on testing the code and some tips on how to document this code. The variable names are also a bit hard to understand. Would appreciate some tips. The sample from #7445 seems to get decoded now. Additionally, I have

[FFmpeg-devel] [PATCH 2/2] libavcodec/jpeg2000dec.c: ROI marker support

2020-04-20 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for decoding images with a Region of Interest. Allows decoding samples such as p0_03.j2k. This patch should fix ticket #4681. --- libavcodec/jpeg2000.h| 1 + libavcodec/jpeg2000dec.c | 57 +++- 2 files cha

[FFmpeg-devel] [PATCH 1/2] libavcodec/jpeg2000dec.c: Support for CRG marker

2020-04-20 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for CRG marker. Allows samples such as p0_03.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index af6dcee228..5a7d9e7882 100644

[FFmpeg-devel] [PATCH v2 2/2] libavcodec/jpeg2000dec.c: ROI marker support

2020-04-22 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for decoding images with a Region of Interest. Allows decoding samples such as p0_03.j2k. This patch should fix ticket #4681. --- libavcodec/jpeg2000.h| 1 + libavcodec/jpeg2000dec.c | 67 ++-- 2 files cha

[FFmpeg-devel] [PATCH v2 1/2] libavcodec/jpeg2000dec.c: Support for CRG marker

2020-04-22 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to skip the CRG marker. The CRG marker, is an informational marker. Allows samples such as p0_03.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/jpeg2000dec.c b/libavcod

[FFmpeg-devel] [PATCH v3] libavcodec/jpeg2000dec.c: ROI marker support

2020-04-22 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for decoding images with a Region of Interest. Allows decoding samples such as p0_03.j2k. This patch should fix ticket #4681. --- libavcodec/jpeg2000.h| 1 + libavcodec/jpeg2000dec.c | 66 ++-- 2 files cha

[FFmpeg-devel] [RFC PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-05-28 Thread gautamramk
From: Gautam Ramakrishnan I have attempted to write a JPEG2000 Parser. Have tested by generating a file containing 14 frames, as mentioned by Micheal. Have also tried testing with various packet sizes by setting -frame_size option. Need feedback on the code and on further testing. --- libavcodec

[FFmpeg-devel] [RFC PATCH 2/2] fate/video.mak: fate test for jpeg2000 parser

2020-06-04 Thread gautamramk
From: Gautam Ramakrishnan This test generates a rawvideo video of jpeg2000 frames using lavfi testsrc2 as input. The reference file as 25 frames. --- tests/fate-run.sh | 4 +++- tests/fate/video.mak | 3 +++ tests/ref/fate/jpeg2000-parser | 32 +++

[FFmpeg-devel] [RFC PATCH 1/2] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-06-04 Thread gautamramk
From: Gautam Ramakrishnan I have attempted to write a JPEG2000 Parser. Have tested by generating a file containing 14 frames, as mentioned by Micheal. Have also tried testing with various packet sizes by setting -frame_size option. --- libavcodec/Makefile | 1 + libavcodec/jpeg2000_pa

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000_parser: Add jpeg2000 parser

2020-06-05 Thread gautamramk
From: Gautam Ramakrishnan I have attempted to write a JPEG2000 Parser. Have tested by generating a file containing 14 frames, as mentioned by Micheal. Have also tried testing with various packet sizes by setting -frame_size option. Additionally, fixed a few formatting issues as pointed out by Mic

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000dec: Support for PPM marker

2020-06-08 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for PPM marker for JPEG2000 decoder. It allows the sample p1_03.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 78 ++-- 1 file changed, 75 insertions(+), 3 deletions(-) diff --git a/libavcodec/jpeg2000dec.c

[FFmpeg-devel] [RFC PATCH] libavcodec/libopenjpeg: pix fmt selection change

2020-06-09 Thread gautamramk
From: Gautam Ramakrishnan This patch makes selection of pix_fmt similar to that in the native decoder. This makes samples such as p0_05.j2k and p1_03.j2k decodable by libopenjpeg. --- libavcodec/libopenjpegdec.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff -

[FFmpeg-devel] [RFC PATCH] libavcodec/jpeg2000: Make corrections jpeg2000 decoder

2020-06-18 Thread gautamramk
From: Gautam Ramakrishnan This is with reference to my previous email on the mailing list with subject: "query on pixel formats". I wish to cleanup some errors in the decoder code. These changes would allow the samples p1_01.j2k and p1_07.j2k to be decoded. However, I am facing issues with pixel

[FFmpeg-devel] [PATCH 1/5] libavcodec/jpeg2000.c: Precinct size check removed

2020-06-21 Thread gautamramk
From: Gautam Ramakrishnan This patch removes a check which throws an error if the log2 precinct width/height is 0. The standard allows the first component to have 0 as the log2 width/height. --- libavcodec/jpeg2000.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/jpeg2000.c b/l

[FFmpeg-devel] [PATCH 4/5] libavcodec/jpeg2000dec.c: Enable image offsets

2020-06-21 Thread gautamramk
From: Gautam Ramakrishnan This patch enables support for image offsets. --- libavcodec/jpeg2000dec.c | 4 1 file changed, 4 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 546a646668..c8c89803ac 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg

[FFmpeg-devel] [PATCH 2/5] libavcodec/jpeg2000dec.c: Modify image dimensions

2020-06-21 Thread gautamramk
From: Gautam Ramakrishnan Reduce image size of the image if all components have a non zero sample separation. This is to replicate the output of opj_decompress. --- libavcodec/jpeg2000dec.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/libavcodec/jpeg20

[FFmpeg-devel] [PATCH 3/5] libavcodec/jpeg2000dec.c Fixed WRITE_FRAME and tile co-ordinates:

2020-06-21 Thread gautamramk
From: Gautam Ramakrishnan libopenjpeg2000 uses ceiling division while dividing tile co-ordinates with the sample separation. Also, corrections were made to the WRITE_FRAME macro. --- libavcodec/jpeg2000dec.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff -

[FFmpeg-devel] [PATCH 5/5] libavcodec/jpeg2000dec.c: Remove log2_chroma check in pixel format selection

2020-06-21 Thread gautamramk
From: Gautam Ramakrishnan The log2_chroma_wh is derived from the sample separations of the codestream if the file is a j2k codestream. Not sure if sample separation is same is subsampling and whether using sample separation values from the codestream to determine pixel format. --- libavcodec/jpe

[FFmpeg-devel] [PATCH] libavcodec/pgx: Added pgx decoder

2020-06-24 Thread gautamramk
From: Gautam Ramakrishnan This patch support to read and decode pgx files. --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_id.h| 1 + libavcodec/pgx.h | 38 + libavcodec/pgxdec.c | 177 +++ l

[FFmpeg-devel] [PATCH] libavcodec/pgx: Added pgx decoder

2020-06-24 Thread gautamramk
From: Gautam Ramakrishnan This patch support to read and decode pgx files. --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_id.h| 1 + libavcodec/pgx.h | 38 + libavcodec/pgxdec.c | 176 +++ l

[FFmpeg-devel] [RFC PATCH 2/2] ilibavformat/img2dec: Added pgx demuxer

2020-06-26 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux the pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 10 ++ libavformat/version.h| 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/a

[FFmpeg-devel] [RFC PATCH 1/2] libavcodec/pgxdec: Add PGX decoder

2020-06-26 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 184 ++

[FFmpeg-devel] [PATCH 2/2] libavformat/img2dec: Added pgx demuxer

2020-06-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 10 ++ libavformat/version.h| 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allfo

[FFmpeg-devel] [PATCH 1/2] libavcodec/pgxdec: Add PGX decoder

2020-06-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 184 ++

[FFmpeg-devel] [PATCH v2 1/2] libavcodec/pgxdec: Add PGX decoder

2020-06-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 199 ++

[FFmpeg-devel] [PATCH v2 2/2] libavformat/img2dec: Added pgx demuxer

2020-06-27 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 10 ++ libavformat/version.h| 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allfo

[FFmpeg-devel] [PATCH v3 2/2] libavformat/img2dec: Added pgx demuxer

2020-06-28 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 10 ++ libavformat/version.h| 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allfo

[FFmpeg-devel] [PATCH v3 1/2] libavcodec/pgxdec: Add PGX decoder

2020-06-28 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 205 ++

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000.c: Precinct size check removed

2020-06-29 Thread gautamramk
From: Gautam Ramakrishnan This patch removes a check which throws an error if the log2 precinct width/height is 0. The standard allows the first component to have 0 as the log2 width/height. However, to ensure proper intialization of coding style, an extra check has been added. --- libavcodec/jp

[FFmpeg-devel] [PATCH v4 2/2] libavformat/img2dec: Added pgx demuxer

2020-06-29 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 9 + libavformat/version.h| 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allformat

[FFmpeg-devel] [PATCH v5] libavformat/img2dec: Added pgx demuxer

2020-06-29 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 9 + libavformat/version.h| 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allformat

[FFmpeg-devel] [PATCH v4 1/2] libavcodec/pgxdec: Add PGX decoder

2020-06-29 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 199 ++

[FFmpeg-devel] [PATCH] doc/ffmpeg: Fix bug #8204

2020-02-07 Thread gautamramk
From: Gautam Ramakrishnan Change the documentation of -hwaccels as mentioned in bug #8204 Signed-off-by: Gautam Ramakrishnan --- doc/ffmpeg.texi | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 92337d..c700aa2aee 100644 --- a/doc/ffmpeg.texi +++ b

[FFmpeg-devel] [FFmpeg][PATCH] libswscale/utils.c: Fix bug #8255

2020-02-09 Thread gautamramk
From: Gautam Ramakrishnan Bug #8255 points out a double free error in libwscale/utils.c file. The double free is because the pointer to cascaded_context of an sw_context is not set to NULL after freeing it. When the sw_context is later freed, sws_freeContext is called on the cascaded_context, cau

[FFmpeg-devel] [PATCH] libavformat/utils.c: Fixed URL parsing

2020-02-12 Thread gautamramk
From: Gautam Ramakrishnan This commit fixes bug #8466 wherein URLs with query string not preceeded by the '/' symbol in a URL was failing to get parsed. The av_url_split() function now checks if the path starts with a '/' and prepends it if it does not. --- libavformat/utils.c | 7 +++ 1 fil

[FFmpeg-devel] [PATCH v6 2/2] libavformat/img2dec: Added pgx demuxer

2020-06-30 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 9 + libavformat/version.h| 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allformat

[FFmpeg-devel] [PATCH v6 1/2] libavcodec/pgxdec: Add PGX decoder

2020-06-30 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 199 ++

[FFmpeg-devel] [PATCH 2/2] libavcodec/jpeg2000dec.c: Enable image offsets

2020-07-01 Thread gautamramk
From: Gautam Ramakrishnan This patch enables support for image offsets. --- libavcodec/jpeg2000dec.c | 4 1 file changed, 4 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 86f9170723..f91406ab9e 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg

[FFmpeg-devel] [PATCH 1/2] libavcodec/jpeg2000dec: Enhance pix fmt selection

2020-07-01 Thread gautamramk
From: Gautam Ramakrishnan This patch assigns default pix format values when a match does not take place. --- libavcodec/jpeg2000dec.c | 9 + 1 file changed, 9 insertions(+) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 3f4a9ef96c..86f9170723 100644 --- a/libavco

[FFmpeg-devel] [PATCH v7 2/2] libavformat/img2dec: Added pgx demuxer

2020-07-02 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support to demux pgx file format. --- libavformat/allformats.c | 1 + libavformat/img2dec.c| 9 + libavformat/version.h| 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/allformats.c b/libavformat/allformat

[FFmpeg-devel] [PATCH v7 1/2] libavcodec/pgxdec: Add PGX decoder

2020-07-02 Thread gautamramk
From: Gautam Ramakrishnan This patch adds a pgx decoder. --- Changelog | 1 + doc/general.texi| 2 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/codec_desc.c | 7 ++ libavcodec/codec_id.h | 1 + libavcodec/pgxdec.c | 169 ++

[FFmpeg-devel] [PATCH 2/2] libavcodec/jpeg2000dec.c: Enable image offsets

2020-07-04 Thread gautamramk
From: Gautam Ramakrishnan This patch enables support for image offsets. --- libavcodec/jpeg2000dec.c | 4 1 file changed, 4 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index f62553c874..18a933077e 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg

[FFmpeg-devel] [PATCH 1/2] libavcodec/jpeg2000dec: Enhance pix fmt selection

2020-07-04 Thread gautamramk
From: Gautam Ramakrishnan This patch assigns default pix format values when a match does not take place. --- libavcodec/jpeg2000dec.c | 12 1 file changed, 12 insertions(+) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 3f4a9ef96c..f62553c874 100644 --- a/li

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000dec: Fix RPCL progression order

2020-07-08 Thread gautamramk
From: Gautam Ramakrishnan This patch fixes a check in the RPCL progression order, making it similar to the openjpeg implementation. --- libavcodec/jpeg2000dec.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000

[FFmpeg-devel] [PATCH] libavcodec/jpeg2000dec: Fix RPCL progression order

2020-07-08 Thread gautamramk
From: Gautam Ramakrishnan This patch fixes a check in the RPCL progression order, tested on p1_07.j2k. --- libavcodec/jpeg2000dec.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 18a933077e..3ea93

[FFmpeg-devel] [PATCH 1/4] libavcodec/jpeg2000dec : Prevent overriding SOP marker bit

2020-07-13 Thread gautamramk
From: Gautam Ramakrishnan Currently, the COC marker overrides the SOP marker bit. However, only the COD marker may set this value. This patch fixes this bug. --- libavcodec/jpeg2000dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/

[FFmpeg-devel] [PATCH 4/4] libavcodec/jpeg2000dec: Support for PPM marker

2020-07-13 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for PPM marker for JPEG2000 decoder. It allows the samples p1_03.j2k and p1_05.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 107 +++ 1 file changed, 97 insertions(+), 10 deletions(-) diff --git a/libavcod

[FFmpeg-devel] [PATCH 2/4] libavcodec/jpeg2000 Fix PCRL Progression Order check

2020-07-13 Thread gautamramk
From: Gautam Ramakrishnan The PCRL progression checks were incomplete. This patch modifes completes the check. Tested on p1_05.j2k. --- libavcodec/jpeg2000dec.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg

[FFmpeg-devel] [PATCH 3/4] libavcodec/jpeg2000 Fix RPCL Progression order check

2020-07-13 Thread gautamramk
From: Gautam Ramakrishnan The RPCL progression order check was incomplete. This patch completes the check. Tested on p1_07.j2k. --- libavcodec/jpeg2000dec.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c

[FFmpeg-devel] [PATCH v2 3/4] libavcodec/jpeg2000 Fix RPCL Progression order check

2020-07-14 Thread gautamramk
From: Gautam Ramakrishnan The RPCL progression order check was incomplete. This patch completes the check. Tested on p1_07.j2k. --- libavcodec/jpeg2000dec.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c

[FFmpeg-devel] [PATCH v2 2/4] libavcodec/jpeg2000 Fix PCRL Progression Order check

2020-07-14 Thread gautamramk
From: Gautam Ramakrishnan The PCRL progression checks were incomplete. This patch modifes completes the check. Tested on p1_05.j2k. --- libavcodec/jpeg2000dec.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg

[FFmpeg-devel] [PATCH v2 1/4] libavcodec/jpeg2000dec : Prevent overriding SOP marker bit

2020-07-14 Thread gautamramk
From: Gautam Ramakrishnan Currently, the COC marker overrides the SOP marker bit. However, only the COD marker may set this value. This patch fixes this bug. --- libavcodec/jpeg2000dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/

[FFmpeg-devel] [PATCH v2 4/4] libavcodec/jpeg2000dec: Support for PPM marker

2020-07-14 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for PPM marker for JPEG2000 decoder. It allows the samples p1_03.j2k and p1_05.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 111 +++ 1 file changed, 101 insertions(+), 10 deletions(-) diff --git a/libavco

[FFmpeg-devel] [PATCH 2/2] libavcodec/jpeg2000dec: Support for PPM marker

2020-07-18 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for PPM marker for JPEG2000 decoder. It allows the samples p1_03.j2k and p1_05.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 111 +++ 1 file changed, 101 insertions(+), 10 deletions(-) diff --git a/libavco

[FFmpeg-devel] [PATCH 1/2] libavcodec/jpeg2000dec: Fix codeblock decode check

2020-07-18 Thread gautamramk
From: Gautam Ramakrishnan The codeblock decoder checks whether the mqc decoder has decoded the right number of bytes. However, this check does not account for the fact that the mqc encoder's flush routine adds 2 bytes of data which does not have to be read by the decoder. The check is modified to

[FFmpeg-devel] [PATCH v2 2/3] libavcodec/jpeg2000dec: Support for Parameterless Markers

2020-07-18 Thread gautamramk
From: Gautam Ramakrishnan The JPEG2000 standard reserves marker values 0xFF30 to 0xFF3F to be used as parameterless markers. This patch adds support to decode codestream with such markers. This allows decoding of p0_02.j2k. --- libavcodec/jpeg2000dec.c | 3 ++- 1 file changed, 2 insertions(+), 1

[FFmpeg-devel] [PATCH v2 1/3] libavcodec/jpeg2000dec: Fix codeblock decode check

2020-07-18 Thread gautamramk
From: Gautam Ramakrishnan The codeblock decoder checks whether the mqc decoder has decoded the right number of bytes. However, this check does not account for the fact that the mqc encoder's flush routine adds 2 bytes of data which does not have to be read by the decoder. The check is modified to

[FFmpeg-devel] [PATCH v2 3/3] libavcodec/jpeg2000dec: Support for PPM marker

2020-07-18 Thread gautamramk
From: Gautam Ramakrishnan This patch adds support for PPM marker for JPEG2000 decoder. It allows the samples p1_03.j2k and p1_05.j2k to be decoded. --- libavcodec/jpeg2000dec.c | 111 +++ 1 file changed, 101 insertions(+), 10 deletions(-) diff --git a/libavco

  1   2   >