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

2024-05-12 Thread Kieran Kunhya
On Mon, 13 May 2024, 02:32 Michael Niedermayer, wrote: > On Mon, May 06, 2024 at 03:23:07AM +0200, Michael Niedermayer wrote: > > Fixes: CID1439574 Dereference after null check > > > > Sponsored-by: Sovereign Tech Fund > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/h264_slice.c

Re: [FFmpeg-devel] [PATCH 4/4] avcodec/qsvdec: Check av_image_get_buffer_size() for failure

2024-05-12 Thread Xiang, Haihao
On Ma, 2024-05-13 at 03:20 +0200, Michael Niedermayer wrote: > Fixes: CID1477406 Improper use of negative value > > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer > --- >  libavcodec/qsvdec.c | 9 ++--- >  1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git

Re: [FFmpeg-devel] [PATCH 1/2] libavutil/base64: Try not to write over the array end

2024-05-12 Thread Michael Niedermayer
On Sat, May 11, 2024 at 03:22:53AM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavutil/base64.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) will apply patchset [...] -- Michael GnuPG fingerprint:

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself as *BSD maintainer

2024-05-12 Thread Michael Niedermayer
On Sat, May 11, 2024 at 08:33:06PM -0400, Brad Smith wrote: > MAINTAINERS: add myself as *BSD maintainer > > I try to help out with *BSD patches or build related issues where I can. > > Signed-off-by: Brad Smith > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) will apply thx

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/decode: decode_simple_internal() only implements audio and video

2024-05-12 Thread Michael Niedermayer
On Fri, May 03, 2024 at 11:54:58PM +0200, Michael Niedermayer wrote: > Fixes: CID1538861 Uninitialized scalar variable > > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer > --- > libavcodec/decode.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) will apply

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/fmvc: remove dead assignment

2024-05-12 Thread Michael Niedermayer
On Sun, May 05, 2024 at 01:52:00AM +0200, Michael Niedermayer wrote: > Fixes: CID1529220 Unused value > > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer > --- > libavcodec/fmvc.c | 1 - > 1 file changed, 1 deletion(-) will apply [...] -- Michael GnuPG fingerprint:

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

2024-05-12 Thread Michael Niedermayer
On Mon, May 06, 2024 at 03:23:07AM +0200, Michael Niedermayer wrote: > 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(-) will apply

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

2024-05-12 Thread Michael Niedermayer
On Mon, May 06, 2024 at 02:38:45AM +0200, Michael Niedermayer wrote: > 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(-) will

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/lpc: copy levenson coeffs only when they have been computed

2024-05-12 Thread Michael Niedermayer
On Sun, May 12, 2024 at 02:29:57AM +0200, Lynne via ffmpeg-devel wrote: > On 12/05/2024 02:18, Michael Niedermayer wrote: > > On Sun, May 12, 2024 at 02:13:06AM +0200, Lynne via ffmpeg-devel wrote: > > > On 12/05/2024 02:03, Michael Niedermayer wrote: > > > > Fixes: CID1473514 Uninitialized scalar

[FFmpeg-devel] [PATCH 4/4] avcodec/qsvdec: Check av_image_get_buffer_size() for failure

2024-05-12 Thread Michael Niedermayer
Fixes: CID1477406 Improper use of negative value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/qsvdec.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index ed0bfe4c8b8..a51ddace622

[FFmpeg-devel] [PATCH 3/4] avcodec/proresenc_anatoliy: Assert that AV_PROFILE_UNKNOWN is replaced

2024-05-12 Thread Michael Niedermayer
If its not replaced we would have a negative index used in an array potentially Helps: CID1440385 Negative array index read Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/proresenc_anatoliy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[FFmpeg-devel] [PATCH 2/4] avcodec/pcm-dvdenc: 64bit pkt-size

2024-05-12 Thread Michael Niedermayer
It seems nothing prevents such overflow even though odd Fixes: CID1441934 Unintentional integer overflow Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/pcm-dvdenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pcm-dvdenc.c

