Re: [FFmpeg-devel] [PATCH v3 2/9] lavc/vp8dsp: R-V V put_bilin_h v

2024-05-05 Thread flow gg
> Doesn't this effectively discard the last element, t5? > Can't we skip the slide and just load the vector at a2+1? Also then, we can > keep VL=len and halve the multipler. Yes, this is better, I remember that using slide1down was better in the initial version testing, but now it has changed.. I

[FFmpeg-devel] [PATCH v3 4/9] lavc/vp8dsp: R-V V put_epel h

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_epel4_h4_c: 10.7 vp8_put_epel4_h4_rvv_i32: 5.0 vp8_put_epel4_h6_c: 15.0 vp8_put_epel4_h6_rvv_i32: 6.2 vp8_put_epel8_h4_c: 43.2 vp8_put_epel8_h4_rvv_i32: 11.2 vp8_put_epel8_h6_c: 57.5 vp8_put_epel8_h6_rvv_i32: 13.5 vp8_put_epel16_h4_c: 92.5 vp8_put_epel16_h4_rvv_i32:

[FFmpeg-devel] [PATCH v3 8/9] lavc/vp8dsp: R-V V loop_filter_inner

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_loop_filter8uv_inner_v_c: 738.2 vp8_loop_filter8uv_inner_v_rvv_i32: 455.2 vp8_loop_filter16y_inner_h_c: 685.0 vp8_loop_filter16y_inner_h_rvv_i32: 497.0 vp8_loop_filter16y_inner_v_c: 743.7 vp8_loop_filter16y_inner_v_rvv_i32: 295.7 --- libavcodec/riscv/vp8dsp_init.c |

[FFmpeg-devel] [PATCH v3 6/9] lavc/vp8dsp: R-V V put_epel hv

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_epel4_h4v4_c: 20.0 vp8_put_epel4_h4v4_rvv_i32: 11.0 vp8_put_epel4_h4v6_c: 25.2 vp8_put_epel4_h4v6_rvv_i32: 13.5 vp8_put_epel4_h6v4_c: 22.2 vp8_put_epel4_h6v4_rvv_i32: 14.5 vp8_put_epel4_h6v6_c: 29.0 vp8_put_epel4_h6v6_rvv_i32: 15.7 vp8_put_epel8_h4v4_c: 73.0

[FFmpeg-devel] [PATCH v3 9/9] lavc/vp8dsp: R-V V loop_filter

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_loop_filter8uv_v_c: 745.5 vp8_loop_filter8uv_v_rvv_i32: 467.2 vp8_loop_filter16y_h_c: 674.2 vp8_loop_filter16y_h_rvv_i32: 553.0 vp8_loop_filter16y_v_c: 732.7 vp8_loop_filter16y_v_rvv_i32: 324.5 --- libavcodec/riscv/vp8dsp_init.c | 4 +++ libavcodec/riscv/vp8dsp_rvv.S

[FFmpeg-devel] [PATCH v3 7/9] lavc/vp8dsp: R-V V loop_filter_simple

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_loop_filter_simple_h_c: 416.0 vp8_loop_filter_simple_h_rvv_i32: 187.5 vp8_loop_filter_simple_v_c: 429.7 vp8_loop_filter_simple_v_rvv_i32: 104.0 --- libavcodec/riscv/vp8dsp_init.c | 5 ++ libavcodec/riscv/vp8dsp_rvv.S | 85 ++ 2 files

[FFmpeg-devel] [PATCH v3 1/9] lavc/vp8dsp: R-V put_vp8_pixels

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_pixels4_c: 78.0 vp8_put_pixels4_rvi: 33.7 vp8_put_pixels8_c: 278.0 vp8_put_pixels8_rvi: 55.0 vp8_put_pixels16_c: 999.0 vp8_put_pixels16_rvi: 86.7 --- libavcodec/riscv/Makefile | 1 + libavcodec/riscv/vp8dsp.h | 75 ++

[FFmpeg-devel] [PATCH v3 3/9] lavc/vp8dsp: R-V V put_bilin_hv

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_bilin4_hv_c: 561.0 vp8_put_bilin4_hv_rvv_i32: 232.7 vp8_put_bilin8_hv_c: 2162.7 vp8_put_bilin8_hv_rvv_i32: 506.7 vp8_put_bilin16_hv_c: 4769.7 vp8_put_bilin16_hv_rvv_i32: 556.7 --- libavcodec/riscv/vp8dsp_init.c | 13 + libavcodec/riscv/vp8dsp_rvv.S |

