[FFmpeg-devel] [PATCH] avfilter/src_movie: stop using AVPacket on stack

2023-05-19 Thread James Almer
Signed-off-by: James Almer --- libavfilter/src_movie.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 5937613d13..b55c2bcb6e 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@

[FFmpeg-devel] [PATCH v3 7/7] avutil/la: Add function performance testing

2023-05-19 Thread Hao Chen
From: yuanhecai This patch supports the use of the "checkasm --bench" testing feature on loongarch platform. Change-Id: I42790388d057c9ade0dfa38a19d9c1fd44ca0bc3 --- libavutil/loongarch/timer.h | 48 + libavutil/timer.h | 2 ++ 2 files changed, 50

[FFmpeg-devel] [PATCH v3 6/7] swscale/la: Add following builtin optimized functions

2023-05-19 Thread Hao Chen
From: Jin Bo yuv420_rgb24_lsx yuv420_bgr24_lsx yuv420_rgba32_lsx yuv420_argb32_lsx yuv420_bgra32_lsx yuv420_abgr32_lsx ./configure --disable-lasx ffmpeg -i ~/media/1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -pix_fmt rgb24 -y /dev/null -an before: 184fps after: 207fps ---

[FFmpeg-devel] [PATCH v3 4/7] avcodec/la: Add LSX optimization for h264 qpel.

2023-05-19 Thread Hao Chen
From: yuanhecai ./configure --disable-lasx ffmpeg -i 1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -y /dev/null -an before: 214fps after: 274fps --- libavcodec/loongarch/Makefile |2 + libavcodec/loongarch/h264qpel.S | 1686 +

[FFmpeg-devel] [PATCH v3 3/7] avcodec/la: Add LSX optimization for h264 chroma and intrapred.

2023-05-19 Thread Hao Chen
From: Lu Wang ./configure --disable-lasx ffmpeg -i 1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -y /dev/null -an before: 199fps after: 214fps --- libavcodec/loongarch/Makefile |4 +- .../loongarch/h264_intrapred_init_loongarch.c | 18 +-

[FFmpeg-devel] [PATCH v3 1/7] avcodec/la: add LSX optimization for h264 idct.

2023-05-19 Thread Hao Chen
From: Shiyou Yin loongson_asm.S is LoongArch asm optimization helper. Add functions: ff_h264_idct_add_8_lsx ff_h264_idct8_add_8_lsx ff_h264_idct_dc_add_8_lsx ff_h264_idct8_dc_add_8_lsx ff_h264_idct_add16_8_lsx ff_h264_idct8_add4_8_lsx ff_h264_idct_add8_8_lsx

[FFmpeg-devel] Add LSX optimization in avcodec and swscale.

2023-05-19 Thread Hao Chen
v1: Add LSX optimization in avcodec and swscale, due to the 2K series CPUs only support lsx. v2: Modified the implementation of some functions and added support for the checkasm --bench feature. v3: Fix whitespace errors in patch. [PATCH v3 1/7] avcodec/la: add LSX optimization for h264 idct.

[FFmpeg-devel] [PATCH v2] avcodec/av1dec: convert to receive_frame()