[FFmpeg-devel] [PATCH 1/4] avcodec/notchlc: Check init_get_bits8() for failure

2024-05-12 Thread Michael Niedermayer
Fixes: CID1500300 Unchecked return value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/notchlc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/notchlc.c b/libavcodec/notchlc.c index 6dd3f884407..30427f4ba92 100644 ---

[FFmpeg-devel] [PATCH] tests/checkasm/llauddsp: Avoid UB integer overflow

2024-05-12 Thread Andreas Rheinhardt
The only multiplicators used in scalarproduct_and_madd_* are -1, 0 and +1. Yet it is of type int and the checkasm test uses the complete range of int for it, leading to overflows that don't happen for actual users. Fix this by using a more reasonable range for mul: Given that it is used in v1[i]

[FFmpeg-devel] [PATCH 10/10] checkasm/flacdsp: add a test for lpc33

2024-05-12 Thread James Almer
Signed-off-by: James Almer --- tests/checkasm/flacdsp.c | 32 1 file changed, 32 insertions(+) diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c index 96b7d05f7e..6f8e8817b5 100644 --- a/tests/checkasm/flacdsp.c +++ b/tests/checkasm/flacdsp.c @@

[FFmpeg-devel] [PATCH 09/10] avcodec/flacdsp: split off lpc33 into a dsp function

2024-05-12 Thread James Almer
Signed-off-by: James Almer --- libavcodec/flacdec.c | 7 +-- libavcodec/flacdsp.c | 15 +++ libavcodec/flacdsp.h | 2 ++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 6e6a2896b4..460d3bc01e 100644 ---

Re: [FFmpeg-devel] [PATCH 6/8 v2] x86/flacdsp: add a SSE2 version of wasted32

2024-05-12 Thread Lynne via ffmpeg-devel
On 12/05/2024 20:51, James Almer wrote: flac_wasted_32_c: 851.3 flac_wasted_32_sse2: 41.3 Signed-off-by: James Almer --- libavcodec/x86/flacdsp.asm| 24 libavcodec/x86/flacdsp_init.c | 3 +++ 2 files changed, 27 insertions(+) diff --git

Re: [FFmpeg-devel] [PATCH v2 40/71] avcodec/mpegvideo_enc: Move copying properties to alloc_picture()

2024-05-12 Thread Michael Niedermayer
On Sat, May 11, 2024 at 10:51:04PM +0200, Andreas Rheinhardt wrote: > This way said function sets everything (except for the actual > contents of the frame's data). Also rename it to prepare_picture() > given its new role. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/mpegvideo_enc.c

[FFmpeg-devel] [PATCHv2 2/2] lavc/flacdsp: R-V V flac_wasted33

2024-05-12 Thread Rémi Denis-Courmont
T-Head C908: flac_wasted_33_c: 786.2 flac_wasted_33_rvv_i64: 486.5 --- libavcodec/riscv/flacdsp_init.c | 4 libavcodec/riscv/flacdsp_rvv.S | 16 2 files changed, 20 insertions(+) diff --git a/libavcodec/riscv/flacdsp_init.c b/libavcodec/riscv/flacdsp_init.c index

Re: [FFmpeg-devel] [PATCH 1/2] lavc/flacdsp: R-V V flac_wasted32

2024-05-12 Thread Rémi Denis-Courmont
Le sunnuntaina 12. toukokuuta 2024, 21.37.28 EEST James Almer a écrit : > Not sure if you're taking it into account, but the minimum blocksize is > 16 Granted, this only fills a single 8-vector vector group (v8-v15), so only a quarter of the register bank (v0-v31), which is unusually low. But

[FFmpeg-devel] [PATCH 8/8 v2] x86/flacdsp: add an SSE4 version of wasted33

2024-05-12 Thread James Almer
flac_wasted_33_c: 214.1 flac_wasted_33_sse4: 103.2 Signed-off-by: James Almer --- Removed the AVX2 one as the lane crossing in pmovsxdq removed pretty much all speed up for processing twice the amount of data. libavcodec/x86/flacdsp.asm| 25 +

[FFmpeg-devel] [PATCH 6/8 v2] x86/flacdsp: add a SSE2 version of wasted32

2024-05-12 Thread James Almer
flac_wasted_32_c: 851.3 flac_wasted_32_sse2: 41.3 Signed-off-by: James Almer --- libavcodec/x86/flacdsp.asm| 24 libavcodec/x86/flacdsp_init.c | 3 +++ 2 files changed, 27 insertions(+) diff --git a/libavcodec/x86/flacdsp.asm b/libavcodec/x86/flacdsp.asm index

Re: [FFmpeg-devel] [PATCH 1/2] lavc/flacdsp: R-V V flac_wasted32

2024-05-12 Thread James Almer
On 5/12/2024 2:07 PM, Rémi Denis-Courmont wrote: T-Head C908: flac_wasted_32_c: 949.0 flac_wasted_32_rvv_i32: 278.7 --- libavcodec/riscv/flacdsp_init.c | 7 ++- libavcodec/riscv/flacdsp_rvv.S | 15 +++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH 2/2] lavc/flacdsp: R-V V flac_wasted33

