Re: [FFmpeg-devel] [PATCH v1 6/6] lavc/vaapi_encode: Add VAAPI AV1 encoder

2023-07-17 Thread Wang, Fei W
On Mon, 2023-07-17 at 13:12 +0200, David Rosca wrote: > On Mon, Jul 10, 2023 at 9:40 AM Fei Wang > wrote: > > Signed-off-by: Fei Wang > > --- > > Changelog |1 + > > configure |3 + > > doc/encoders.texi | 13 + > >

[FFmpeg-devel] [PATCH v2 6/6] lavc/vaapi_encode: Add VAAPI AV1 encoder

2023-07-17 Thread Fei Wang
Signed-off-by: Fei Wang --- update 1. set color_range in sequence header. Changelog |1 + configure |3 + doc/encoders.texi | 13 + libavcodec/Makefile |1 + libavcodec/allcodecs.c|1 +

[FFmpeg-devel] [PATCH v2 5/6] lavc/vaapi_encode: Separate reference frame into previous/future list

2023-07-17 Thread Fei Wang
To support more reference frames from different directions. Signed-off-by: Fei Wang --- libavcodec/vaapi_encode.c | 112 +--- libavcodec/vaapi_encode.h | 15 +++-- libavcodec/vaapi_encode_h264.c | 94 +--

[FFmpeg-devel] [PATCH v2 4/6] lavc/vaapi_encode: Extract set output pkt timestamp function

2023-07-17 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_encode.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 8c9f14df66..c8545cd8db 100644 --- a/libavcodec/vaapi_encode.c +++

[FFmpeg-devel] [PATCH v2 3/6] lavc/vaapi_encode: Init pic at the beginning of API

2023-07-17 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_encode.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index bfca315a7a..8c9f14df66 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -1205,7

[FFmpeg-devel] [PATCH v2 2/6] lavc/av1: Add common code and unit test for level handling

2023-07-17 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/Makefile| 4 +- libavcodec/av1_profile_level.c | 91 libavcodec/av1_profile_level.h | 58 +++ libavcodec/tests/.gitignore| 1 + libavcodec/tests/av1_levels.c | 124 +

[FFmpeg-devel] [PATCH v2 1/6] avcodec/cbs_av1: Add tx mode enum values

2023-07-17 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/av1.h | 7 +++ libavcodec/cbs_av1_syntax_template.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libavcodec/av1.h b/libavcodec/av1.h index 384f7cddc7..8704bc41c1 100644 --- a/libavcodec/av1.h +++

[FFmpeg-devel] [PATCH] Changelog: Add Enhanced FLV format

2023-07-17 Thread Steven Liu
Signed-off-by: Steven Liu --- Changelog | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog b/Changelog index 3876082844..db79ae150d 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,7 @@ version : - Raw VVC bitstream parser, muxer and demuxer - Bitstream filter for editing

Re: [FFmpeg-devel] git email hook

2023-07-17 Thread Michael Niedermayer
On Sun, Jul 16, 2023 at 11:51:23AM +0200, Nicolas George wrote: > Michael Niedermayer (12023-07-15): > > COMBINED_REFCHANGE_REVISION_SUBJECT_TEMPLATE = ( > > '%(emailprefix)s%(refname_type)s %(short_refname)s updated: %(oneline)s' > > ) > > Setting this to: > > '%(emailprefix)s

Re: [FFmpeg-devel] [PATCH] lavu: add AVVideoHint API

2023-07-17 Thread Stefano Sabatini
On date Monday 2023-07-10 12:51:25 +, Carotti, Elias wrote: > On Mon, 2023-07-10 at 08:13 +, Carotti, Elias wrote: > > > > > AVVideoHint is a bad name for something like this. > > Could you borrow some wording from graphics and call it > > AVVideoDamagedHint or maybe

Re: [FFmpeg-devel] [PATCH v2 01/14] vvcdec: add thread executor

2023-07-17 Thread Michael Niedermayer
On Sun, Jul 16, 2023 at 02:28:53PM +0800, Nuo Mi wrote: > On Mon, Jul 10, 2023 at 3:41 PM Nuo Mi wrote: > > > > > > > On Sun, Jul 9, 2023 at 5:52 AM Michael Niedermayer > > wrote: > > > >> On Fri, Jul 07, 2023 at 10:05:27PM +0800, Nuo Mi wrote: > >> > The executor design pattern was inroduced

[FFmpeg-devel] [PATCH] lavc/audiodsp: rework RISC-V V scalar product

2023-07-17 Thread Rémi Denis-Courmont
Take vector reduction out of the loop and unroll. Before: audiodsp.scalarproduct_int16_c: 12321.0 audiodsp.scalarproduct_int16_rvv_i32: 4175.7 After: audiodsp.scalarproduct_int16_c: 12320.5 audiodsp.scalarproduct_int16_rvv_i32: 1230.2 --- libavcodec/riscv/audiodsp_rvv.S | 15 --- 1

[FFmpeg-devel] [PATCHv2] lavu/float_dsp: rework RISC-V V scalar product

