[FFmpeg-devel] [PATCH] Added support for HEVC in V4L2 avdevice library. Validated with: LD_PRELOAD=$HOME/lib/libavdevice.so ffplay -f video4linux2 -input_format hevc /dev/video0

2022-12-02 Thread Wlodzimierz Lipert
--- libavdevice/v4l2-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c index b5b4448a31..353e83efdd 100644 --- a/libavdevice/v4l2-common.c +++ b/libavdevice/v4l2-common.c @@ -55,6 +55,9 @@ const struct fmt_map ff_fmt_conversion_ta

[FFmpeg-devel] [PATCH] avdevice: Added support for HEVC (codec/pixfmt) in V4L2.

2022-12-02 Thread Wlodzimierz Lipert
--- libavdevice/v4l2-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c index b5b4448a31..353e83efdd 100644 --- a/libavdevice/v4l2-common.c +++ b/libavdevice/v4l2-common.c @@ -55,6 +55,9 @@ const struct fmt_map ff_fmt_conversion_ta

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/wavpack: Fix overflow in k=31

2022-12-02 Thread Paul B Mahol
On Thu, Dec 1, 2022 at 8:56 PM Michael Niedermayer wrote: > On Wed, Nov 30, 2022 at 09:39:44PM +0100, Paul B Mahol wrote: > > On 9/11/22, Michael Niedermayer wrote: > > > Untested with "non fuzzed" samples as i have no such file > > > > > > > Then create it. > > the official WavPack-5.6.0 decode

[FFmpeg-devel] [PATCH 1/2] avcodec/jpeg2000dec: Move decoder structs to header files

2022-12-02 Thread etemesicaleb
From: caleb --- libavcodec/jpeg2000dec.c | 96 + libavcodec/jpeg2000dec.h | 126 +++ 2 files changed, 127 insertions(+), 95 deletions(-) create mode 100644 libavcodec/jpeg2000dec.h diff --git a/libavcodec/jpeg2000dec.c b/libavcod

[FFmpeg-devel] [PATCH 2/2] avcodec/jpeg2000dec: Add support for HTJ2K decoding.

2022-12-02 Thread etemesicaleb
From: caleb This patch adds support for HTJ2K decoding in FFMPEG. This is a revised patch with suggested changes from earlier and fixes some bugs that were in the first version. The paper describing HTJ2K can be found at https://htj2k.com/wp-content/uploads/white-paper.pdf --- libavcodec/Mak

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/jpeg2000dec: Move decoder structs to header files

2022-12-02 Thread Tomas Härdin
fre 2022-12-02 klockan 21:10 +0300 skrev etemesica...@gmail.com: > From: caleb Speak of the devil :) > > --- >  libavcodec/jpeg2000dec.c |  96 + >  libavcodec/jpeg2000dec.h | 126 > +++ >  2 files changed, 127 insertions(+), 95 dele

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jpeg2000dec: Add support for HTJ2K decoding.

2022-12-02 Thread Tomas Härdin
fre 2022-12-02 klockan 21:11 +0300 skrev etemesica...@gmail.com: > > +/** > + *  Given a precomputed c, checks whether n % d == 0 > + */ > +static av_always_inline uint32_t is_divisible(uint32_t n, uint64_t > c) > +{ > +    return n * c <= c - 1; > +} This looks like something that could go in la

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jpeg2000dec: Add support for HTJ2K decoding.

2022-12-02 Thread Caleb Etemesi
Hi For bit-reading, 1. The spec has some chunks read from back to front,I didn't see that functionality present in get_bits.h(which I assumed contained the bit reading API). 2. It doesn't handle unstuffing correctly. 3. Doesn't handle EOB correctly, the spec has some arrays when there are no more

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/jpeg2000dec: Add support for HTJ2K decoding.

2022-12-02 Thread Caleb Etemesi
Also thanks for reviewing On Fri, Dec 2, 2022 at 10:34 PM Caleb Etemesi wrote: > Hi > > For bit-reading, > 1. The spec has some chunks read from back to front,I didn't see that > functionality present in get_bits.h(which I assumed contained the bit > reading API). > 2. It doesn't handle unstuffi

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/wavpack: Fix overflow in k=31

2022-12-02 Thread Michael Niedermayer
On Fri, Dec 02, 2022 at 05:14:58PM +0100, Paul B Mahol wrote: > On Thu, Dec 1, 2022 at 8:56 PM Michael Niedermayer > wrote: > > > On Wed, Nov 30, 2022 at 09:39:44PM +0100, Paul B Mahol wrote: > > > On 9/11/22, Michael Niedermayer wrote: > > > > Untested with "non fuzzed" samples as i have no suc

Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: don't force a default value for deprecated options

2022-12-02 Thread Christopher Degawa
On Tue, Nov 29, 2022 at 4:38 PM James Almer wrote: > Stick to the library's default value instead. > > Should address AOMediaCodec/SVT-AV1 issue #2011. > > Signed-off-by: James Almer > --- > libavcodec/libsvtav1.c | 25 +++-- > 1 file changed, 15 insertions(+), 10 deletions(

Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: don't force a default value for deprecated options

2022-12-02 Thread James Almer
On 12/2/2022 8:51 PM, Christopher Degawa wrote: On Tue, Nov 29, 2022 at 4:38 PM James Almer wrote: Stick to the library's default value instead. Should address AOMediaCodec/SVT-AV1 issue #2011. Signed-off-by: James Almer --- libavcodec/libsvtav1.c | 25 +++-- 1 file c