2024-05-12 Thread Rémi Denis-Courmont
T-Head C908: flac_wasted_33_c: 1040.0 flac_wasted_33_rvv_i64: 711.2 --- libavcodec/riscv/flacdsp_init.c | 4 libavcodec/riscv/flacdsp_rvv.S | 16 2 files changed, 20 insertions(+) diff --git a/libavcodec/riscv/flacdsp_init.c b/libavcodec/riscv/flacdsp_init.c index

[FFmpeg-devel] [PATCH 1/2] lavc/flacdsp: R-V V flac_wasted32

2024-05-12 Thread Rémi Denis-Courmont
T-Head C908: flac_wasted_32_c: 949.0 flac_wasted_32_rvv_i32: 278.7 --- libavcodec/riscv/flacdsp_init.c | 7 ++- libavcodec/riscv/flacdsp_rvv.S | 15 +++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/libavcodec/riscv/flacdsp_init.c

Re: [FFmpeg-devel] [PATCH 4/8] avcodec/flacdsp: split off wasted bit handling into dsp functions

2024-05-12 Thread James Almer
On 5/12/2024 1:15 PM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- libavcodec/flacdec.c | 8 ++-- libavcodec/flacdsp.c | 20 libavcodec/flacdsp.h | 3 +++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git

[FFmpeg-devel] [PATCH 5/8 v2] checkasm/flacdsp: add a test for wasted32

2024-05-12 Thread James Almer
Signed-off-by: James Almer --- tests/checkasm/flacdsp.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c index d694c1093b..ee0897ed01 100644 --- a/tests/checkasm/flacdsp.c +++ b/tests/checkasm/flacdsp.c @@ -83,6

Re: [FFmpeg-devel] [PATCH 5/8] checkasm/flacdsp: add a test for wasted32

2024-05-12 Thread Rémi Denis-Courmont
Le sunnuntaina 12. toukokuuta 2024, 19.06.54 EEST James Almer a écrit : > Signed-off-by: James Almer > --- > tests/checkasm/flacdsp.c | 24 > 1 file changed, 24 insertions(+) > > diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c > index

Re: [FFmpeg-devel] [PATCH 4/8] avcodec/flacdsp: split off wasted bit handling into dsp functions

2024-05-12 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > libavcodec/flacdec.c | 8 ++-- > libavcodec/flacdsp.c | 20 > libavcodec/flacdsp.h | 3 +++ > 3 files changed, 25 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c > index

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

2024-05-12 Thread Ondřej Fiala
On Sat May 4, 2024 at 9:05 PM CEST, Michael Niedermayer wrote: > On Sat, May 04, 2024 at 09:11:12AM +0800, flow gg wrote: > > [...] > > If you need to use git-send-email, I may not be able to submit any code > > If you do not need to use git-send-email, it is troublesome for the > > reviewer and