2023-07-17 Thread Rémi Denis-Courmont
1) Take the reductive sum out of the loop, leaving a regular vector addition in the loop. 2) Merge the addition and the multiplication. 3) Unroll. Before: scalarproduct_float_rvv_f32: 832.5 After: scalarproduct_float_rvv_f32: 275.2 --- libavutil/riscv/float_dsp_rvv.S | 14 -- 1

Re: [FFmpeg-devel] [PATCH 4/7] checkasm: use pointers for start/stop functions

2023-07-17 Thread Rémi Denis-Courmont
Le maanantaina 17. heinäkuuta 2023, 20.48.40 EEST Lynne a écrit : > >> > But I still argue that that is, either way, completely negligible > >> > compared > >> > to the *existing* overhead. Each loop is making 4 system calls, and > >> > each > >> > of those system call requires a direct call (to

Re: [FFmpeg-devel] [PATCH] lavu/float_dsp: rework RISC-V V scalar product

2023-07-17 Thread Rémi Denis-Courmont
Le maanantaina 17. heinäkuuta 2023, 20.25.57 EEST Rémi Denis-Courmont a écrit : > 1) Take the reductive sum out of the loop, >leaving a regular vector addition in the loop. > 2) Merge the addition and the multiplication. > 3) Unroll. > > Before: > scalarproduct_float_rvv_f32: 832.5 > >

Re: [FFmpeg-devel] [PATCH 4/7] checkasm: use pointers for start/stop functions

2023-07-17 Thread Lynne
Jul 17, 2023, 07:18 by r...@remlab.net: > Le sunnuntaina 16. heinäkuuta 2023, 23.32.21 EEST Lynne a écrit : > >> Introducing additional overhead in the form of a dereference is a point >> where instability can creep in. Can you guarantee that a context will >> always remain in L1D cache, >> > >

[FFmpeg-devel] [PATCH] lavu/float_dsp: unroll RISC-V V loops

2023-07-17 Thread Rémi Denis-Courmont
butterflies_float_c: 1057.0 butterflies_float_rvv_f32: 351.0 (before) butterflies_float_rvv_f32: 329.5 (after) vector_dmac_scalar_c: 819.0 vector_dmac_scalar_rvv_f64: 670.5 (before) vector_dmac_scalar_rvv_f64: 431.0 (after) vector_dmul_c: 800.2 vector_dmul_rvv_f64: 541.5 (before)

[FFmpeg-devel] [PATCH] lavu/float_dsp: rework RISC-V V scalar product

2023-07-17 Thread Rémi Denis-Courmont
1) Take the reductive sum out of the loop, leaving a regular vector addition in the loop. 2) Merge the addition and the multiplication. 3) Unroll. Before: scalarproduct_float_rvv_f32: 832.5 After: scalarproduct_float_rvv_f32: 275.2 --- libavutil/riscv/float_dsp_rvv.S | 13 +++-- 1

[FFmpeg-devel] [PATCH] avcodec/vvc_mp4toannexb_bsf: Improve included headers

2023-07-17 Thread Andreas Rheinhardt
A BSF should never include avcodec.h at all. Signed-off-by: Andreas Rheinhardt --- libavcodec/vvc_mp4toannexb_bsf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/vvc_mp4toannexb_bsf.c b/libavcodec/vvc_mp4toannexb_bsf.c index 9e606cdc27..25c3726918 100644 ---

[FFmpeg-devel] [PATCH] avcodec/evc*: Improve included headers

2023-07-17 Thread Andreas Rheinhardt
In particular, don't include avcodec.h in evc_frame_merge_bsf.c. Signed-off-by: Andreas Rheinhardt --- libavcodec/evc_frame_merge_bsf.c | 3 +-- libavcodec/evc_parse.c | 1 - libavcodec/evc_parse.h | 1 - libavcodec/evc_parser.c | 2 +- libavcodec/evc_ps.c

Re: [FFmpeg-devel] [PATCH v10 0/6] Support enhanced flv in FFmpeg

2023-07-17 Thread Steven Liu
Jean-Baptiste Kempf 于2023年7月17日 周一19:37写道: > Please merge. will apply > > > On Thu, 1 Jun 2023, at 12:29, Jean-Baptiste Kempf wrote: > > Hello, > > > > On Thu, 1 Jun 2023, at 02:02, Steven Liu wrote: > >> Neal Gompa 于2023年5月31日周三 13:47写道: > >>> > >>> On Mon, May 15, 2023 at 10:41 PM Neal Gompa

Re: [FFmpeg-devel] [PATCH] avcodec/decode: factor out filling frame props

2023-07-17 Thread James Almer
On 7/14/2023 3:20 PM, James Almer wrote: Signed-off-by: James Almer --- libavcodec/decode.c | 67 - 1 file changed, 23 insertions(+), 44 deletions(-) Applied. ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH v10 0/6] Support enhanced flv in FFmpeg

2023-07-17 Thread Jean-Baptiste Kempf
Please merge. On Thu, 1 Jun 2023, at 12:29, Jean-Baptiste Kempf wrote: > Hello, > > On Thu, 1 Jun 2023, at 02:02, Steven Liu wrote: >> Neal Gompa 于2023年5月31日周三 13:47写道: >>> >>> On Mon, May 15, 2023 at 10:41 PM Neal Gompa wrote: >>> > >>> > On Mon, May 15, 2023 at 4:32 AM Steven Liu wrote: >>>

