Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Paul B Mahol
Renamed to headers, will apply right now! ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- configure |1 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/bink2.c | 481 + libavcodec/bink2f.h | 1236 libavcodec/bink2g.h | 1481 +

Re: [FFmpeg-devel] [PATCH 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-01 Thread Soft Works
> -Original Message- > From: Xiang, Haihao > Sent: Wednesday, June 1, 2022 7:16 AM > To: ffmpeg-devel@ffmpeg.org > Cc: softwo...@hotmail.com > Subject: Re: [FFmpeg-devel] [PATCH 6/6] avcodec/qsvdec: Implement SEI > parsing for QSV decoders > > On Thu, 2022-05-26 at 08:08 +, softwor

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Andreas Rheinhardt
Paul B Mahol: > Renamed to headers, will apply right now! In this case you will likely either add these headers to SKIPHEADERS or add the necessary headers to them to make them standalone. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Paul B Mahol
On Wed, Jun 1, 2022 at 10:57 AM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Paul B Mahol: > > Renamed to headers, will apply right now! > > In this case you will likely either add these headers to SKIPHEADERS or > add the necessary headers to them to make them standalone. > > Why

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Andreas Rheinhardt
Paul B Mahol: > On Wed, Jun 1, 2022 at 10:57 AM Andreas Rheinhardt < > andreas.rheinha...@outlook.com> wrote: > >> Paul B Mahol: >>> Renamed to headers, will apply right now! >> >> In this case you will likely either add these headers to SKIPHEADERS or >> add the necessary headers to them to make

[FFmpeg-devel] [PATCH v2 4/6] avcodec/hevcdec: make set_side_data() accessible

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/hevcdec.c | 117 +-- libavcodec/hevcdec.h | 9 2 files changed, 67 insertions(+), 59 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index f782ea6394..9e9bb48202 100644

[FFmpeg-devel] [PATCH v2 0/6] Implement SEI parsing for QSV decoders

2022-06-01 Thread ffmpegagent
Missing SEI information has always been a major drawback when using the QSV decoders. I used to think that there's no chance to get at the data without explicit implementation from the MSDK side (or doing something weird like parsing in parallel). It turned out that there's a hardly known api metho

[FFmpeg-devel] [PATCH v2 5/6] avcodec/h264dec: make h264_export_frame_props() accessible

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/h264_slice.c | 98 + libavcodec/h264dec.h| 2 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d56722a5c2..f2a4c1c657 10

[FFmpeg-devel] [PATCH v2 1/6] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 2 +- 4 files changed, 78 insertions(+), 27 de

[FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/qsvdec.c | 234 1 file changed, 234 insertions(+) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 5fc5bed4c8..3fc5dc3f20 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c

[FFmpeg-devel] [PATCH v2 2/6] avcodec/vpp_qsv: Copy side data from input to output frame

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 954f882637..f4bf628073 100644 --- a/lib

[FFmpeg-devel] [PATCH v2 3/6] avcodec/mpeg12dec: make mpeg_decode_user_data() accessible

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/mpeg12.h| 28 libavcodec/mpeg12dec.c | 40 +--- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index e0406b32d

Re: [FFmpeg-devel] [PATCH] swscale/x86/yuv_2_rgb: fix access to memory past the frame data in yuv to rgb conversion

2022-06-01 Thread Anton Khirnov
Quoting Vardan Margaryan (2022-05-23 18:06:16) > Y, U, V data is loaded at the end of the current iteration for the next > iteration. > It results in memory access past the frame data on the last iteration > (that data is never used after the loading). > > So load data at the start of the iterat

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-06-01 11:03:28) > "make checkheaders" does the latter. It is not part of the standard fate Any reason it isn't? -- Anton Khirnov ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser

2022-06-01 Thread Anton Khirnov
Quoting Paul B Mahol (2022-05-31 13:32:36) > +const FFCodec ff_qoi_decoder = { > +.p.name = "qoi", > +.p.long_name= NULL_IF_CONFIG_SMALL("QOI (Quite OK Image format) > image"), > +.p.type = AVMEDIA_TYPE_VIDEO, > +.p.id = AV_CODEC_ID_QOI, > +.p.capa

Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-01 Thread Anton Khirnov
Quoting Tomas Härdin (2022-05-31 11:58:39) > > > From fedd7f9ae2c691a25c37be935d7547be61d46017 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= > Date: Fri, 20 May 2022 11:38:25 +0200 > Subject: [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips > > --- > libavcodec/jp

[FFmpeg-devel] [PATCH] MAINTAINERS: add myself as maintainer for LoongArch.

2022-06-01 Thread Shiyou Yin
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 46723972dc..274fc89203 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -546,6 +546,7 @@ Operating systems / CPU architectures Alpha Falk Hueffner MIPS

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser

2022-06-01 Thread Paul B Mahol
On Wed, Jun 1, 2022 at 11:51 AM Anton Khirnov wrote: > Quoting Paul B Mahol (2022-05-31 13:32:36) > > +const FFCodec ff_qoi_decoder = { > > +.p.name = "qoi", > > +.p.long_name= NULL_IF_CONFIG_SMALL("QOI (Quite OK Image format) > image"), > > +.p.type = AVMEDIA_TYPE

Re: [FFmpeg-devel] [PATCH] hevc: If hwccel avoid creation/use of s/w only arrays

2022-06-01 Thread Anton Khirnov
Quoting John Cox (2022-05-27 15:51:17) > Hwaccel doesn't use any of the block strength, pcm, slice address, etc. > arrays which can be >100k each for 4k video. Patch to avoid initial > allocation and zeroing at the start of every frame. On a Pi4 the memsets > can use 10% CPU on 4k 60Hz decode, this

Re: [FFmpeg-devel] [PATCH 1/2] avutil/opt: Alpha workaround

2022-06-01 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-05-30 21:09:10) > alpha-linux-gnu-gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 with qemu-alpha > version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.39) > trigger a FPE on the DBL_MAX * 9 operation > > Iam not 100% sure why, but if i mess with mfp-trap-mode the compi

[FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2022-06-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- configure |1 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/bink2.c | 381 ++ libavcodec/bink2.h | 135 libavcodec/bink2f.h | 1240 libavcodec/bink2g.

Re: [FFmpeg-devel] [PATCH 2/3] Provided support for MPEG-5 EVC (Essential Video Coding) codec

2022-06-01 Thread Andreas Rheinhardt
Dawid Kozinski: > - Added xeve encoder wrapper > - Added xevd dencoder wrapper > - Added documentation for xeve and xevd wrappers > - Added parser for EVC format > - Changes in project configuration file and libavcodec Makefile > > Signed-off-by: Dawid Kozinski > --- > configure

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as maintainer for LoongArch.

2022-06-01 Thread Steven Liu
> 在 2022年6月1日,18:21,Shiyou Yin 写道: > > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 46723972dc..274fc89203 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -546,6 +546,7 @@ Operating systems / CPU architectures > > Alpha

Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-01 Thread Tomas Härdin
ons 2022-06-01 klockan 11:59 +0200 skrev Anton Khirnov: > Quoting Tomas Härdin (2022-05-31 11:58:39) > > > > > > From fedd7f9ae2c691a25c37be935d7547be61d46017 Mon Sep 17 00:00:00 > > 2001 > > From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= > > Date: Fri, 20 May 2022 11:38:25 +0200 > > Subject: [PATCH 1/8]

Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-01 Thread Anton Khirnov
Quoting Tomas Härdin (2022-06-01 14:34:57) > ons 2022-06-01 klockan 11:59 +0200 skrev Anton Khirnov: > > Quoting Tomas Härdin (2022-05-31 11:58:39) > > > > > > > > > From fedd7f9ae2c691a25c37be935d7547be61d46017 Mon Sep 17 00:00:00 > > > 2001 > > > From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= > > > Dat

Re: [FFmpeg-devel] [PATCH] avutil/avframe: fix channel layout checks in av_frame_copy()

2022-06-01 Thread James Almer
On 5/25/2022 2:15 PM, James Almer wrote: Normally, both the source and dest frame would have only the old API fields set, only the new API fields set, or both set. But in some cases, like when calling av_frame_ref() using a non reference counted source frame where only the old channel layout API

Re: [FFmpeg-devel] lavc/libopenjpegdec: Enable slice threading

2022-06-01 Thread Tomas Härdin
I'm working on a new patchset for this and non-strict mode. Slice threading requires openjpeg >= 2.2.0 while configure only demands 2.1.0. /Tomas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To

[FFmpeg-devel] [PATCH v1] lavc/vaapi_hevc: fill rext luma/chroma offset in the right way

2022-06-01 Thread Fei Wang
From: Xu Guangxin For range extension, the luma/chroma offset is larger than 8 bits, we need fill the 16 bits version. Signed-off-by: Xu Guangxin Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 53 - 1 file changed, 37 in

Re: [FFmpeg-devel] [PATCH] Add YCOCG colorspace to input arguments of vf_colorspace.

2022-06-01 Thread Vittorio Giovara
On Tue, May 31, 2022 at 7:17 PM Ronald S. Bultje wrote: > Hi, > > On Thu, May 19, 2022 at 4:42 PM Mohammad Izadi < > izadi-at-google@ffmpeg.org> wrote: > > > ffmpeg support YCOCG (YCOCG=YCGCO). However, vf_colorspace is only > support > > YCGCO as input. Added YCOCG to the inputs. > > --- > >

Re: [FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: Add min/max QP control options for I/P/B frame

2022-06-01 Thread Xiang, Haihao
On Wed, 2022-05-25 at 21:13 +0800, Wenbin Chen wrote: > From: Yue Heng > > To do more accurate QP control, add min/max QP control on I/P/B frame > separately to qsv encoder. qmax and qmin still work but newly-added > options have higher priority. > > Signed-off-by: Yue Heng > Signed-off-by: Wen

Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 11:58:39AM +0200, Tomas Härdin wrote: > > jpeg2000_parser.c | 11 +++ > 1 file changed, 11 insertions(+) > 634546fb5a0eb281eea87ad7471c503f5bc9e8ab > 0001-libavcodec-jpeg2000_parser-Speed-up-long-skips.patch > From fedd7f9ae2c691a25c37be935d7547be61d46017 Mon

Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-01 Thread Michael Niedermayer
On Wed, Jun 01, 2022 at 06:21:19PM +0200, Michael Niedermayer wrote: > On Tue, May 31, 2022 at 11:58:39AM +0200, Tomas Härdin wrote: > > > > > jpeg2000_parser.c | 11 +++ > > 1 file changed, 11 insertions(+) > > 634546fb5a0eb281eea87ad7471c503f5bc9e8ab > > 0001-libavcodec-jpeg2000_pa

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvenc: add ROI support to qsv encoder

2022-06-01 Thread Xiang, Haihao
On Fri, 2022-05-06 at 13:49 +0800, Wenbin Chen wrote: > Use the mfxEncoderCtrl parameter to enable ROI. Get side data > "AVRegionOfInterest" > from filter "addroi" and use it to configure "mfxExtEncoderROI" which is > the MediaSDK's ROI configuration. > > Signed-off-by: Wenbin Chen > --- > libav

Re: [FFmpeg-devel] [PATCH 8/8] libavcodec/jpeg2000: Call av_codec_is_encoder() only once in init_prec()

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 12:01:35PM +0200, Tomas Härdin wrote: > > jpeg2000.c |7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > 05721f386bc015c4402f70bdb14dd6a8931a4429 > 0008-libavcodec-jpeg2000-Call-av_codec_is_encoder-only-on.patch > From 1485b06278f38dcda5ff83f17e0a3446949

Re: [FFmpeg-devel] [PATCH 5/8] libavcodec/jpeg2000_parser: Rearrange ifs

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 12:00:26PM +0200, Tomas Härdin wrote: > > jpeg2000_parser.c |6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > b0a91cd73f5b4887a9d87518bc16ed6e1f104a39 > 0005-libavcodec-jpeg2000_parser-Rearrange-ifs.patch > From 68add7a3abb85d84e484ae58b1661d7bbf66c04d

Re: [FFmpeg-devel] [PATCH 7/8] libavcodec/jpeg2000_parser: Localize m->bytes_read

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 12:01:12PM +0200, Tomas Härdin wrote: > > jpeg2000_parser.c |8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > a16f2b29057a6e89ef7a03529fb4c66ecc704094 > 0007-libavcodec-jpeg2000_parser-Localize-m-bytes_read.patch > From 7b5e442033f0691bddbe2c2a0292f4a

Re: [FFmpeg-devel] [PATCH 4/8] libavcodec/jpeg2000_parser: LUTify info_marker()

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 12:00:05PM +0200, Tomas Härdin wrote: > > jpeg2000_parser.c | 26 +++--- > 1 file changed, 19 insertions(+), 7 deletions(-) > 7661a5b239a94ccba349c916a390d957479a9771 > 0004-libavcodec-jpeg2000_parser-LUTify-info_marker.patch > From d84f106d1eac7a3

Re: [FFmpeg-devel] [PATCH 3/8] libavcodec/jpeg2000_parser: next_state is just a temporary

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 11:59:42AM +0200, Tomas Härdin wrote: > > jpeg2000_parser.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > c4714ab68e0049d0ee84e5c7f89582c5426c10ad > 0003-libavcodec-jpeg2000_parser-next_state-is-just-a-temp.patch > From 682701613a9b816aac9e75848216e3c7e

Re: [FFmpeg-devel] [PATCH 2/8] libavcodec/jpeg2000_parser: Simplify, fix reset_context()

2022-06-01 Thread Michael Niedermayer
On Tue, May 31, 2022 at 11:59:15AM +0200, Tomas Härdin wrote: > > jpeg2000_parser.c | 23 ++- > 1 file changed, 10 insertions(+), 13 deletions(-) > 54fa89b694ebf1b0fb5adf18a5f53a2aabcbc9c9 > 0002-libavcodec-jpeg2000_parser-Simplify-fix-reset_contex.patch > From 4bf4593c0d

Re: [FFmpeg-devel] [PATCH 1/2] avutil/opt: Alpha workaround

2022-06-01 Thread Michael Niedermayer
On Wed, Jun 01, 2022 at 12:38:05PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2022-05-30 21:09:10) > > alpha-linux-gnu-gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010 with > > qemu-alpha version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.39) > > trigger a FPE on the DBL_MAX * 9 operation

Re: [FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-01 Thread Xiang, Haihao
On Wed, 2022-06-01 at 09:06 +, softworkz wrote: > From: softworkz > > Signed-off-by: softworkz > --- > libavcodec/qsvdec.c | 234 > 1 file changed, 234 insertions(+) > > diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c > index 5fc5bed4c8..

Re: [FFmpeg-devel] [PATCH] avformat/mov: Only read the primary item for AVIF

2022-06-01 Thread James Zern
On Sun, Apr 24, 2022 at 11:35 AM Vignesh Venkatasubramanian wrote: > > Update the still AVIF parser to only read the primary item. With this > patch, AVIF still images with exif/icc/alpha channel will no longer > fail to parse. > > For example, this patch enables parsing of files in: > https://git

Re: [FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-01 Thread Soft Works
> -Original Message- > From: Xiang, Haihao > Sent: Wednesday, June 1, 2022 7:20 PM > To: ffmpeg-devel@ffmpeg.org > Cc: haihao.xiang-at-intel@ffmpeg.org; softwo...@hotmail.com > Subject: Re: [FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: Implement SEI > parsing for QSV decoders > > O

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-01 Thread James Zern
On Wed, May 18, 2022 at 2:56 PM Vignesh Venkatasubramanian wrote: > > AVIF specification allows for alpha channel as an auxillary item (in auxiliary > case of still images) or as an auxillary track (in case of animated > images). Add support for both of these. The AVIF muxer will take > exactly

[FFmpeg-devel] [PATCH v3 0/6] Implement SEI parsing for QSV decoders

2022-06-01 Thread ffmpegagent
Missing SEI information has always been a major drawback when using the QSV decoders. I used to think that there's no chance to get at the data without explicit implementation from the MSDK side (or doing something weird like parsing in parallel). It turned out that there's a hardly known api metho

[FFmpeg-devel] [PATCH v3 4/6] avcodec/hevcdec: make set_side_data() accessible

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/hevcdec.c | 117 +-- libavcodec/hevcdec.h | 9 2 files changed, 67 insertions(+), 59 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index f782ea6394..9e9bb48202 100644

[FFmpeg-devel] [PATCH v3 5/6] avcodec/h264dec: make h264_export_frame_props() accessible

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/h264_slice.c | 98 + libavcodec/h264dec.h| 2 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d56722a5c2..f2a4c1c657 10

[FFmpeg-devel] [PATCH v3 1/6] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 2 +- 4 files changed, 78 insertions(+), 27 de

[FFmpeg-devel] [PATCH v3 2/6] avcodec/vpp_qsv: Copy side data from input to output frame

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 954f882637..f4bf628073 100644 --- a/lib

[FFmpeg-devel] [PATCH v3 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/qsvdec.c | 234 1 file changed, 234 insertions(+) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 5fc5bed4c8..e854f363ec 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c

[FFmpeg-devel] [PATCH v3 3/6] avcodec/mpeg12dec: make mpeg_decode_user_data() accessible

2022-06-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/mpeg12.h| 28 libavcodec/mpeg12dec.c | 40 +--- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index e0406b32d

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-01 Thread Vignesh Venkatasubramanian
On Wed, Jun 1, 2022 at 10:52 AM James Zern wrote: > > On Wed, May 18, 2022 at 2:56 PM Vignesh Venkatasubramanian > wrote: > > > > AVIF specification allows for alpha channel as an auxillary item (in > > auxiliary > Done. > > case of still images) or as an auxillary track (in case of animated >

[FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-01 Thread Vignesh Venkatasubramanian
AVIF specification allows for alpha channel as an auxiliary item (in case of still images) or as an auxiliary track (in case of animated images). Add support for both of these. The AVIF muxer will take exactly two streams (when alpha is present) as input (first one being the YUV planes and the sec

Re: [FFmpeg-devel] [PATCH v7 1/1] avutil/csp: create public API for colorspace structs

2022-06-01 Thread Ronald S. Bultje
Hi, On Tue, May 31, 2022 at 10:26 AM Ronald S. Bultje wrote: > On Sat, May 28, 2022 at 9:30 AM Leo Izen wrote: > >> This commit moves some of the functionality from avfilter/colorspace >> into avutil/csp and exposes it as a public API so it can be used by >> libavcodec and/or libavformat. It al

Re: [FFmpeg-devel] [PATCH] vp9: don't overread by 4 pixels in ff_vp9_avg4_mmxext().

2022-06-01 Thread Ronald S. Bultje
Hi, On Tue, May 31, 2022 at 9:21 AM Ronald S. Bultje wrote: > If the block is at the end of the allocated buffer and there is no > padding, this will over-read, which may cause crashes. Reported by > Firefox. > --- > libavcodec/x86/vp9mc.asm | 5 + > 1 file changed, 5 insertions(+) > > diff

Re: [FFmpeg-devel] [PATCH 0/6] Implement SEI parsing for QSV decoders

2022-06-01 Thread Kieran Kunhya
On Thu, 26 May 2022 at 09:09, ffmpegagent wrote: > But that doesn't help. Those bugs exist and I'm sharing my workarounds, > which are empirically determined by testing a range of files. If someone is > interested, I can provide private access to a repository where we have been > testing this. Al

[FFmpeg-devel] [PATCH] av_get_media_type_string(): replace with av_media_type_get_string()

2022-06-01 Thread Scott Theisen
printf %s with a NULL pointer is undefined behavior. Not returning a NULL pointer makes for a nicer function for API users, including in FFmpeg, since then you don't have to check it, instead you can just print it. 32/44 uses in FFmpeg did not check for NULL. This also matches behavior with avco

Re: [FFmpeg-devel] [PATCH 0/6] Implement SEI parsing for QSV decoders

2022-06-01 Thread Soft Works
From: Kieran Kunhya Sent: Wednesday, June 1, 2022 9:16 PM To: FFmpeg development discussions and patches Cc: softworkz Subject: Re: [FFmpeg-devel] [PATCH 0/6] Implement SEI parsing for QSV decoders On Thu, 26 May 2022 at 09:09, ffmpegagent mailto:ffmpegag...@gmail.com>> wrote: But that doesn

Re: [FFmpeg-devel] [PATCH] avformat/movenc: Support alpha channel for AVIF

2022-06-01 Thread Vignesh Venkatasubramanian
On Wed, Jun 1, 2022 at 11:52 AM xyesbee wrote: > > Why can it not accept it as one but two distinct streams? Why the extra > hurdle of alphaextract? YUVA pixel format exists though. Yes, while the YUVA pixel formats exist, AVIF specification requires alpha channel to be a separate track (i.e.) w

Re: [FFmpeg-devel] [PATCH 0/6] Implement SEI parsing for QSV decoders

2022-06-01 Thread Kieran Kunhya
> > Captions aren’t exactly “frame accurate” anyway as each frame has just a > very small piece > > of information and only when a certain sequence is complete, it leads to > some new letters > > or line being ready for display. > In many use-cases, you want them to be frame-accurate. Final rendit

[FFmpeg-devel] [PATCH] swscale: add NV16 input/output

2022-06-01 Thread Matthieu Bouron
--- libswscale/input.c | 1 + libswscale/utils.c | 1 + libswscale/version.h | 2 +- tests/ref/fate/filter-pixdesc-nv16 | 1 + tests/ref/fate/filter-pixfmts-copy | 1 + tests/ref/fate/filter-pixfmts-crop | 1 + tests

Re: [FFmpeg-devel] [PATCH] avformat/mov: Only read the primary item for AVIF

2022-06-01 Thread Vignesh Venkatasubramanian
On Wed, Jun 1, 2022 at 10:30 AM James Zern wrote: > > On Sun, Apr 24, 2022 at 11:35 AM Vignesh Venkatasubramanian > wrote: > > > > Update the still AVIF parser to only read the primary item. With this > > patch, AVIF still images with exif/icc/alpha channel will no longer > > fail to parse. > > >

Re: [FFmpeg-devel] [PATCH 0/6] Implement SEI parsing for QSV decoders

2022-06-01 Thread Soft Works
From: Kieran Kunhya Sent: Wednesday, June 1, 2022 10:26 PM To: Soft Works Cc: Kieran Kunhya ; FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH 0/6] Implement SEI parsing for QSV decoders Captions aren’t exactly “frame accurate” anyway as each frame has just a ver

[FFmpeg-devel] [PATCH v4 1/6] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-06-01 Thread pal
From: Zane van Iperen * Addresses review comments Co-authored-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 2 + libavutil/uuid.c | 141 +++ libavutil/uuid.h | 147 +

[FFmpeg-devel] [PATCH v4 2/6] avutil/tests/uuid: add uuid tests

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavutil/Makefile | 1 + libavutil/tests/.gitignore | 1 + libavutil/tests/uuid.c | 141 + tests/fate/libavutil.mak | 5 ++ 4 files changed, 148 insertions(+) create mode 100644 libavutil/tests/uuid.c dif

[FFmpeg-devel] [PATCH v4 3/6] avformat/mov: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/mov.c| 25 + libavformat/movenc.c | 9 + 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index d7be593a86..f8248ab65b 100644 --- a/libavformat/mov.c +++ b/liba

[FFmpeg-devel] [PATCH v4 4/6] avformat/smoothstreamingenc: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/smoothstreamingenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 1713dd9009..ade6d5723b 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavf

[FFmpeg-devel] [PATCH v4 5/6] avformat/imf: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imf.h | 18 - libavformat/imf_cpl.c | 60 +++-- libavformat/imfdec.c| 34 +++ libavformat/tests/imf.c | 18 ++--- 4 files changed, 52 insertions(+), 78 deletions(-

[FFmpeg-devel] [PATCH v4 6/6] avfilter/showinfo: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavfilter/vf_showinfo.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d39310ef..6efcafce28 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showin

[FFmpeg-devel] [PATCH v8 0/2] libjxl Colorspace Fixes

2022-06-01 Thread Leo Izen
Changes in v8: - Use avutil/csp for both encoding and decoding - Handle the non-XYB case with an attached ICC Profile on decoding - clean up some code and segment it out to static functions Leo Izen (2): avcodec/libjxldec: properly tag output colorspace avcodec/libjxlenc: properly read input c

[FFmpeg-devel] [PATCH v8 1/2] avcodec/libjxldec: properly tag output colorspace

2022-06-01 Thread Leo Izen
Whether an ICC profile is present or not, the decoder should now properly tag the colorspace of pixel data received by the decoder. --- libavcodec/libjxldec.c | 142 ++--- 1 file changed, 133 insertions(+), 9 deletions(-) diff --git a/libavcodec/libjxldec.c b/l

[FFmpeg-devel] [PATCH v8 2/2] avcodec/libjxlenc: properly read input colorspace

2022-06-01 Thread Leo Izen
Whether an ICC profile is present or not, the libjxl encoder wrapper should now properly read colorspace tags and forward them to libjxl appropriately, rather than just assume sRGB as before. It will also print warnings when colorimetric assumptions are made about the input data. --- libavcodec/li

[FFmpeg-devel] [PATCH v9 00/10] make QSV works with the Intel's oneVPL

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang The oneAPI Video Processing Library (oneVPL) is a single interface for encode, decode and video processing[1][2]. oneVPL is a successor to Intel(R) Media SDK, but removed obsolete features. Intel(R) Media SDK lifetime comes to an end now, new features for new Intel Gen platfor

[FFmpeg-devel] [PATCH v9 01/10] configure: ensure --enable-libmfx uses libmfx 1.x

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang Intel's oneVPL is a successor to MediaSDK, but removed some obsolete features of MediaSDK[1], some early versions of oneVPL still use libmfx as library name[2]. However some of obsolete features, including OPAQUE memory, multi-frame encode, user plugins and LA_EXT rate control

[FFmpeg-devel] [PATCH v9 02/10] configure: fix the check for MFX_CODEC_VP9

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang The data structures for VP9 in mfxvp9.h is wrapped by MFX_VERSION_NEXT, which means those data structures have never been used in a public release. Actually MFX_CODEC_VP9 and other VP9 stuffs is added in mfxstructures.h. In addition, mfxdefs.h is included in mfxvp9.h, so we may

[FFmpeg-devel] [PATCH v9 03/10] qsv: remove mfx/ prefix from mfx headers

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang The following Cflags has been added to libmfx.pc, so mfx/ prefix is no longer needed when including mfx headers in FFmpeg. Cflags: -I${includedir} -I${includedir}/mfx Some old versions of libmfx have the following Cflags in libmfx.pc Cflags: -I${includedir} We may add -

[FFmpeg-devel] [PATCH v9 04/10] qsv: load user plugin for MFX_VERSION < 2.0

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang User plugin isn't supported for MFX_VERSION >= 2.0[1][2]. This is in preparation for oneVPL Support [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html#msdk-full-name-feature-removals [2] https://github.com/oneapi-src/oneVPL --- libavco

[FFmpeg-devel] [PATCH v9 05/10] qsv: build audio related code when MFX_VERSION < 2.0

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang Audio isn't supported for MFX_VERSION >= 2.0[1][2]. This is in preparation for oneVPL support [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html#msdk-full-name-feature-removals [2] https://github.com/oneapi-src/oneVPL --- libavcodec/qs

[FFmpeg-devel] [PATCH v9 07/10] qsvenc: support MFX_RATECONTROL_LA_EXT when MFX_VERSION < 2.0

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang MFX_RATECONTROL_LA_EXT isn't supported for MFX_VERSION >= 2.0[1][2]. This is in preparation for oneVPL support [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html#msdk-full-name-feature-removals [2] https://github.com/oneapi-src/oneVPL -

[FFmpeg-devel] [PATCH v9 08/10] qsv: support OPAQUE memory when MFX_VERSION < 2.0

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang OPAQUE memory isn't supported for MFX_VERSION >= 2.0[1][2]. This is in preparation for oneVPL support [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html#msdk-full-name-feature-removals [2] https://github.com/oneapi-src/oneVPL --- libav

[FFmpeg-devel] [PATCH v9 09/10] qsv: use a new method to create mfx session when using oneVPL

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang In oneVPL, MFXLoad() and MFXCreateSession() are required to create a workable mfx session[1] Add config filters for D3D9/D3D11 session (galinart) The default device is changed to d3d11va for oneVPL when both d3d11va and dxva2 are enabled on Microsoft Windows This is in prepa

[FFmpeg-devel] [PATCH v9 10/10] configure: add --enable-libvpl option

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang This allows user to build FFmpeg against Intel oneVPL. oneVPL 2.6 is the required minimum version when building Intel oneVPL code. It will fail to run configure script if both libmfx and libvpl are enabled. It is recommended to use oneVPL for new work, even for currently avai

[FFmpeg-devel] [PATCH v9 06/10] qsvenc: support multi-frame encode when MFX_VERSION < 2.0

2022-06-01 Thread Xiang, Haihao
From: Haihao Xiang Multi-frame encode isn't supported for MFX_VERSION >= 2.0[1][2]. This is in preparation for oneVPL support [1] https://spec.oneapi.io/versions/latest/elements/oneVPL/source/VPL_intel_media_sdk.html#msdk-full-name-feature-removals [2] https://github.com/oneapi-src/oneVPL ---

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvenc: add ROI support to qsv encoder

2022-06-01 Thread Chen, Wenbin
> On Fri, 2022-05-06 at 13:49 +0800, Wenbin Chen wrote: > > Use the mfxEncoderCtrl parameter to enable ROI. Get side data > > "AVRegionOfInterest" > > from filter "addroi" and use it to configure "mfxExtEncoderROI" which is > > the MediaSDK's ROI configuration. > > > > Signed-off-by: Wenbin Chen >

[FFmpeg-devel] [PATCH v2] libavcodec/qsvenc: add ROI support to qsv encoder

2022-06-01 Thread Wenbin Chen
From: Wenbin Chen Use the mfxEncoderCtrl parameter to enable ROI. Get side data "AVRegionOfInterest" and use it to configure "mfxExtEncoderROI" which is the MediaSDK's ROI configuration. Signed-off-by: Wenbin Chen --- libavcodec/qsv_internal.h | 4 ++ libavcodec/qsvenc.c | 86