[FFmpeg-devel] [PATCH 8/8] x86/flacdsp: add SSE4 and AVX2 versions of wasted33

2024-05-12 Thread James Almer
flac_wasted_33_c: 214.1 flac_wasted_33_sse4: 133.6 flac_wasted_33_avx2: 93.1 Signed-off-by: James Almer --- libavcodec/x86/flacdsp.asm| 24 libavcodec/x86/flacdsp_init.c | 6 ++ 2 files changed, 30 insertions(+) diff --git a/libavcodec/x86/flacdsp.asm

[FFmpeg-devel] [PATCH 7/8] checkasm/flacdsp: add a test for wasted33

2024-05-12 Thread James Almer
Signed-off-by: James Almer --- tests/checkasm/flacdsp.c | 21 + 1 file changed, 21 insertions(+) diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c index 343bee41ed..6abdd255a3 100644 --- a/tests/checkasm/flacdsp.c +++ b/tests/checkasm/flacdsp.c @@ -104,6

[FFmpeg-devel] [PATCH 6/8] x86/flacdsp: add a SSE2 version of wasted32

2024-05-12 Thread James Almer
flac_wasted_32_c: 851.3 flac_wasted_32_sse2: 53.3 Signed-off-by: James Almer --- libavcodec/x86/flacdsp.asm| 15 +++ libavcodec/x86/flacdsp_init.c | 3 +++ 2 files changed, 18 insertions(+) diff --git a/libavcodec/x86/flacdsp.asm b/libavcodec/x86/flacdsp.asm index

[FFmpeg-devel] [PATCH 5/8] checkasm/flacdsp: add a test for wasted32

2024-05-12 Thread James Almer
Signed-off-by: James Almer --- tests/checkasm/flacdsp.c | 24 1 file changed, 24 insertions(+) diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c index d694c1093b..343bee41ed 100644 --- a/tests/checkasm/flacdsp.c +++ b/tests/checkasm/flacdsp.c @@ -83,6

[FFmpeg-devel] [PATCH 4/8] avcodec/flacdsp: split off wasted bit handling into dsp functions

2024-05-12 Thread James Almer
Signed-off-by: James Almer --- libavcodec/flacdec.c | 8 ++-- libavcodec/flacdsp.c | 20 libavcodec/flacdsp.h | 3 +++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 91bbdc657d..6e6a2896b4 100644 ---

[FFmpeg-devel] [PATCH 3/8] x86/flacdsp: add a SSE4 version of lpc16

2024-05-12 Thread James Almer
flac_lpc_16_13_c: 2841.3 flac_lpc_16_13_sse4: 2151.8 flac_lpc_16_16_c: 3382.8 flac_lpc_16_16_sse4: 2228.3 flac_lpc_16_29_c: 5800.3 flac_lpc_16_29_sse4: 3727.3 flac_lpc_16_32_c: 5972.8 flac_lpc_16_32_sse4: 4052.3 Signed-off-by: James Almer --- libavcodec/x86/flacdsp.asm| 13 +++--

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_tns: remove unreachable code branch

2024-05-12 Thread Lynne via ffmpeg-devel
On 12/05/2024 14:24, Yotam Ofek wrote: Nope :) Last commit that touched this was 9 years ago, seems like it's an oversight that was never noticed/fixed. The native AAC encoder is stable, even if this code was supposed to behave differently, it's probably good enough as is, and I think that

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

2024-05-12 Thread uk7b
From: sunyuechi C908 X60 vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_c: 14.7 13.2 vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_rvv_i32 : 2.5 2.2 vc1dsp.avg_vc1_mspel_pixels_tab[1][0]_c: 3.7 3.5

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

2024-05-12 Thread flow gg
It seems like it can't... update using AV_CPU_FLAG_RV_MISALIGNED Rémi Denis-Courmont 于2024年5月12日周日 19:48写道: > Le perjantaina 10. toukokuuta 2024, 11.21.14 EEST u...@foxmail.com a > écrit : > > From: sunyuechi > > > > C908 X60 > >

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