2023-05-19 Thread James Almer
Signed-off-by: James Almer --- libavcodec/av1dec.c | 75 + libavcodec/av1dec.h | 4 +++ 2 files changed, 60 insertions(+), 19 deletions(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index d46ee48335..53ed37b817 100644 ---

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: convert to receive_frame()

2023-05-19 Thread James Almer
On 5/19/2023 10:17 PM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- libavcodec/av1dec.c | 75 + libavcodec/av1dec.h | 4 +++ 2 files changed, 60 insertions(+), 19 deletions(-) diff --git a/libavcodec/av1dec.c

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: convert to receive_frame()

2023-05-19 Thread James Almer
On 5/19/2023 10:01 PM, Andreas Rheinhardt wrote: James Almer: Signed-off-by: James Almer --- libavcodec/av1dec.c | 75 + libavcodec/av1dec.h | 4 +++ 2 files changed, 60 insertions(+), 19 deletions(-) diff --git a/libavcodec/av1dec.c

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: convert to receive_frame()

2023-05-19 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > libavcodec/av1dec.c | 75 + > libavcodec/av1dec.h | 4 +++ > 2 files changed, 60 insertions(+), 19 deletions(-) > > diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c > index

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: convert to receive_frame()

2023-05-19 Thread Andreas Rheinhardt
James Almer: > Signed-off-by: James Almer > --- > libavcodec/av1dec.c | 75 + > libavcodec/av1dec.h | 4 +++ > 2 files changed, 60 insertions(+), 19 deletions(-) > > diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c > index

[FFmpeg-devel] [PATCH] avcodec/av1dec: convert to receive_frame()

2023-05-19 Thread James Almer
Signed-off-by: James Almer --- libavcodec/av1dec.c | 75 + libavcodec/av1dec.h | 4 +++ 2 files changed, 60 insertions(+), 19 deletions(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index d46ee48335..9344d4ff28 100644 ---

Re: [FFmpeg-devel] [PATCH] lavc/h264chroma: RISC-V V add motion compensation for 8x8 chroma blocks

2023-05-19 Thread Lynne
May 19, 2023, 19:16 by r...@remlab.net: > Le keskiviikkona 17. toukokuuta 2023, 17.54.22 EEST Lynne a écrit : > >> Finally, run: >> make checkasm && ./tests/checkasm/checkasm --bench >> and report on the timings for both the C and assembly versions. >> If you've made a mistake somewhere, (forgot

Re: [FFmpeg-devel] [PATCH 1/2] avutil/mathematics: add missing constants

2023-05-19 Thread James Almer
On 5/11/2023 8:12 PM, James Almer wrote: Including float variants for all of them. Signed-off-by: James Almer --- libavutil/mathematics.h | 51 + libavutil/version.h | 2 +- 2 files changed, 52 insertions(+), 1 deletion(-) Will apply set.

Re: [FFmpeg-devel] 回复: [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-19 Thread Zhao Zhili
> From: ffmpeg-devel On Behalf Of Rick Kern > Sent: 2023年5月19日 21:37 > To: FFmpeg development discussions and patches > Cc: zhilizhao(赵志立) > Subject: Re: [FFmpeg-devel] 回复: [PATCH] avcodec/videotoolboxenc: add > low-latency encoding > > On Fri, May 19, 2023 at 1:56 AM 徐福隆 <839789...@qq.com>

Re: [FFmpeg-devel] [PATCH] avfilter/vf_subtitles: add wrap_unicode option

2023-05-19 Thread Zhao Zhili
> From: ffmpeg-devel On Behalf Of Lance Wang > Sent: 2023年5月19日 22:15 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] avfilter/vf_subtitles: add wrap_unicode > option > > On Fri, May 19, 2023 at 3:59 PM Zhao Zhili wrote: > > > From: Zhao Zhili > > > >

Re: [FFmpeg-devel] [PATCH] lavc/h264chroma: RISC-V V add motion compensation for 8x8 chroma blocks

2023-05-19 Thread Rémi Denis-Courmont
Le keskiviikkona 17. toukokuuta 2023, 17.54.22 EEST Lynne a écrit : > Finally, run: > make checkasm && ./tests/checkasm/checkasm --bench > and report on the timings for both the C and assembly versions. > If you've made a mistake somewhere, (forgot to restore stack, or a > callee-saved register,

Re: [FFmpeg-devel] [PATCH] lavc/h264chroma: RISC-V V add motion compensation for 8x8 chroma blocks

2023-05-19 Thread Rémi Denis-Courmont
Le keskiviikkona 17. toukokuuta 2023, 10.13.01 EEST Arnie Chang a écrit : > Optimize the put and avg filtering for 8x8 chroma blocks > > Signed-off-by: Arnie Chang > --- > libavcodec/h264chroma.c | 2 + > libavcodec/h264chroma.h | 1 + >

Re: [FFmpeg-devel] [PATCH] avfilter/vf_subtitles: add wrap_unicode option

2023-05-19 Thread Oneric
On Fri, May 19, 2023 at 23:58:59 +0800, Zhao Zhili wrote: > From: Zhao Zhili > > So CJK can be wrapped automatically. > > Signed-off-by: Zhao Zhili > --- > libavfilter/version.h | 2 +- > libavfilter/vf_subtitles.c | 13 + > 2 files changed, 14 insertions(+), 1 deletion(-) >

Re: [FFmpeg-devel] [PATCH v22 02/10] avcodec/evc_parser: Added parser implementation for EVC format

2023-05-19 Thread James Almer
On 5/19/2023 7:31 AM, Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics wrote: -Original Message- From: ffmpeg-devel On Behalf Of James Almer Sent: środa, 10 maja 2023 22:21 To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH v22 02/10]

Re: [FFmpeg-devel] [PATCH] avformat/tests/imf: fix memleak

2023-05-19 Thread Pierre-Anthony Lemieux
On Fri, May 19, 2023 at 5:21 AM "zhilizhao(赵志立)" wrote: > > > > On May 20, 2023, at 01:40, Zhao Zhili wrote: > > > > From: Zhao Zhili > > > > It breaks fate test with asan. > > > > Signed-off-by: Zhao Zhili > > --- > > libavformat/tests/imf.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > >

Re: [FFmpeg-devel] [PATCH v2 1/7] avcodec/la: add LSX optimization for h264 idct.

2023-05-19 Thread Michael Niedermayer
On Wed, May 17, 2023 at 03:03:45PM +0800, Hao Chen wrote: > From: Shiyou Yin > > loongson_asm.S is LoongArch asm optimization helper. > Add functions: > ff_h264_idct_add_8_lsx > ff_h264_idct8_add_8_lsx > ff_h264_idct_dc_add_8_lsx > ff_h264_idct8_dc_add_8_lsx > ff_h264_idct_add16_8_lsx

Re: [FFmpeg-devel] [PATCH] avfilter/vf_subtitles: add wrap_unicode option

2023-05-19 Thread Lance Wang
On Fri, May 19, 2023 at 3:59 PM Zhao Zhili wrote: > From: Zhao Zhili > > So CJK can be wrapped automatically. > > Signed-off-by: Zhao Zhili > --- > libavfilter/version.h | 2 +- > libavfilter/vf_subtitles.c | 13 + > 2 files changed, 14 insertions(+), 1 deletion(-) > > diff

Re: [FFmpeg-devel] 回复: [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-19 Thread Rick Kern
On Fri, May 19, 2023 at 1:56 AM 徐福隆 <839789...@qq.com> wrote: > Thank you for your review, and point out the details. > Actually, I have also considered this issue. > I see that some keys are used directly, some are used by compatibility. > The compat_keys are used for symbols that might not

Re: [FFmpeg-devel] [PATCH] avformat/tests/imf: fix memleak

2023-05-19 Thread zhilizhao(赵志立)
> On May 20, 2023, at 01:40, Zhao Zhili wrote: > > From: Zhao Zhili > > It breaks fate test with asan. > > Signed-off-by: Zhao Zhili > --- > libavformat/tests/imf.c | 2 ++ > 1 file changed, 2 insertions(+) > It has already been fixed. Please drop the patch.

Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-19 Thread Leo Izen
On 4/24/23 11:56, Lynne wrote: This is part two of the vulkan patchset, which contains all the hwcontext and vulkan.c rewrites, and filtering changes. 55 patches attached. [PATCH 21/97] lavu: add 12-bit 2-plane 422 and 444 pixel formats iirc new pixel formats need an APIChanges entry, a

Re: [FFmpeg-devel] [PATCH v22 02/10] avcodec/evc_parser: Added parser implementation for EVC format

2023-05-19 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: środa, 10 maja 2023 22:21 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v22 02/10] avcodec/evc_parser: Added > parser implementation for EVC format > > On 4/27/2023 9:02 AM, Dawid

[FFmpeg-devel] [PATCH] Optimization: support for libx264's mb_info

2023-05-19 Thread Carotti, Elias
Hi again, I am sending this patch again (I had missed a check for NULL), could somebody please have a look at it?  It is mainly an optimization when the encoder knows in advance that only portions of the whole frame changed and which areas actually did. The patch allows a user to pass down

[FFmpeg-devel] [PATCH] avformat/tests/imf: fix memleak

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili It breaks fate test with asan. Signed-off-by: Zhao Zhili --- libavformat/tests/imf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index cfd84fb8c8..ee2ca375bf 100644 --- a/libavformat/tests/imf.c +++

[FFmpeg-devel] [PATCH 5/5] fate/h264: move mp4toannexb_ticket5927 test to fate-h264

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili --- tests/fate/ffmpeg.mak | 6 +- tests/fate/h264.mak | 6 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak index 0f33c2a0ed..1ef2df7697 100644 --- a/tests/fate/ffmpeg.mak +++ b/tests/fate/ffmpeg.mak @@

[FFmpeg-devel] [PATCH 3/5] avcodec/h264_mp4toannexb_bsf: fix missing PS before IDR frames

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili If there is a single group of SPS/PPS before an IDR frame, but no SPS/PPS after that, we will miss the chance to reset idr_sps_seen/idr_pps_seen. No SPS/PPS are inserted afterwards. This patch saves in-band SPS/PPS and insert them before IDR frames when necessary. --- sample

[FFmpeg-devel] [PATCH 2/5] avcodec/h264_mp4toannexb_bsf: remove pass padding size as argument

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili It's a fixed value. There is no use case to change that. --- libavcodec/h264_mp4toannexb_bsf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c index 7dce1ae9b6..846671abb6 100644 ---

[FFmpeg-devel] [PATCH 4/5] avcodec/h264_mp4toannexb_bsf: process new extradata

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili For fate-h264_mp4toannexb_ticket5927 and fate-h264_mp4toannexb_ticket5927_2, they work by accident previously. The sample file has two 'avc1' entries, and video samples use the second one. It means packets should be decoded with new extradata in side data. Before this patch,

[FFmpeg-devel] [PATCH 1/5] avcodec/h264_mp4toannexb_bsf: refactor start_code_size handling

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili start_code_size depends on whether PS comes from out-of-band or in-band. Make the code more readable. --- libavcodec/h264_mp4toannexb_bsf.c | 34 --- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/libavcodec/h264_mp4toannexb_bsf.c

Re: [FFmpeg-devel] [PATCH] avfilter/src_movie: activate & dr

2023-05-19 Thread Paul B Mahol
On Fri, May 19, 2023 at 9:52 AM Paul B Mahol wrote: > > > On Thu, May 18, 2023 at 8:01 PM James Almer wrote: > >> On 5/18/2023 2:44 PM, Paul B Mahol wrote: >> > On Thu, May 18, 2023 at 7:31 PM James Almer wrote: >> > >> >> On 5/18/2023 7:22 AM, Paul B Mahol wrote: >> >>> From

[FFmpeg-devel] [PATCH] avfilter/vf_subtitles: add wrap_unicode option

2023-05-19 Thread Zhao Zhili
From: Zhao Zhili So CJK can be wrapped automatically. Signed-off-by: Zhao Zhili --- libavfilter/version.h | 2 +- libavfilter/vf_subtitles.c | 13 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/libavfilter/version.h b/libavfilter/version.h index

Re: [FFmpeg-devel] [PATCH] avfilter/src_movie: activate & dr

2023-05-19 Thread Paul B Mahol
On Thu, May 18, 2023 at 8:01 PM James Almer wrote: > On 5/18/2023 2:44 PM, Paul B Mahol wrote: > > On Thu, May 18, 2023 at 7:31 PM James Almer wrote: > > > >> On 5/18/2023 7:22 AM, Paul B Mahol wrote: > >>> From af73b69a0be9033fddf222b6e9ac60799de85691 Mon Sep 17 00:00:00 2001 > >>> From: Paul

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: add low-latency encoding

2023-05-19 Thread xufuji456
When using low-latency mode, it eliminates frame reordering and follows a one-in-one-out encoding mode Signed-off-by: xufuji456 <839789...@qq.com> --- libavcodec/videotoolboxenc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/videotoolboxenc.c