[FFmpeg-devel] [PATCH] libavcodec/qsvenc: Add skip_frame support to qsvenc

2022-11-02 Thread wenbin . chen-at-intel . com
From: Wenbin Chen Add skip_frame support to qsvenc. Use per-frame metadata "qsv_skip_frame" to control it. skip_frame option defines the behavior of qsv_skip_frame. no_skip: Frame skipping is disabled. insert_dummy: Encoder inserts into bitstream frame where all macroblocks are encoded as skipped

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: add AV1 encoding support

2022-11-02 Thread Timo Rothenpieler
On 02/11/2022 02:14, Andreas Rheinhardt wrote: Timo Rothenpieler: --- diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 3c6fce391d..9a1a1fcc37 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1,5 +1,5 @@ /* - * H.264/HEVC hardware encoding using nvidia nvenc + * H.264/HEV

[FFmpeg-devel] [PATCH] configure: add pkg-config check for chromaprint

2022-11-02 Thread Timo Rothenpieler
--- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 30f0ce4e26..2bcdf18a57 100755 --- a/configure +++ b/configure @@ -6559,7 +6559,8 @@ enabled avisynth && { require_headers "avisynth/avisynth_c.h avisynth/a

[FFmpeg-devel] [PATCH] lavfi/vf_dnn_processing.c: Fix missing AV_PIX_FMT_GRAY8

2022-11-02 Thread Thilo Borgmann
From: Cosmin Stejerean Has been removed by mistake in 2003e32f62d94ba75b59d70632c9f2862b383591, readd it to the switch cases. Signed-off-by: Thilo Borgmann --- libavfilter/vf_dnn_processing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_dnn_processing.c b/libavfilter/vf_

Re: [FFmpeg-devel] [PATCH] avfilter: add backgroundkey video filter

2022-11-02 Thread Paul B Mahol
On 10/30/22, Paul B Mahol wrote: > Patch attached. > Improved patch attached. From 6f9873ca81557fa77d7af957dd7694d5cc6e8019 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 28 Oct 2022 22:02:29 +0200 Subject: [PATCH] avfilter: add backgroundkey video filter Signed-off-by: Paul B Mahol --

[FFmpeg-devel] [PATCH v3] avcodec/av1_vaapi: fixed a decoding corruption issue

2022-11-02 Thread Ruijing Dong
In av1_spec.pdf page 38/669, there is a sentence below: if ( frame_type == KEY_FRAME && show_frame ) { for ( i = 0; i < NUM_REF_FRAMES; i++) { RefValid[ i ] = 0 .. } .. } This shows that the condition of invalidating current DPB frames should be the coming frame_type

[FFmpeg-devel] [PATCH v2] avcodec/nvenc: add AV1 encoding support

2022-11-02 Thread Timo Rothenpieler
--- configure | 14 ++- libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 + libavcodec/nvenc.c | 137 ++-- libavcodec/nvenc.h | 9 ++ libavcodec/nvenc_av1.c | 197 + libavcodec/version.h | 4 +-

Re: [FFmpeg-devel] [PATCH] avfilter: add backgroundkey video filter

2022-11-02 Thread Andreas Rheinhardt
Paul B Mahol: > +static int filter_frame(AVFilterLink *link, AVFrame *frame) > +{ > +AVFilterContext *avctx = link->dst; > +BackgroundkeyContext *s = avctx->priv; > +int64_t sum = 0; > +int ret; > + > +if (!s->background) { > +s->background = av_frame_clone(frame); > +

Re: [FFmpeg-devel] [PATCH 2/2] swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32

2022-11-02 Thread Andreas Rheinhardt
Michael Niedermayer: > On Wed, Nov 02, 2022 at 10:02:39PM +0100, Michael Niedermayer wrote: >> Fixes: integer overflow >> Signed-off-by: Michael Niedermayer >> --- >> libswscale/output.c | 25 +++-- >> libswscale/x86/output.asm | 16 +++- >> 2 files changed,

Re: [FFmpeg-devel] [PATCH 2/2] swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32

2022-11-02 Thread Martin Storsjö
On Wed, 2 Nov 2022, Michael Niedermayer wrote: On Wed, Nov 02, 2022 at 10:16:57PM +0100, Andreas Rheinhardt wrote: Michael Niedermayer: On Wed, Nov 02, 2022 at 10:02:39PM +0100, Michael Niedermayer wrote: Fixes: integer overflow Signed-off-by: Michael Niedermayer --- libswscale/output.c

Re: [FFmpeg-devel] [PATCH v2 4/4] swscale/output: add rgbaf32 output support

2022-11-02 Thread Mark Reid
On Wed, Nov 2, 2022 at 2:04 PM Michael Niedermayer wrote: > On Sun, Oct 30, 2022 at 05:32:35PM -0700, mindm...@gmail.com wrote: > > From: Mark Reid > > > > --- > > libswscale/output.c | 92 > > libswscale/swscale_unscaled.c| 4 +- > > l

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

2022-11-02 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > "zhilizhao(???)" > Sent: Tuesday, November 1, 2022 10:18 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 2/2] avcodec/vpp_qsv: Copy side > data from input to output frame

Re: [FFmpeg-devel] [PATCH 2/2] swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32

2022-11-02 Thread Mark Reid
On Wed, Nov 2, 2022 at 2:03 PM Michael Niedermayer wrote: > Fixes: integer overflow > Signed-off-by: Michael Niedermayer > --- > libswscale/output.c | 25 +++-- > libswscale/x86/output.asm | 16 +++- > 2 files changed, 26 insertions(+), 15 deletions(-) > >

Re: [FFmpeg-devel] [PATCH 2/2] swscale/output: Bias 16bps output calculations to improve non overflowing range for GBRP16/GBRPF32

2022-11-02 Thread Mark Reid
On Wed, Nov 2, 2022 at 3:52 PM Mark Reid wrote: > > > On Wed, Nov 2, 2022 at 2:03 PM Michael Niedermayer > wrote: > >> Fixes: integer overflow >> Signed-off-by: Michael Niedermayer >> --- >> libswscale/output.c | 25 +++-- >> libswscale/x86/output.asm | 16 +++

Re: [FFmpeg-devel] [PATCH v3] avcodec/av1_vaapi: fixed a decoding corruption issue

2022-11-02 Thread Wang, Fei W
On Wed, 2022-11-02 at 15:35 -0400, Ruijing Dong wrote: > In av1_spec.pdf page 38/669, there is a sentence below: > > if ( frame_type == KEY_FRAME && show_frame ) { >for ( i = 0; i < NUM_REF_FRAMES; i++) { > RefValid[ i ] = 0 > .. >} >.. > } > > This shows that the

[FFmpeg-devel] [PATCH 20/24] avcodec/mpegvideo_dec: Don't use MotionEstContext as scratch space

2022-11-02 Thread Andreas Rheinhardt
Decoders that might use quarter pixel motion estimation (namely MPEG-4 as well as the VC-1 family) currently use MpegEncContext.me.qpel_(put|avg) as scratch space for pointers to arrays of function pointers. (MotionEstContext contains such pointers as it supports quarter pixel motion estimation.) T

[FFmpeg-devel] [PATCH 21/24] avcodec/vc1dec: Remove VC-1 decoders->H.263 decoder dependency

2022-11-02 Thread Andreas Rheinhardt
The only thing from the H.263 decoder that is reachable by the VC-1 decoder is ff_h263_decode_init(); but it does not even use all of it; e.g. h263dsp is unused and so are the VLCs initialized in ff_h263_decode_init() (they amount to about 77KB which are now no longer touched). Notice that one cou

[FFmpeg-devel] [PATCH 22/24] avcodec/h263dec: Move initializing qpel DSP context to mpeg4videodec.c

2022-11-02 Thread Andreas Rheinhardt
The MPEG-4 decoder is the only decoder based upon H.263 that supports quarterpel motion vectors. Signed-off-by: Andreas Rheinhardt --- libavcodec/h263dec.c | 2 -- libavcodec/mpeg4videodec.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/h263dec.c b/libav

[FFmpeg-devel] [PATCH 23/24] avcodec/mpegvideo_enc: Move initializing QpelDSPCtx to mpeg4videoenc.c

2022-11-02 Thread Andreas Rheinhardt
It is the only encoder supporting quarter samples. This also allows to remove the qpeldsp dependency from mpegvideo_enc. Signed-off-by: Andreas Rheinhardt --- configure | 4 ++-- libavcodec/mpeg4videoenc.c | 1 + libavcodec/mpegvideo_enc.c | 1 - 3 files changed, 3 insertions(+)

[FFmpeg-devel] [PATCH 24/24] avcodec/motion_est: Remove unused field

2022-11-02 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/motion_est.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/motion_est.h b/libavcodec/motion_est.h index b20cda..f6a563b08c 100644 --- a/libavcodec/motion_est.h +++ b/libavcodec/motion_est.h @@ -52,7 +52,6 @@ typedef struct Motio

[FFmpeg-devel] [PATCH] lavc/libaribb24: add default_profile option

2022-11-02 Thread rcombs
This allows decoding of streams that don't have a profile tagged (e.g. ones that were remuxed improperly). --- libavcodec/libaribb24.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c index f405

[FFmpeg-devel] [PATCH v3 0/4] swscale rgbaf32 input/output support

2022-11-02 Thread mindmark
From: Mark Reid This patch series adds swscale input/output support for the packed rgb float formats. A few of the filters also needed support the larger 96/128 bit packed pixel sizes. I also plan to eventually add lossless unscaled conversions between the planer and packed formats. changes

[FFmpeg-devel] [PATCH v3 1/4] swscale/input: add rgbaf32 input support

2022-11-02 Thread mindmark
From: Mark Reid --- libswscale/input.c | 172 + libswscale/utils.c | 4 ++ 2 files changed, 176 insertions(+) diff --git a/libswscale/input.c b/libswscale/input.c index 7ff7bfaa01..4683284b0b 100644 --- a/libswscale/input.c +++ b/libswscale/input.c

[FFmpeg-devel] [PATCH v3 2/4] avfilter/vf_hflip: add support for packed rgb float formats

2022-11-02 Thread mindmark
From: Mark Reid --- libavfilter/vf_hflip_init.h | 25 + 1 file changed, 25 insertions(+) diff --git a/libavfilter/vf_hflip_init.h b/libavfilter/vf_hflip_init.h index d0319f463d..31173f73fc 100644 --- a/libavfilter/vf_hflip_init.h +++ b/libavfilter/vf_hflip_init.h @@ -86,

[FFmpeg-devel] [PATCH v3 3/4] avfilter/vf_transpose: add support for packed rgb float formats

2022-11-02 Thread mindmark
From: Mark Reid --- libavfilter/vf_transpose.c | 44 ++ 1 file changed, 44 insertions(+) diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c index 469e66729f..1023d6fe82 100644 --- a/libavfilter/vf_transpose.c +++ b/libavfilter/vf_transpose.c

[FFmpeg-devel] [PATCH v3 4/4] swscale/output: add rgbaf32 output support

2022-11-02 Thread mindmark
From: Mark Reid --- libswscale/output.c | 92 libswscale/swscale_unscaled.c| 4 +- libswscale/tests/floatimg_cmp.c | 4 +- libswscale/utils.c | 16 +++-- libswscale/yuv2rgb.c | 2 + te