2024-05-12 Thread uk7b
From: sunyuechi C908 X60 vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_c: 14.7 13.2 vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_rvv_i32 : 2.5 2.2 vc1dsp.avg_vc1_mspel_pixels_tab[1][0]_c: 3.7 3.5

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_tns: remove unreachable code branch

2024-05-12 Thread Yotam Ofek
Nope :) Last commit that touched this was 9 years ago, seems like it's an oversight that was never noticed/fixed. The native AAC encoder is stable, even if this code was supposed to behave differently, it's probably good enough as is, and I think that having this redundant conditional is bad for

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

2024-05-12 Thread Rémi Denis-Courmont
Le perjantaina 10. toukokuuta 2024, 11.21.14 EEST u...@foxmail.com a écrit : > From: sunyuechi > > C908 X60 > vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_c: 14.7 13.2 > vc1dsp.avg_vc1_mspel_pixels_tab[0][0]_rvv_i32 : 2.5 2.2 >

Re: [FFmpeg-devel] [PATCH 1/2] lavc/startcode: add R-V Zbb startcode_find_candidate

2024-05-12 Thread Rémi Denis-Courmont
Le sunnuntaina 12. toukokuuta 2024, 13.55.13 EEST Rémi Denis-Courmont a écrit : > --- > libavcodec/h264dsp.c | 2 + > libavcodec/h264dsp.h | 2 + > libavcodec/riscv/Makefile| 2 + > libavcodec/riscv/h264dsp_init.c | 40 >

Re: [FFmpeg-devel] [PATCH] area changed: scdet filter

2024-05-12 Thread Paul B Mahol
On Sun, May 12, 2024 at 1:05 PM wrote: > Improve scene detection accuracy by comparing frame with both previous and > next frame (creates one frame delay). > Add new mode parameter and new method to compute the frame difference using > cubic square to increase the weight of small changes and new

Re: [FFmpeg-devel] [PATCH] avcodec/aacenc_tns: remove unreachable code branch

2024-05-12 Thread Timo Rothenpieler
On 12.05.2024 10:53, Yotam Ofek wrote: the condition being tested was the same as the stop condition for the containing loop, so inside the loop it would always test positive --- libavcodec/aacenc_tns.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[FFmpeg-devel] [PATCH] area changed: scdet filter

2024-05-12 Thread radu.taraibuta
Improve scene detection accuracy by comparing frame with both previous and next frame (creates one frame delay). Add new mode parameter and new method to compute the frame difference using cubic square to increase the weight of small changes and new mean formula. This improves accuracy

[FFmpeg-devel] [PATCH] area changed: scdet filter

2024-05-12 Thread raduct
Improve scene detection accuracy by comparing frame with both previous and next frame (creates one frame delay). Add new mode parameter and new method to compute the frame difference using cubic square to increase the weight of small changes and new mean formula. This improves accuracy

Re: [FFmpeg-devel] [PATCH 2/2] lavc/startcode: add R-V V startcode_find_candidate

2024-05-12 Thread Rémi Denis-Courmont
Le sunnuntaina 12. toukokuuta 2024, 13.55.14 EEST Rémi Denis-Courmont a écrit : > --- > libavcodec/riscv/Makefile| 1 + > libavcodec/riscv/h264dsp_init.c | 3 +++ > libavcodec/riscv/startcode_rvv.S | 44 > libavcodec/riscv/vc1dsp_init.c | 16

[FFmpeg-devel] [PATCH 2/2] lavc/startcode: add R-V V startcode_find_candidate

2024-05-12 Thread Rémi Denis-Courmont
--- libavcodec/riscv/Makefile| 1 + libavcodec/riscv/h264dsp_init.c | 3 +++ libavcodec/riscv/startcode_rvv.S | 44 libavcodec/riscv/vc1dsp_init.c | 16 +++- 4 files changed, 58 insertions(+), 6 deletions(-) create mode 100644

