Re: [FFmpeg-devel] [PATCH v2 3/3] libavcodec/qsvdec: using suggested num to set init_pool_size

2022-04-02 Thread Xiang, Haihao
On Mon, 2022-03-28 at 02:26 +, Xiang, Haihao wrote: > On Fri, 2022-03-18 at 07:40 +, Soft Works wrote: > > > -Original Message- > > > From: ffmpeg-devel On Behalf Of > > > Wenbin Chen > > > Sent: Friday, March 18, 2022 7:25 AM > > > To: ffmpeg-devel@ffmpeg.org > > > Subject: [FFmpe

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/qsvdec: Add more pixel format support to qsvdec

2022-04-02 Thread Xiang, Haihao
On Wed, 2022-03-30 at 14:43 +0800, Wenbin Chen wrote: > Qsv decoder only supports directly output nv12 and p010 to system > memory. For other format, we need to download frame from qsv format > to system memory. Now add other supported format to qsvdec. > > Signed-off-by: Wenbin Chen > --- > lib

Re: [FFmpeg-devel] [PATCH 1/2] libavcodec/qsvdec: Add more pixel format support to qsvdec

2022-04-02 Thread Chen, Wenbin
> On Wed, 2022-03-30 at 14:43 +0800, Wenbin Chen wrote: > > Qsv decoder only supports directly output nv12 and p010 to system > > memory. For other format, we need to download frame from qsv format > > to system memory. Now add other supported format to qsvdec. > > > > Signed-off-by: Wenbin Chen >

Re: [FFmpeg-devel] Request For Comment no Matroska specs

2022-04-02 Thread Martijn van Beurden
Op vr 1 apr. 2022 14:53 schreef Steve Lhomme : > On 2022-04-01 14:33, Steve Lhomme wrote: > > Hi ffmmpeg developers, > > > > As you may know, we are working hard on the Matroska specifications at > > the IETF. We already got EBML as an RFC [1]. We are in the process of > > finalizing the main Matr

[FFmpeg-devel] [PATCH v2 1/2] libavcodec/qsvdec: Add more pixel format support to qsvdec

2022-04-02 Thread Wenbin Chen
Qsv decoder only supports directly output nv12 and p010 to system memory. For other format, we need to download frame from qsv format to system memory. Now add other supported format to qsvdec. Signed-off-by: Wenbin Chen --- libavcodec/qsv.c | 36 li

[FFmpeg-devel] [PATCH v2 2/2] libavcodec/qsvenc: Add more pixel format support to qsvenc

2022-04-02 Thread Wenbin Chen
Qsv encoder only support input P010 and nv12 format directly from system memory. For other format, we need to upload frame to device memory and input qsv format to encoder. Now add other system memory format support to qsv encoder. Signed-off-by: Wenbin Chen --- libavcodec/qsvenc.c | 30 +++

[FFmpeg-devel] [PATCH 1/2] avfilter/src_movie: switch to activate()

2022-04-02 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/src_movie.c | 84 - 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 711854c23c..8c7ea5686a 100644 --- a/libavfilter/src_movie.c +++ b/libavfi

[FFmpeg-devel] [PATCH 2/2] avfilter/src_movie: add option to set decoding thread type

2022-04-02 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi| 3 +++ libavfilter/src_movie.c | 11 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 1d56d24819..af332041e8 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -287

[FFmpeg-devel] [PATCH v2] libavutil/hwcontext_qsv: Align width and heigh when download qsv frame

2022-04-02 Thread Wenbin Chen
The width and height for qsv frame to download need to be aligned with 16. Add the alignment operation. Now the following command works: ffmpeg -hwaccel qsv -f rawvideo -s 1920x1080 -pix_fmt yuv420p -i \ input.yuv -vf "hwupload=extra_hw_frames=16,format=qsv,hwdownload, \ format=nv12" -f null - Sig

[FFmpeg-devel] [PATCH 1/2] avfilter/src_movie: switch to activate()

2022-04-02 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/src_movie.c | 90 + 1 file changed, 56 insertions(+), 34 deletions(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 711854c23c..bc7b0d37af 100644 --- a/libavfilter/src_movie.c +++ b/libavfi

[FFmpeg-devel] [PATCH 2/2] avfilter/src_movie: add option to set decoding thread type

2022-04-02 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi| 3 +++ libavfilter/src_movie.c | 11 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 636c80dbff..a13977edd8 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -293

[FFmpeg-devel] [PATCH v12 0/4] Jpeg XL Patch Set

2022-04-02 Thread Leo Izen
This patchset adds the Jpeg XL Image format as well as a decoder and encoder for it based on the external reference implementation library, libjxl. Lynne said she plans to add a proper parser in the near future, to provide features this (removed) one did not, e.g. finding frame boundaries and box

[FFmpeg-devel] [PATCH v12 1/4] avcodec/jpegxl: add Jpeg XL image codec

2022-04-02 Thread Leo Izen
This commit adds support to libavcodec to read encoded Jpeg XL images. Jpeg XL is intended to be an extended-life replacement to legacy mjpeg. --- MAINTAINERS | 1 + libavcodec/codec_desc.c | 9 + libavcodec/codec_id.h | 1 + libavcodec/version.h| 2 +- 4 files changed, 1

[FFmpeg-devel] [PATCH v12 2/4] avcodec/libjxl: add Jpeg XL decoding via libjxl

2022-04-02 Thread Leo Izen
This commit adds decoding support to libavcodec for Jpeg XL images via the external library libjxl. --- MAINTAINERS | 1 + configure | 5 + doc/general_contents.texi | 7 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/libjxl.c

[FFmpeg-devel] [PATCH v12 3/4] avcodec/libjxl: add Jpeg XL encoding via libjxl

2022-04-02 Thread Leo Izen
This commit adds encoding support to libavcodec for Jpeg XL images via the external library libjxl. --- configure | 3 +- libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 + libavcodec/libjxlenc.c | 379 + 4 files changed, 383 inse

[FFmpeg-devel] [PATCH v12 4/4] avformat/image2: add Jpeg XL as image2 format

2022-04-02 Thread Leo Izen
This commit adds support to libavformat for muxing and demuxing Jpeg XL images as image2 streams. --- MAINTAINERS| 1 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/img2.c | 1 + libavformat/img2dec.c | 18 ++ libavformat/img

[FFmpeg-devel] [PATCH 1/2] avformat/ape: more bits in size for less overflows

2022-04-02 Thread Michael Niedermayer
Fixes: signed integer overflow: 2147483647 + 3 cannot be represented in type 'int' Fixes: 46184/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-4678059519770624 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nie

[FFmpeg-devel] [PATCH 2/2] avcodec/binkaudio: Clear state on EAGAIN

2022-04-02 Thread Michael Niedermayer
Its not supported to maintain a frame as receive_frame() argument over multiple calls Fixes: store to null pointer of type 'FFTSample' (aka 'float') Fixes: 46231/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINKAUDIO_DCT_fuzzer-6276566037954560 Found-by: continuous fuzzing process https://g