[FFmpeg-devel] [PATCH v3 2/9] lavc/vp8dsp: R-V V put_bilin_h v

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_bilin4_h_c: 367.0 vp8_put_bilin4_h_rvv_i32: 137.7 vp8_put_bilin4_v_c: 377.0 vp8_put_bilin4_v_rvv_i32: 137.7 vp8_put_bilin8_h_c: 1431.0 vp8_put_bilin8_h_rvv_i32: 297.5 vp8_put_bilin8_v_c: 1449.0 vp8_put_bilin8_v_rvv_i32: 297.5 vp8_put_bilin16_h_c: 2839.0

[FFmpeg-devel] [PATCH v3 5/9] lavc/vp8dsp: R-V V put_epel v

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_epel4_v4_c: 11.0 vp8_put_epel4_v4_rvv_i32: 5.0 vp8_put_epel4_v6_c: 16.5 vp8_put_epel4_v6_rvv_i32: 6.2 vp8_put_epel8_v4_c: 43.7 vp8_put_epel8_v4_rvv_i32: 11.2 vp8_put_epel8_v6_c: 68.7 vp8_put_epel8_v6_rvv_i32: 13.2 vp8_put_epel16_v4_c: 92.5 vp8_put_epel16_v4_rvv_i32:

[FFmpeg-devel] [PATCH] lavd/v4l2: Use proper field type for second parameter of ioctl() with BSD's

2024-05-05 Thread Brad Smith
lavd/v4l2: Use proper field type for second parameter of ioctl() with BSD's The proper type was used until 73251678c83cbe24d08264da693411b166239bc7. This covers all of the OS's that currently have V4L2 support, permutations of Linux glibc/musl, Android bionic, FreeBSD, NetBSD, OpenBSD, Solaris.

Re: [FFmpeg-devel] [PATCH v3] avformat/framecrcenc: compute the checksum for side data

2024-05-05 Thread Michael Niedermayer
On Sat, May 04, 2024 at 10:54:59PM -0300, James Almer wrote: > On 5/4/2024 10:45 PM, Michael Niedermayer wrote: > > On Sat, May 04, 2024 at 06:02:25PM -0300, James Almer wrote: > > > > > > > > > On 5/4/2024 5:58 PM, Michael Niedermayer wrote: > > > > On Sat, May 04, 2024 at 12:16:00PM -0300,

[FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD

2024-05-05 Thread Brad Smith
avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD Use the machdep.altivec sysctl on NetBSD for AltiVec detection as is done with OpenBSD. Signed-off-by: Brad Smith --- libavutil/ppc/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavutil/ppc/cpu.c

[FFmpeg-devel] [PATCH] avcodec/h264_slice: Remove dead sps check

2024-05-05 Thread Michael Niedermayer
Fixes: CID1439574 Dereference after null check Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/h264_slice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 90d37f60848..ce2c4caca1b

[FFmpeg-devel] [PATCH 16/24] avfilter/Makefile: Add missing guided->framesync dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 5543b6bf81..91a0bf913b 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -331,7 +331,7 @@

[FFmpeg-devel] [PATCH 17/24] avfilter/vf_convolution: Fix compilation with sobel disabled

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/convolution.h| 2 +- libavfilter/vf_convolution.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/convolution.h b/libavfilter/convolution.h index ee7477ef89..1196c1fcdf 100644 --- a/libavfilter/convolution.h

[FFmpeg-devel] [PATCH 14/24] avfilter/Makefile: Add scale(2ref)->framesync dependency

2024-05-05 Thread Andreas Rheinhardt
Forgotten in e82a3997cdd6c0894869b33ba42430ac3c57fb3b. Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index cb45697251..5543b6bf81 100644 --- a/libavfilter/Makefile

[FFmpeg-devel] [PATCH 18/24] avfilter/x86/Makefile: Add missing dependencies for sobel filter

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/x86/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/x86/Makefile b/libavfilter/x86/Makefile index e87481bd7a..f63dc45e02 100644 --- a/libavfilter/x86/Makefile +++ b/libavfilter/x86/Makefile @@ -28,6 +28,7 @@

[FFmpeg-devel] [PATCH 13/24] avfilter/vf_xmedian: Define OFFSET, FLAGS macros unconditionally

2024-05-05 Thread Andreas Rheinhardt
They are currently defined inside the #if CONFIG_XMEDIAN_FILTER block. Fixes standalone compilation of the tmedian filter. Broken in f58939affe39f39038cbdfc6b731b1c9caed3caf. Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_xmedian.c | 8 1 file changed, 4 insertions(+), 4

[FFmpeg-devel] [PATCH 15/24] avfilter/vsrc_testsrc: Fix compilation of colorchart filter

2024-05-05 Thread Andreas Rheinhardt
Move set_color() out of the CONFIG_TESTSRC2_FILTER block. Signed-off-by: Andreas Rheinhardt --- libavfilter/vsrc_testsrc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 273a852f82..41c2e70068

[FFmpeg-devel] [PATCH 12/24] avfilter/Makefile: Add missing colormap->framesync dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 5c6568689b..cb45697251 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -240,7 +240,7 @@

[FFmpeg-devel] [PATCH 11/24] avfilter/Makefile: Add missing tiltshelf entry

2024-05-05 Thread Andreas Rheinhardt
Forgotten in 525f83becd7c1cc8de4c1def6584510026c12f23. Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 8571e9e2af..5c6568689b 100644 --- a/libavfilter/Makefile +++

[FFmpeg-devel] [PATCH] avfilter/vf_scale: don't expose framesync options in vf_scale2ref

2024-05-05 Thread James Almer
It doesn't use it. Signed-off-by: James Almer --- libavfilter/vf_scale.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 60d301dcd8..07e9025335 100644 --- a/libavfilter/vf_scale.c +++

[FFmpeg-devel] [PATCH] avfilter/af_volume: Don't free options manually

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/af_volume.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 5a3c9220f4..b3dd57c5e5 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -127,7 +127,6 @@ static av_cold

[FFmpeg-devel] [PATCH 2/2] avfilter/vf_scale: properly reinitialize framesync

2024-05-05 Thread James Almer
Fixes leaks as reported by ASAN and Valgrind. Signed-off-by: James Almer --- libavfilter/vf_scale.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 07e9025335..841075193e 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c

[FFmpeg-devel] [PATCH 10/24] avformat/Makefile: Add asf_muxer->asf_tags.o dependency

2024-05-05 Thread Andreas Rheinhardt
Forgotten in 493356cc0bd8386a247ed79e4ea381e8fbdbd057. Signed-off-by: Andreas Rheinhardt --- libavformat/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index 8efe26b6df..2d4e0e0c95 100644 --- a/libavformat/Makefile +++

[FFmpeg-devel] [PATCH 21/24] avfilter/x86/Makefile: Fix standalone build of haldclut filter

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/x86/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/x86/Makefile b/libavfilter/x86/Makefile index f63dc45e02..c05000d7fd 100644 --- a/libavfilter/x86/Makefile +++ b/libavfilter/x86/Makefile @@ -12,6 +12,7 @@

[FFmpeg-devel] [PATCH 22/24] avfilter/Makefile: Add missing identity->framesync dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 08c60f782f..ea5df10548 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -351,7 +351,7 @@

[FFmpeg-devel] [PATCH 23/24] configure: Add missing identity filter->scene_sad dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 412bb52a7d..bea4547e20 100755 --- a/configure +++ b/configure @@ -3859,6 +3859,7 @@ histeq_filter_deps="gpl" hqdn3d_filter_deps="gpl" iccdetect_filter_deps="lcms2"

[FFmpeg-devel] [PATCH 24/24] avfilter/Makefile: Add missing morpho->framesync dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index ea5df10548..5992fd161f 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -391,7 +391,7 @@

[FFmpeg-devel] [PATCH 20/24] avfilter/vf_lut3d: Fix standalone build of lut1d

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_lut3d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index b3ddd3e69f..d8ceb2a424 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -,6 +,8 @@

[FFmpeg-devel] [PATCH 19/24] avfilter/Makefile: Add missing multiply->framesync dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 91a0bf913b..08c60f782f 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -393,7 +393,7 @@

[FFmpeg-devel] [PATCH 1/2] avfilter/framesync: reset nb_in on allocation failure

2024-05-05 Thread James Almer
Signed-off-by: James Almer --- libavfilter/framesync.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/framesync.c b/libavfilter/framesync.c index a691136f34..535fbe9c7c 100644 --- a/libavfilter/framesync.c +++ b/libavfilter/framesync.c @@ -95,8 +95,11 @@ int

[FFmpeg-devel] [PATCH 1/9] configure: Add missing dirac_decoder->qpeldsp dependency

2024-05-05 Thread Andreas Rheinhardt
Forgotten in fd0e37f126b3dc2d0c352869cb8e5f568e5906f3. Signed-off-by: Andreas Rheinhardt --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ed74583a6f..61049017d8 100755 --- a/configure +++ b/configure @@ -2915,7 +2915,7 @@

[FFmpeg-devel] [PATCH 9/9] avcodec/Makefile: Fix intrax8 objects

2024-05-05 Thread Andreas Rheinhardt
Forgotten in d1d30edf42da29fe4ab33c529112381cfea0a254. This fixes standalone compilation of the VC-1 based decoders when using shared builds (for static builds, nothing pulls in msmpeg4data.o, yet for shared builds the default behaviour of linkers is different, leading to undefined references

[FFmpeg-devel] [PATCH 8/9] configure: Add wmv2dsp->qpeldsp dependency

2024-05-05 Thread Andreas Rheinhardt
It reuses e.g. ff_put_pixels8_l2_8() directly even though it never initializes a QpelDSPContext. Fixes standalone compilation of the wmv2 encoder (the decoder already has a qpeldsp dependency via the h263 decoder). Signed-off-by: Andreas Rheinhardt --- configure | 1 + 1 file changed, 1

Re: [FFmpeg-devel] [PATCH 03/10] lavc/vp8dsp: R-V V put_bilin_v

2024-05-05 Thread Rémi Denis-Courmont
Le lauantaina 4. toukokuuta 2024, 17.48.32 EEST u...@foxmail.com a écrit : > From: sunyuechi > > C908: > vp8_put_bilin4_v_c: 383.5 > vp8_put_bilin4_v_rvv_i32: 139.7 > vp8_put_bilin8_v_c: 1455.7 > vp8_put_bilin8_v_rvv_i32: 299.7 > vp8_put_bilin16_v_c: 2863.7 > vp8_put_bilin16_v_rvv_i32: 347.7 >

[FFmpeg-devel] [PATCH] lavc/vc1dsp: R-V V mspel_pixels

2024-05-05 Thread uk7b
From: sunyuechi vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_c: 875.2 vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_rvv_i32: 141.7 vc1dsp.avg_vc1_mspel_pixels_tab[1][0]_c: 226.5 vc1dsp.avg_vc1_mspel_pixels_tab[1][0]_rvv_i64: 56.2 vc1dsp.put_vc1_mspel_pixels_tab[0][0]_c: 529.5

Re: [FFmpeg-devel] [RFC] 5 year plan & Inovation

2024-05-05 Thread Rémi Denis-Courmont
Le lauantaina 4. toukokuuta 2024, 23.35.34 EEST Michael Niedermayer a écrit : > now compare to the linux kernel > It uses mailing lists Sorry but that is at best misleading, and at worse, plain wrong. The top-level work flow for the Linux kernel is neither mailing list, nor web forge, but CLI

Re: [FFmpeg-devel] [PATCH v4 1/4] doc: Explain what "context" means

2024-05-05 Thread Andreas Rheinhardt
Andrew Sayers: > Derived from detailed explanations kindly provided by Stefano Sabatini: > https://ffmpeg.org/pipermail/ffmpeg-devel/2024-April/325903.html > --- > doc/context.md | 308 + > 1 file changed, 308 insertions(+) > create mode 100644

Re: [FFmpeg-devel] [PATCH] lavc/vc1dsp: R-V V mspel_pixels

2024-05-05 Thread flow gg
> Is it not faster to compute the address ahead of time, e.g.: > Ditto below and in other patches. Yes, update here and I will check other patches > Copying 64-bit quantities should not need RVV at all. Maybe the C version needs to be improved instead, but if that is not possible, then an RVI

Re: [FFmpeg-devel] [RFC] 5 year plan & Inovation

2024-05-05 Thread Paul B Mahol
On Sun, May 5, 2024 at 10:14 AM Rémi Denis-Courmont wrote: > Le lauantaina 4. toukokuuta 2024, 23.35.34 EEST Michael Niedermayer a > écrit : > > now compare to the linux kernel > > It uses mailing lists > > Sorry but that is at best misleading, and at worse, plain wrong. > > The top-level work

Re: [FFmpeg-devel] [PATCH] avcodec/allcodecs: Remove LIBX264_CONST

2024-05-05 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Possible since 71669f2ad54d92a40dc2748cd5bd6ca4c8651231. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/allcodecs.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) > > diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c > index

Re: [FFmpeg-devel] [PATCH v3 1/3] doc: Explain what "context" means

2024-05-05 Thread Stefano Sabatini
On date Monday 2024-04-29 10:10:35 +0100, Andrew Sayers wrote: > On Mon, Apr 22, 2024 at 07:05:12PM +0200, Stefano Sabatini wrote: [...] > > I don't have a strong opinion, but I'd probably focus on providing a > > typical example of a common API (check doc/examples). Also I see here > > there is a

[FFmpeg-devel] [PATCH 5/9] avcodec/Makefile, v408(dec|enc): Remove remnants of AYUV codecs

2024-05-05 Thread Andreas Rheinhardt
Forgotten in 9ee59b63f5ea37700916815538c32dbcadc4a512. Signed-off-by: Andreas Rheinhardt --- libavcodec/Makefile | 2 -- libavcodec/v408dec.c | 4 libavcodec/v408enc.c | 5 - 3 files changed, 11 deletions(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index

[FFmpeg-devel] [PATCH 7/9] avcodec/Makefile: Correct name of cbd2_dpcm decoder

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index cfd8e06eba..1f5a679116 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -285,7 +285,7 @@

[FFmpeg-devel] [PATCH 6/9] Remove remnants of prores_lgpl decoder

2024-05-05 Thread Andreas Rheinhardt
Forgotten in 5c6a3604f0592786db557c82de93112745597a2d. Signed-off-by: Andreas Rheinhardt --- libavcodec/tests/x86/dct.c | 4 ++-- libavcodec/x86/Makefile| 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/tests/x86/dct.c b/libavcodec/tests/x86/dct.c index

[FFmpeg-devel] [PATCH 3/9] configure: Add missing atrac3p(al) decoder->sinewin dependency

2024-05-05 Thread Andreas Rheinhardt
atrac3plusdsp.o needs it. Broken in 34330adb29d67099ea86435a79161c872d720b7b. Signed-off-by: Andreas Rheinhardt --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index ddca852f18..515d765740 100755 --- a/configure +++ b/configure @@ -2903,6 +2903,8 @@

[FFmpeg-devel] [PATCH 4/9] configure: Add missing ftr decoder->adts_header dependency

2024-05-05 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 515d765740..308b29e0c0 100755 --- a/configure +++ b/configure @@ -2946,6 +2946,7 @@ flv_decoder_select="h263_decoder" flv_encoder_select="h263_encoder"

[FFmpeg-devel] [PATCH 2/9] configure: Add missing pdv decoder->inflate_wrapper dependency

2024-05-05 Thread Andreas Rheinhardt
A dependency on zlib is not enough. Signed-off-by: Andreas Rheinhardt --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 61049017d8..ddca852f18 100755 --- a/configure +++ b/configure @@ -3029,7 +3029,7 @@ notchlc_decoder_select="lzf"

Re: [FFmpeg-devel] [PATCH 01/10] lavc/vp9dsp: R-V V ipred vert

2024-05-05 Thread Rémi Denis-Courmont
Le lauantaina 4. toukokuuta 2024, 18.03.04 EEST u...@foxmail.com a écrit : > From: sunyuechi > > C908: > vp9_vert_8x8_8bpp_c: 22.0 > vp9_vert_8x8_8bpp_rvv_i64: 18.5 > vp9_vert_16x16_8bpp_c: 71.2 > vp9_vert_16x16_8bpp_rvv_i32: 50.7 > vp9_vert_32x32_8bpp_c: 300.2 > vp9_vert_32x32_8bpp_rvv_i32:

Re: [FFmpeg-devel] [PATCH v4 1/4] doc: Explain what "context" means

2024-05-05 Thread Andrew Sayers
On Sun, May 05, 2024 at 10:31:18AM +0200, Andreas Rheinhardt wrote: > Andrew Sayers: > > Derived from detailed explanations kindly provided by Stefano Sabatini: > > https://ffmpeg.org/pipermail/ffmpeg-devel/2024-April/325903.html > > --- > > doc/context.md | 308

[FFmpeg-devel] [PATCH 2/2] libavfilter/signature_lookup: fix jaccard distance

2024-05-05 Thread Gerion Entrup
Actually, the jaccard distance is defined as D = 1 - intersect / union. Additionally, the distance value is compared against a constant that must be between 0 and 1, which is not the case here. Both facts together has led to the fact, that the function always returned a matching course signature.

[FFmpeg-devel] [PATCH 1/2] libavfilter/signature_lookup: fix possible division by zero

2024-05-05 Thread Gerion Entrup
--- libavfilter/signature_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c index a0ca818a9b..b39a3e225b 100644 --- a/libavfilter/signature_lookup.c +++ b/libavfilter/signature_lookup.c @@ -128,7 +128,7 @@

[FFmpeg-devel] [PATCH] avcodec/h2645_sei: Remove dead checks

2024-05-05 Thread Michael Niedermayer
Fixes: CID1596534 Dereference after null check Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/h2645_sei.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/h2645_sei.c b/libavcodec/h2645_sei.c index 96a22e7cf6c..1deb76c765b

Re: [FFmpeg-devel] [PATCH] avcodec/mpegvideo_enc: Fix 1 line and one column images

2024-05-05 Thread Michael Niedermayer
On Mon, Apr 08, 2024 at 08:00:58PM +0200, Andreas Rheinhardt wrote: > Paul B Mahol: > > On Mon, Apr 8, 2024 at 6:49 PM Michael Niedermayer > > wrote: > > > >> Fixes: Ticket10952 > >> Fixes: poc21ffmpeg > >> Signed-off-by: Michael Niedermayer > >> --- > >> libavcodec/mpegvideo_enc.c | 4 ++-- >

Re: [FFmpeg-devel] [PATCH] lavc/vc1dsp: R-V V mspel_pixels

2024-05-05 Thread Rémi Denis-Courmont
Le sunnuntaina 5. toukokuuta 2024, 12.18.56 EEST flow gg a écrit : > > Does MF2 actually improve perfs over M1 here? > > The difference here seems very small, but when both mf2 and m1 are correct, > the test results have only shown mf2 to be better, so I want to use mf2. I can live with that.

Re: [FFmpeg-devel] [PATCH] avformat/file: fail for non-numerical arguments to pipe:

2024-05-05 Thread Marton Balint
On Mon, 29 Apr 2024, Nils Goroll wrote: Before this patch, the implementation of pipe: inputs/outputs would silently fall back to stdin/stdout for any argument not successfully parsed by strtol(). This patch introduces an explicit error for any non-numerical arguments, which should avoid

Re: [FFmpeg-devel] [PATCH v3 1/3] avformat/network: add ff_neterrno2() for cases where we already have an errno

2024-05-05 Thread Marton Balint
On Fri, 19 Apr 2024, Andrew Sayers wrote: For example, WSAStartup()'s documentation says: "A call to the WSAGetLastError function is not needed and should not be used" --- libavformat/network.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/network.c

Re: [FFmpeg-devel] [PATCH v4 2/3] avformat/network: Return 0/AVERROR from ff_network_init()

2024-05-05 Thread Marton Balint
On Sat, 20 Apr 2024, Andrew Sayers wrote: --- libavformat/avio.c| 4 ++-- libavformat/network.c | 7 +++ libavformat/rtsp.c| 12 ++-- libavformat/rtspdec.c | 4 ++-- libavformat/sapdec.c | 4 ++-- libavformat/sapenc.c | 4 ++-- 6 files changed, 17 insertions(+), 18

Re: [FFmpeg-devel] [PATCH v3 1/3] doc: Explain what "context" means

2024-05-05 Thread Andrew Sayers
I'm still travelling, so the following thoughts might be a bit half-formed. But I wanted to get some feedback before sitting down for a proper think. On Sun, May 05, 2024 at 09:29:10AM +0200, Stefano Sabatini wrote: > On date Monday 2024-04-29 10:10:35 +0100, Andrew Sayers wrote: > > On Mon, Apr

[FFmpeg-devel] [PATCH] lavc/vaapi_h264: Don't try to merge fields in DPB for non-field pics

2024-05-05 Thread David Rosca
This path can be hit when there are missing references while decoding progressive stream and would completely break the DPB contents. --- libavcodec/vaapi_h264.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/libavcodec/vaapi_h264.c

[FFmpeg-devel] [PATCH 01/10] lavc/vp8dsp: R-V put_vp8_pixels

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_pixels4_c: 78.0 vp8_put_pixels4_rvi: 33.7 vp8_put_pixels8_c: 278.0 vp8_put_pixels8_rvi: 55.0 vp8_put_pixels16_c: 999.0 vp8_put_pixels16_rvi: 86.7 --- libavcodec/riscv/Makefile | 1 + libavcodec/riscv/vp8dsp.h | 75 ++

[FFmpeg-devel] [PATCH 04/10] lavc/vp8dsp: R-V V put_bilin_hv

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_bilin4_hv_c: 567.7 vp8_put_bilin4_hv_rvv_i32: 255.7 vp8_put_bilin8_hv_c: 2169.5 vp8_put_bilin8_hv_rvv_i32: 528.7 vp8_put_bilin16_hv_c: 4777.5 vp8_put_bilin16_hv_rvv_i32: 587.7 --- libavcodec/riscv/vp8dsp_init.c | 13 + libavcodec/riscv/vp8dsp_rvv.S |

[FFmpeg-devel] [PATCH 03/10] lavc/vp8dsp: R-V V put_bilin_v

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_bilin4_v_c: 383.5 vp8_put_bilin4_v_rvv_i32: 139.7 vp8_put_bilin8_v_c: 1455.7 vp8_put_bilin8_v_rvv_i32: 299.7 vp8_put_bilin16_v_c: 2863.7 vp8_put_bilin16_v_rvv_i32: 347.7 --- libavcodec/riscv/vp8dsp_init.c | 7 +++ libavcodec/riscv/vp8dsp_rvv.S | 25

[FFmpeg-devel] [PATCH 07/10] lavc/vp8dsp: R-V V put_epel hv

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_epel4_h4v4_c: 20.0 vp8_put_epel4_h4v4_rvv_i32: 11.0 vp8_put_epel4_h4v6_c: 25.2 vp8_put_epel4_h4v6_rvv_i32: 13.5 vp8_put_epel4_h6v4_c: 22.2 vp8_put_epel4_h6v4_rvv_i32: 14.5 vp8_put_epel4_h6v6_c: 29.0 vp8_put_epel4_h6v6_rvv_i32: 15.7 vp8_put_epel8_h4v4_c: 73.0

[FFmpeg-devel] [PATCH 05/10] lavc/vp8dsp: R-V V put_epel h

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_epel4_h4_c: 10.7 vp8_put_epel4_h4_rvv_i32: 5.0 vp8_put_epel4_h6_c: 15.0 vp8_put_epel4_h6_rvv_i32: 6.2 vp8_put_epel8_h4_c: 43.2 vp8_put_epel8_h4_rvv_i32: 11.2 vp8_put_epel8_h6_c: 57.5 vp8_put_epel8_h6_rvv_i32: 13.5 vp8_put_epel16_h4_c: 92.5 vp8_put_epel16_h4_rvv_i32:

[FFmpeg-devel] [PATCH 02/10] lavc/vp8dsp: R-V V put_bilin_h

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_bilin4_h_c: 373.5 vp8_put_bilin4_h_rvv_i32: 158.7 vp8_put_bilin8_h_c: 1437.7 vp8_put_bilin8_h_rvv_i32: 318.7 vp8_put_bilin16_h_c: 2845.7 vp8_put_bilin16_h_rvv_i32: 374.7 --- libavcodec/riscv/vp8dsp_init.c | 14 +++ libavcodec/riscv/vp8dsp_rvv.S | 45

[FFmpeg-devel] [PATCH 09/10] lavc/vp8dsp: R-V V loop_filter_inner

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_loop_filter8uv_inner_v_c: 738.2 vp8_loop_filter8uv_inner_v_rvv_i32: 455.2 vp8_loop_filter16y_inner_h_c: 685.0 vp8_loop_filter16y_inner_h_rvv_i32: 497.0 vp8_loop_filter16y_inner_v_c: 743.7 vp8_loop_filter16y_inner_v_rvv_i32: 295.7 --- libavcodec/riscv/vp8dsp_init.c |

[FFmpeg-devel] [PATCH 06/10] lavc/vp8dsp: R-V V put_epel v

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_put_epel4_v4_c: 11.0 vp8_put_epel4_v4_rvv_i32: 5.0 vp8_put_epel4_v6_c: 16.5 vp8_put_epel4_v6_rvv_i32: 6.2 vp8_put_epel8_v4_c: 43.7 vp8_put_epel8_v4_rvv_i32: 11.2 vp8_put_epel8_v6_c: 68.7 vp8_put_epel8_v6_rvv_i32: 13.2 vp8_put_epel16_v4_c: 92.5 vp8_put_epel16_v4_rvv_i32:

Re: [FFmpeg-devel] [PATCH 02/10] lavc/vp8dsp: R-V V put_bilin_h

2024-05-05 Thread Rémi Denis-Courmont
Le sunnuntaina 5. toukokuuta 2024, 19.45.28 EEST u...@foxmail.com a écrit : > From: sunyuechi > > C908: > vp8_put_bilin4_h_c: 373.5 > vp8_put_bilin4_h_rvv_i32: 158.7 > vp8_put_bilin8_h_c: 1437.7 > vp8_put_bilin8_h_rvv_i32: 318.7 > vp8_put_bilin16_h_c: 2845.7 > vp8_put_bilin16_h_rvv_i32: 374.7 >

Re: [FFmpeg-devel] [PATCH 01/10] lavc/vp8dsp: R-V put_vp8_pixels

2024-05-05 Thread flow gg
Made these changes according to the previous review: moved func into macro, added macro vset to reduce if else, used rvi, supplemented __riscv_xlen 于2024年5月6日周一 00:45写道: > From: sunyuechi > > C908: > vp8_put_pixels4_c: 78.0 > vp8_put_pixels4_rvi: 33.7 > vp8_put_pixels8_c: 278.0 >

[FFmpeg-devel] [PATCH 10/10] lavc/vp8dsp: R-V V loop_filter

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_loop_filter8uv_v_c: 745.5 vp8_loop_filter8uv_v_rvv_i32: 467.2 vp8_loop_filter16y_h_c: 674.2 vp8_loop_filter16y_h_rvv_i32: 553.0 vp8_loop_filter16y_v_c: 732.7 vp8_loop_filter16y_v_rvv_i32: 324.5 --- libavcodec/riscv/vp8dsp_init.c | 4 +++ libavcodec/riscv/vp8dsp_rvv.S

[FFmpeg-devel] [PATCH 08/10] lavc/vp8dsp: R-V V loop_filter_simple

2024-05-05 Thread uk7b
From: sunyuechi C908: vp8_loop_filter_simple_h_c: 416.0 vp8_loop_filter_simple_h_rvv_i32: 187.5 vp8_loop_filter_simple_v_c: 429.7 vp8_loop_filter_simple_v_rvv_i32: 104.0 --- libavcodec/riscv/vp8dsp_init.c | 5 ++ libavcodec/riscv/vp8dsp_rvv.S | 85 ++ 2 files

[FFmpeg-devel] [PATCH v4 3/5] lavc: Remove libva 1.x support

2024-05-05 Thread Mark Thompson
libva 2.0 was released in 2017 and the 2.x versions are included in all supported distributions nowadays. --- libavcodec/vaapi_decode.c | 39 ++--- libavcodec/vaapi_encode.c | 78 ++ libavcodec/vaapi_encode.h | 9

[FFmpeg-devel] [PATCH v4 1/5] configure: Remove libva 1.x support

2024-05-05 Thread Mark Thompson
libva 2.0 was released in 2017 and the 2.x versions are included in all supported distributions nowadays. Various features no longer need any configure check after this command, including all codecs except AV1. Note that the libva version is the API version plus one, so this is removing support

[FFmpeg-devel] [PATCH v4 4/5] lavu: Remove libva 1.x support

2024-05-05 Thread Mark Thompson
libva 2.0 was released in 2017 and the 2.x versions are included in all supported distributions nowadays. --- libavutil/hwcontext_vaapi.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index

[FFmpeg-devel] [PATCH v4 5/5] hwcontext_vaapi: Deprecate quirks

2024-05-05 Thread Mark Thompson
These only apply to obsolete drivers which do not work with the now-required libva 2.x. --- libavutil/hwcontext_vaapi.c | 123 ++-- libavutil/hwcontext_vaapi.h | 15 + 2 files changed, 50 insertions(+), 88 deletions(-) diff --git a/libavutil/hwcontext_vaapi.c

[FFmpeg-devel] [PATCH v4 2/5] lavfi: Remove libva 1.x support

2024-05-05 Thread Mark Thompson
libva 2.0 was released in 2017 and the 2.x versions are included in all supported distributions nowadays. --- libavfilter/vaapi_vpp.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/libavfilter/vaapi_vpp.c b/libavfilter/vaapi_vpp.c index