[FFmpeg-devel] [PATCH 1/2] lavc/startcode: add R-V Zbb startcode_find_candidate

2024-05-12 Thread Rémi Denis-Courmont
--- libavcodec/h264dsp.c | 2 + libavcodec/h264dsp.h | 2 + libavcodec/riscv/Makefile| 2 + libavcodec/riscv/h264dsp_init.c | 40 libavcodec/riscv/startcode_rvb.S | 81 libavcodec/riscv/vc1dsp_init.c | 7 ++-

Re: [FFmpeg-devel] [PATCH v3 1/9] lavc/vp9dsp: R-V ipred vert

2024-05-12 Thread flow gg
> It should be possible to improve ordering to avoid immediate dependency from ADD to SD Okay, updated it. Additionally improved the mc-tap_64 on vlen>=256 and something 于2024年5月12日周日 18:04写道: > From: sunyuechi > > C908: > vp9_vert_8x8_8bpp_c: 22.0 > vp9_vert_8x8_8bpp_rvi: 15.7 >

[FFmpeg-devel] [PATCH v3 7/9] lavc/vp9dsp: R-V V mc tap h v

2024-05-12 Thread uk7b
From: sunyuechi C908 X60 vp9_avg_8tap_smooth_4h_8bpp_c : 13.0 11.2 vp9_avg_8tap_smooth_4h_8bpp_rvv_i32:5.04.2 vp9_avg_8tap_smooth_4v_8bpp_c : 13.7 12.5

[FFmpeg-devel] [PATCH v3 9/9] lavc/vp9dsp: R-V V mc tap hv

2024-05-12 Thread uk7b
From: sunyuechi C908 X60 vp9_avg_8tap_smooth_4hv_8bpp_c : 32.0 28.2 vp9_avg_8tap_smooth_4hv_8bpp_rvv_i32 : 15.0 13.2 vp9_avg_8tap_smooth_8hv_8bpp_c : 98.0 86.2

[FFmpeg-devel] [PATCH v3 8/9] lavc/vp9dsp: R-V V mc bilin hv

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_avg_bilin_4hv_8bpp_c: 11.0 vp9_avg_bilin_4hv_8bpp_rvv_i64: 3.7 vp9_avg_bilin_8hv_8bpp_c: 38.7 vp9_avg_bilin_8hv_8bpp_rvv_i64: 7.2 vp9_avg_bilin_16hv_8bpp_c: 147.0 vp9_avg_bilin_16hv_8bpp_rvv_i64: 14.2 vp9_avg_bilin_32hv_8bpp_c: 574.5 vp9_avg_bilin_32hv_8bpp_rvv_i64:

[FFmpeg-devel] [PATCH v3 1/9] lavc/vp9dsp: R-V ipred vert

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_vert_8x8_8bpp_c: 22.0 vp9_vert_8x8_8bpp_rvi: 15.7 vp9_vert_16x16_8bpp_c: 71.2 vp9_vert_16x16_8bpp_rvi: 39.0 vp9_vert_32x32_8bpp_c: 300.2 vp9_vert_32x32_8bpp_rvi: 135.2 --- libavcodec/riscv/Makefile| 1 + libavcodec/riscv/vp9_intra_rvi.S | 71

[FFmpeg-devel] [PATCH v3 6/9] lavc/vp9dsp: R-V V mc bilin h v

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_avg_bilin_4h_8bpp_c: 5.2 vp9_avg_bilin_4h_8bpp_rvv_i64: 2.2 vp9_avg_bilin_4v_8bpp_c: 5.5 vp9_avg_bilin_4v_8bpp_rvv_i64: 2.2 vp9_avg_bilin_8h_8bpp_c: 20.0 vp9_avg_bilin_8h_8bpp_rvv_i64: 4.5 vp9_avg_bilin_8v_8bpp_c: 21.0 vp9_avg_bilin_8v_8bpp_rvv_i64: 4.2