Re: [FFmpeg-devel] [PATCH v2] avformat/mov: enable identifying TTML subtitle streams as such

2023-07-17 Thread Jan Ekström
On Wed, Jul 12, 2023 at 4:48 PM Jan Ekström wrote: > > From: Jan Ekström > > The contents are full TTML XML documents. TTML writing tests' > results are updated as the streams are now properly identified > as TTML ones. > > Signed-off-by: Jan Ekström Ping?

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/msrleenc: Replace stray \r by \n

2023-07-17 Thread Tomas Härdin
sön 2023-07-16 klockan 16:49 +0200 skrev Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- >  libavcodec/msrleenc.c | 3 ++- >  1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/msrleenc.c b/libavcodec/msrleenc.c > index b73aa5e384..e48d11a0f7 100644 > ---

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/msrleenc: Remove useless private class

2023-07-17 Thread Tomas Härdin
sön 2023-07-16 klockan 16:51 +0200 skrev Andreas Rheinhardt: > A private class for an encoder without options is useless. Might be useful for explicitly using 8-bit encoding even when palette size would permit 4-bit MSRLE. But on the other hand if anyone wants to add 4-bit support then they can

Re: [FFmpeg-devel] [PATCH v1 6/6] lavc/vaapi_encode: Add VAAPI AV1 encoder

2023-07-17 Thread David Rosca
On Mon, Jul 10, 2023 at 9:40 AM Fei Wang wrote: > > Signed-off-by: Fei Wang > --- > Changelog |1 + > configure |3 + > doc/encoders.texi | 13 + > libavcodec/Makefile |1 + > libavcodec/allcodecs.c|1 + >

[FFmpeg-devel] [PATCH 3/3] swscale/x86/yuv2yuvX: Process tails by jumping back into the main loop.

2023-07-17 Thread Alan Kelly
--- libswscale/x86/swscale.c| 11 --- libswscale/x86/yuv2yuvX.asm | 24 ++-- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index 600c7d6c91..6980002e9e 100644 --- a/libswscale/x86/swscale.c +++

Re: [FFmpeg-devel] [PATCH 3/3] swscale/x86/yuv2yuvX: Process tails by jumping back into the main loop.

2023-07-17 Thread Alan Kelly
On Sat, Jul 15, 2023 at 10:40 PM Michael Niedermayer wrote: > On Fri, Jul 14, 2023 at 12:08:46PM +0200, Alan Kelly wrote: > > --- > > libswscale/x86/swscale.c| 11 --- > > libswscale/x86/yuv2yuvX.asm | 12 ++-- > > 2 files changed, 14 insertions(+), 9 deletions(-) > > seems

[FFmpeg-devel] [PATCH 2/3] swscale/x86/yuv2yuvX: Add yuv2yuvX avx512

2023-07-17 Thread Alan Kelly
--- Checks for EXTERNAL_AVX512ICL to prevent downclocking on Skylake libswscale/x86/swscale.c| 7 +++ libswscale/x86/yuv2yuvX.asm | 19 ++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index

Re: [FFmpeg-devel] [PATCH 2/3] swscale/x86/yuv2yuvX: Add yuv2yuvX avx512

2023-07-17 Thread Alan Kelly
Happy to add the check. Thanks, Alan On Fri, Jul 14, 2023 at 4:59 PM James Almer wrote: > On 7/14/2023 11:57 AM, Kieran Kunhya wrote: > > On Fri, 14 Jul 2023 at 14:03, James Almer wrote: > > > >> On 7/14/2023 9:59 AM, Kieran Kunhya wrote: > +#if ARCH_X86_64 && HAVE_AVX512_EXTERNAL >

Re: [FFmpeg-devel] [PATCH 2/3] fftools/ffmpeg_enc: Remove always-true checks

2023-07-17 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-07-16 16:24:35) > frame is always != NULL for audio and video here > (this is checked by an assert and the frame is already dereferenced > before it reaches this code here). > Fixes Coverity issue #1538858. > > Signed-off-by: Andreas Rheinhardt > --- >

[FFmpeg-devel] (no subject)

2023-07-17 Thread Водянников Александр
From 0fe666c4e3d10a689f4c6854a58eec3e7ff3c922 Mon Sep 17 00:00:00 2001 From: Aleksoid Date: Mon, 17 Jul 2023 17:04:43 +1000 Subject: [PATCH] Fixed crash when using hardware acceleration in third party projects without using hw_frames_ctx. --- libavcodec/decode.c | 27

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_overlay: Add support for yuv444p10 pixel format

2023-07-17 Thread Tobias Rapp
On 07/07/2023 14:44, Tobias Rapp wrote: --- doc/filters.texi | 3 +++ libavfilter/vf_overlay.c | 36 +++- libavfilter/vf_overlay.h | 1 + 3 files changed, 39 insertions(+), 1 deletion(-) [...] Would like to apply this patch-set in a few days