[FFmpeg-devel] [PATCH v3 3/9] lavc/vp9dsp: R-V V ipred hor

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_hor_8x8_8bpp_c: 74.7 vp9_hor_8x8_8bpp_rvv_i32: 35.7 vp9_hor_16x16_8bpp_c: 175.5 vp9_hor_16x16_8bpp_rvv_i32: 80.2 vp9_hor_32x32_8bpp_c: 510.2 vp9_hor_32x32_8bpp_rvv_i32: 264.0 --- libavcodec/riscv/vp9_intra_rvv.S | 56

[FFmpeg-devel] [PATCH v3 2/9] lavc/vp9dsp: R-V mc copy

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_put4_8bpp_c: 0.7 vp9_put4_8bpp_rvi: 0.5 vp9_put8_8bpp_c: 2.5 vp9_put8_8bpp_rvi: 0.5 vp9_put16_8bpp_c: 16.7 vp9_put16_8bpp_rvi: 1.5 vp9_put32_8bpp_c: 37.2 vp9_put32_8bpp_rvi: 5.7 vp9_put64_8bpp_c: 107.5 vp9_put64_8bpp_rvi: 21.7 --- libavcodec/riscv/Makefile | 3

[FFmpeg-devel] [PATCH v3 4/9] lavc/vp9dsp: R-V V ipred tm

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_tm_4x4_8bpp_c: 116.5 vp9_tm_4x4_8bpp_rvv_i32: 43.5 vp9_tm_8x8_8bpp_c: 416.2 vp9_tm_8x8_8bpp_rvv_i32: 86.0 vp9_tm_16x16_8bpp_c: 1665.5 vp9_tm_16x16_8bpp_rvv_i32: 187.2 vp9_tm_32x32_8bpp_c: 6974.2 vp9_tm_32x32_8bpp_rvv_i32: 625.7 --- libavcodec/riscv/vp9_intra_rvv.S |

[FFmpeg-devel] [PATCH v3 5/9] lavc/vp9dsp: R-V V mc avg

2024-05-12 Thread uk7b
From: sunyuechi C908: vp9_avg4_8bpp_c: 1.2 vp9_avg4_8bpp_rvv_i64: 1.0 vp9_avg8_8bpp_c: 3.7 vp9_avg8_8bpp_rvv_i64: 1.5 vp9_avg16_8bpp_c: 14.7 vp9_avg16_8bpp_rvv_i64: 3.5 vp9_avg32_8bpp_c: 57.7 vp9_avg32_8bpp_rvv_i64: 10.0 vp9_avg64_8bpp_c: 229.0 vp9_avg64_8bpp_rvv_i64: 31.7 ---

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/videotoolbox: av1 decoding not copying the sequence header obu into the bitstream

2024-05-12 Thread Ruslan Chernenko
Okay, yeah. Took a better look and indeed it should be (vtctx->bitstream_size + size) for the av_fast_realloc. Will send an update on this patch today. On Sun, 12 May 2024 at 11:53, Ruslan Chernenko wrote: > (resent due to not adding mail-list into the CC) > Hey there! > Thanks for checking out

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/videotoolbox: av1 decoding not copying the sequence header obu into the bitstream

2024-05-12 Thread Ruslan Chernenko
(resent due to not adding mail-list into the CC) Hey there! Thanks for checking out the patch; As for videotoolbox_av1_start_frame: For the av_fast_realloc call it's mostly the same thing as ff_videotoolbox_buffer_copy defined at libavcodec/videotoolbox.c:79. It takes a pointer to a bitstream,

[FFmpeg-devel] [PATCH] avcodec/aacenc_tns: remove unreachable code branch

2024-05-12 Thread Yotam Ofek
the condition being tested was the same as the stop condition for the containing loop, so inside the loop it would always test positive --- libavcodec/aacenc_tns.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/aacenc_tns.c b/libavcodec/aacenc_tns.c index