[FFmpeg-devel] [PATCH] configure: autodetect libdrm

2023-12-28 Thread Xiang, Haihao
From: Haihao Xiang option kernel_driver for vaapi device creation can be used to choose the desired device on Linux, which is more convenient than DRM render node in a multiple-device system (e.g. Intel iGPU + AMD dGPU or inverse), but this option requires libdrm works. vaapi is autodetected at c

[FFmpeg-devel] [PATCH 2/2] doc/ffmpeg: update the documentation about vaapi device creation

2023-12-28 Thread Xiang, Haihao
From: Haihao Xiang Signed-off-by: Haihao Xiang --- doc/ffmpeg.texi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index c6c0606e8a..2c04b22cf3 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1385,6 +1385,29 @@ If not specifi

[FFmpeg-devel] [PATCH 1/2] doc/ffmpeg: update the documentation about qsv device creation

2023-12-28 Thread Xiang, Haihao
From: Haihao Xiang Signed-off-by: Haihao Xiang --- doc/ffmpeg.texi | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index ab17d1d687..c6c0606e8a 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1406,16 +1406,33 @@

Re: [FFmpeg-devel] [PATCH] all: Don't set AVClass.item_name to its default value

2023-12-28 Thread Zhao Zhili
> 在 2023年12月29日,上午7:42,Marton Balint 写道: > >  > >> On Mon, 25 Dec 2023, Anton Khirnov wrote: >> >> Quoting Zhao Zhili (2023-12-25 10:27:59) >>> > On Dec 25, 2023, at 16:38, Anton Khirnov wrote: >>> > > Quoting Kacper Michajlow (2023-12-24 11:41:52) >>> >> On Fri, 22 Dec 2023 at 14:57, Anton

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/edge_template: Fix small inputs with gaussian_blur()

2023-12-28 Thread Michael Niedermayer
On Fri, Dec 22, 2023 at 12:51:51PM +0100, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: Ticket10699 > Fixes: poc5ffmpeg > > Found-by: Zeng Yunxiang > Signed-off-by: Michael Niedermayer > --- > libavfilter/edge_template.c | 29 +++-- > 1 file changed, 19

Re: [FFmpeg-devel] [PATCH 1/4] avfilter/af_stereowiden: Round length to nearest

2023-12-28 Thread Michael Niedermayer
On Mon, Dec 25, 2023 at 12:26:21AM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavfilter/af_stereowiden.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply patchset [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040

Re: [FFmpeg-devel] [PATCH 1/3] tools/target_dec_fuzzer: Adjust threshold for QPEG

2023-12-28 Thread Michael Niedermayer
On Fri, Dec 15, 2023 at 02:48:26AM +0100, Michael Niedermayer wrote: > Fixes: > 63712/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QPEG_fuzzer-456353017272729 > Fixes: Timeout > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-

Re: [FFmpeg-devel] [PATCH 4/4] avformat/mov: do not set sign bit for chunk_offsets

2023-12-28 Thread Michael Niedermayer
On Sat, Dec 16, 2023 at 01:16:19PM +0100, Michael Niedermayer wrote: > Fixes: signed integer overflow: 2314885530818453536 - -7412889664301817824 > cannot be represented in type 'long' > Fixes: > 64296/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6304027146846208 > > Found-by: continuous

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/jpeglsdec: Check Jpeg-LS LSE

2023-12-28 Thread Michael Niedermayer
On Sat, Dec 16, 2023 at 01:16:18PM +0100, Michael Niedermayer wrote: > Fixes: signed integer overflow: 2147478526 + 33924 cannot be represented in > type 'int' > Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int' > Fixes: > 64243/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID

Re: [FFmpeg-devel] [PATCH 1/4] tools/target_dec_fuzzer: Adjust Threshold for VP6A

2023-12-28 Thread Michael Niedermayer
On Sat, Dec 16, 2023 at 01:16:16PM +0100, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 64220/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP6A_fuzzer-5653856213925888 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed

Re: [FFmpeg-devel] [PATCH] all: Don't set AVClass.item_name to its default value

2023-12-28 Thread Marton Balint
On Mon, 25 Dec 2023, Anton Khirnov wrote: Quoting Zhao Zhili (2023-12-25 10:27:59) > On Dec 25, 2023, at 16:38, Anton Khirnov wrote: > > Quoting Kacper Michajlow (2023-12-24 11:41:52) >> On Fri, 22 Dec 2023 at 14:57, Anton Khirnov wrote: >>> >>> Quoting Andreas Rheinhardt (2023-12-22 1

[FFmpeg-devel] [PATCH] tools/target_dec_fuzzer: Adjust threshold for MV30

2023-12-28 Thread Michael Niedermayer
Fixes: 60867/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-6381933108527104 Fixes: Timeout Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 1 + 1 file changed,

Re: [FFmpeg-devel] [PATCH 1/6] lavc/codec2utils: Use actual libcodec2 version

2023-12-28 Thread Michael Niedermayer
On Thu, Dec 28, 2023 at 10:21:23PM +0100, Tomas Härdin wrote: > tor 2023-12-28 klockan 21:29 +0100 skrev Michael Niedermayer: > > On Thu, Dec 28, 2023 at 07:43:09PM +0100, Tomas Härdin wrote: > > > libcodec2 has reached 1.X so it's about time the bindings receive > > > some > > > attention. This pa

Re: [FFmpeg-devel] [PATCH] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2023-12-28 Thread David Johansen
> > I love this change, but it appears that st->codecpar->profile is always > AV_PROFILE_UNKNOWN when using libfdk_aac as the encoder. Any indications > where I should look for fix that so this can be used with that encoder? > It appears that the issue is that profile doesn't default to what's bei

Re: [FFmpeg-devel] [PATCH v3 1/7] avcodec/hevc: Add init for sao_edge_filter

2023-12-28 Thread Michael Niedermayer
On Thu, Dec 28, 2023 at 04:52:46PM +0800, yinshiyou...@loongson.cn wrote: > > -原始邮件- > > 发件人: jinbo > > 发送时间:2023-12-28 16:20:59 (星期四) > > 收件人: ffmpeg-devel@ffmpeg.org > > 抄送: jinbo > > 主题: [FFmpeg-devel] [PATCH v3 1/7] avcodec/hevc: Add init for sao_edge_filter > > > > Forgot to init c-

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: Add CHANNELS to EXT-X-MEDIA for Audio

2023-12-28 Thread David Johansen
On Wed, Nov 8, 2023 at 6:38 PM Steven Liu wrote: > David Johansen 于2023年11月9日周四 07:47写道: > > > > On Fri, Oct 27, 2023 at 1:33 AM Steven Liu > wrote: > > > > > David Johansen 于2023年10月27日周五 12:03写道: > > > > > > > > > > > > > > LGTM > > > > > > > > > > > > > > > Thanks > > > > > Steven > > > > >

Re: [FFmpeg-devel] [PATCH 2/2] lavfi/setpts: introduce rand() function in expression

2023-12-28 Thread Michael Niedermayer
On Thu, Dec 28, 2023 at 07:49:18PM +0100, Stefano Sabatini wrote: > On date Thursday 2023-12-28 16:00:57 +0100, Stefano Sabatini wrote: > > On date Thursday 2023-12-28 12:02:59 +0100, Andreas Rheinhardt wrote: > > > Stefano Sabatini: > > > > This is useful to simulate random jitter. > > > > --- > >

[FFmpeg-devel] [PATCH] avutil/imgutils: fix half-float representation of 0.0625

2023-12-28 Thread Marton Balint
We don't have a 16bps float Y format, so no fate changes. Signed-off-by: Marton Balint --- libavutil/imgutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index ff9ff07961..406e7868b2 100644 --- a/libavutil/imgutils.c +++ b/lib

Re: [FFmpeg-devel] [PATCH 1/6] lavc/codec2utils: Use actual libcodec2 version

2023-12-28 Thread Tomas Härdin
tor 2023-12-28 klockan 21:29 +0100 skrev Michael Niedermayer: > On Thu, Dec 28, 2023 at 07:43:09PM +0100, Tomas Härdin wrote: > > libcodec2 has reached 1.X so it's about time the bindings receive > > some > > attention. This patchset also includes some much-needed tests. > > Where do > > I submit f

Re: [FFmpeg-devel] [PATCH] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2023-12-28 Thread David Johansen
On Fri, Dec 22, 2023 at 8:10 AM Romain Beauxis wrote: > This patch populates the third entry for HLS codec attribute using the > AAC profile. > > The HLS specifications[1] require this digit to be the Object Type ID as > referred to in table 1.3 of ISO/IEC 14496-3:2009[2]. > > The numerical const

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/mjpegdec: use memset to clear alpha

2023-12-28 Thread Marton Balint
On Wed, 13 Dec 2023, Marton Balint wrote: Signed-off-by: Marton Balint --- libavcodec/mjpegdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Will apply the series. Regards, Marton diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 8676155ecf..8191606f43 10064

Re: [FFmpeg-devel] [PATCH] avcodec/bitpacked_dec: optimize bitpacked_decode_yuv422p10

2023-12-28 Thread Marton Balint
On Wed, 13 Dec 2023, Marton Balint wrote: From: Devin Heitmueller Rework the code a bit to speed up the 10-bit bitpacked decoding routine. This is probably about as fast as I can get it without switching to assembly language. Demonstratable with: ./ffmpeg -f lavfi -i "smptehdbars=size=38

Re: [FFmpeg-devel] [PATCH 1/6] lavc/codec2utils: Use actual libcodec2 version

2023-12-28 Thread Michael Niedermayer
On Thu, Dec 28, 2023 at 07:43:09PM +0100, Tomas Härdin wrote: > libcodec2 has reached 1.X so it's about time the bindings receive some > attention. This patchset also includes some much-needed tests. Where do > I submit files for inclusion in FATE again? They are very small as is > to be expected f

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/osq: avoid several signed integer overflows

2023-12-28 Thread Michael Niedermayer
On Tue, Dec 26, 2023 at 01:56:31PM -0300, James Almer wrote: > On 12/26/2023 1:37 PM, Michael Niedermayer wrote: > > Fixes: signed integer overflow: 178459578 + 2009763270 cannot be > > represented in type 'int' > > Fixes: > > 62285/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-501

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/osq: Implement flush()

2023-12-28 Thread Michael Niedermayer
On Tue, Dec 26, 2023 at 08:09:54PM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: out of array access > > Fixes: > > 62164/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-6227491892887552 > > Fixes: > > 62164/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_f

Re: [FFmpeg-devel] [PATCH] avformat/rtsp: Fix server compatibility issues with rtspclientsink GStreamer plugin

2023-12-28 Thread Michael Niedermayer
On Wed, Dec 27, 2023 at 03:44:09PM +0200, Paul Orlyk wrote: > mode field in Transport header can be sent in upper case so make string > comparison case insensitive. > Also, GStreamer expects to see mode=record instead of mode=receive in > Transport header in response. > > Signed-off-by: Paul Orlyk

Re: [FFmpeg-devel] [PATCH 2/2] lavfi/setpts: introduce rand() function in expression

2023-12-28 Thread Stefano Sabatini
On date Thursday 2023-12-28 16:00:57 +0100, Stefano Sabatini wrote: > On date Thursday 2023-12-28 12:02:59 +0100, Andreas Rheinhardt wrote: > > Stefano Sabatini: > > > This is useful to simulate random jitter. > > > --- > > > Changelog| 1 + > > > doc/filters.texi | 10 +-

[FFmpeg-devel] [PATCH 5/6] lavf/codec2: Silence warnings when either muxer/demuxer is disabled

2023-12-28 Thread Tomas Härdin
From 6fd458b7b9867a92a0876ddd3455ac37b160f08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 22:52:25 +0100 Subject: [PATCH 5/6] lavf/codec2: Silence warnings when either muxer/demuxer is disabled --- libavformat/codec2.c | 76 +---

[FFmpeg-devel] [PATCH 4/6] lavf/codec2: Multiple of block_align -> not corrupt

2023-12-28 Thread Tomas Härdin
From a79157b3353f4978e25bb1140391c603de9028bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 22:50:18 +0100 Subject: [PATCH 4/6] lavf/codec2: Multiple of block_align -> not corrupt --- libavformat/codec2.c | 5 + 1 file changed, 5 insertions(+) diff -

[FFmpeg-devel] [PATCH 3/6] lavf/codec2: Allow versions between 0.8 and 1.X

2023-12-28 Thread Tomas Härdin
Coordinated with the Freetel-codec2 mailing list /Tomas From 22fb929a449a955155684645c385e2fbd681b3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 17:33:18 +0100 Subject: [PATCH 3/6] lavf/codec2: Allow versions between 0.8 and 1.X --- libavformat/codec2.

[FFmpeg-devel] [PATCH 2/6] lavf/codec2: Compute duration from filesize

2023-12-28 Thread Tomas Härdin
From 1576f9206b51ea9946495e7c5e293403541d49a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 16:32:49 +0100 Subject: [PATCH 2/6] lavf/codec2: Compute duration from filesize --- libavformat/codec2.c | 13 ++--- 1 file changed, 10 insertions(+), 3 de

[FFmpeg-devel] [PATCH 1/6] lavc/codec2utils: Use actual libcodec2 version

2023-12-28 Thread Tomas Härdin
libcodec2 has reached 1.X so it's about time the bindings receive some attention. This patchset also includes some much-needed tests. Where do I submit files for inclusion in FATE again? They are very small as is to be expected from a codec that runs at 700-3200 bit/s /Tomas From 7205e741aaadc354b

[FFmpeg-devel] [PATCH] avcodec/options_table: add missing deprecated flag to relevant options

2023-12-28 Thread James Almer
Signed-off-by: James Almer --- libavcodec/options_table.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index ee243d9894..c3d8cd5fef 100644 --- a/libavcodec/options_table.h +++ b/libavcodec/options_table.

Re: [FFmpeg-devel] [PATCH 3/6] Add CRYO APC muxer

2023-12-28 Thread Tomas Härdin
tor 2023-12-28 klockan 18:23 +0100 skrev Tomas Härdin: > +static int apc_write_trailer(AVFormatContext *s) > +{ > +    int64_t file_size = avio_tell(s->pb); > + > +    // write length, if we're able to seek back > +    if (avio_seek(s->pb, 12, SEEK_SET) >= 0) { > +    int64_t data_size = file_s

Re: [FFmpeg-devel] [PATCH 2/2] configure: disable locale use in spa plugin

2023-12-28 Thread Rémi Denis-Courmont
Le 27 décembre 2023 17:25:03 GMT+01:00, Abhishek Ojha a écrit : >This commit requires to resolve the compilation error of pipewiregrab >because Pipewire's spa plugin is requesting locale_t extension to >compile. >Which was added in POSIX 2008 but ffmpeg is using POSIX 2001 due to >which spa plu

Re: [FFmpeg-devel] [PATCH 3/6] Add CRYO APC muxer

2023-12-28 Thread Tomas Härdin
Updated patch attached. I reordered the patch series a bit also, will post the entire series once this patch looks good enough /Tomas From ab94ae3520923ceb305055a0e568f3293e0e0c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Tue, 26 Dec 2023 14:32:10 +0100 Subject: [PATCH

Re: [FFmpeg-devel] [PATCH] libavformat/hlsenc.c: Populate OTI using AAC profile in write_codec_attr.

2023-12-28 Thread Romain Beauxis
Hey there! Le ven. 22 déc. 2023 à 09:09, Romain Beauxis a écrit : > > This patch populates the third entry for HLS codec attribute using the > AAC profile. > > The HLS specifications[1] require this digit to be the Object Type ID as > referred to in table 1.3 of ISO/IEC 14496-3:2009[2]. > > The n

Re: [FFmpeg-devel] [PATCH 2/2] lavfi/setpts: introduce rand() function in expression

2023-12-28 Thread Stefano Sabatini
On date Thursday 2023-12-28 12:02:59 +0100, Andreas Rheinhardt wrote: > Stefano Sabatini: > > This is useful to simulate random jitter. > > --- > > Changelog| 1 + > > doc/filters.texi | 10 +- > > libavfilter/setpts.c | 39 +-- > > 3 fi

[FFmpeg-devel] [PATCH 1/2] avfilter/vf_codecview: fix heap buffer overflow

2023-12-28 Thread Zhao Zhili
From: Zhao Zhili And improve the performance by a little bit. --- libavfilter/vf_codecview.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavfilter/vf_codecview.c b/libavfilter/vf_codecview.c index 55d9c8c04f..f65ccbda70 100644 --- a/libavfilter/vf_codecview.c +++ b/libavfilter/vf_cod

Re: [FFmpeg-devel] [PATCH 2/2] lavfi/setpts: introduce rand() function in expression

2023-12-28 Thread Andreas Rheinhardt
Stefano Sabatini: > This is useful to simulate random jitter. > --- > Changelog| 1 + > doc/filters.texi | 10 +- > libavfilter/setpts.c | 39 +-- > 3 files changed, 43 insertions(+), 7 deletions(-) > > diff --git a/Changelog b/Changelo

Re: [FFmpeg-devel] [PATCH 3/6] Add CRYO APC muxer

2023-12-28 Thread Tomas Härdin
tis 2023-12-26 klockan 23:30 +0100 skrev Michael Niedermayer: > Hi > > On Tue, Dec 26, 2023 at 04:52:47PM +0100, Tomas Härdin wrote: > > > > [...] > > + > > +static int apc_write_header(AVFormatContext *s) > > +{ > > +    AVIOContext *pb = s->pb; > > +    AVCodecParameters *par; > > +    AVStrea

Re: [FFmpeg-devel] [PATCH] lavfi: add quirc filter

2023-12-28 Thread Tomas Härdin
tor 2023-12-28 klockan 00:20 +0100 skrev Stefano Sabatini: > I was checking the code, and porting would be a serious effort and > comprise several thousands lines of code (against the moderate effort > of wrapping it - which is already done), also some of the logic would > not really fit into FFmpe

Re: [FFmpeg-devel] [PATCH v2] avformat/riffenc: don't force WAVEFORMATEXTENSIBLE for flt/dbl LPCM

2023-12-28 Thread Gyan Doshi
On 2023-12-26 09:25 am, Gyan Doshi wrote: Plan to push in 48h, barring objections. Pushed as c1340f3439ef4eba34e8e51e1f7c0bf789e3256a Regards, Gyan On 2023-12-21 03:31 pm, Gyan Doshi wrote: 2c2a167ca7 forced WAVEFORMATEXTENSIBLE for all LPCM streams with greater than 16 bits per sample.

Re: [FFmpeg-devel] FFmpeg 6.1.1

2023-12-28 Thread Zhao Zhili
> On Dec 28, 2023, at 17:13, yinshiyou...@loongson.cn wrote: > > -原始邮件- > 发件人: "Michael Niedermayer" > 发送时间: 2023-12-22 03:17:28 (星期五) > 收件人: "FFmpeg development discussions and patches" > 主题: [FFmpeg-devel] FFmpeg 6.1.1 > > Hi all > > I will probably make a 6.1.1 release in maybe 1-

Re: [FFmpeg-devel] FFmpeg 6.1.1

2023-12-28 Thread yinshiyou-hf
-原始邮件- 发件人: "Michael Niedermayer" 发送时间: 2023-12-22 03:17:28 (星期五) 收件人: "FFmpeg development discussions and patches" 主题: [FFmpeg-devel] FFmpeg 6.1.1 Hi all I will probably make a 6.1.1 release in maybe 1-3 weeks due to bug/fixes in it. if you want something in it, please backport it now!

Re: [FFmpeg-devel] [PATCH v3 1/7] avcodec/hevc: Add init for sao_edge_filter

2023-12-28 Thread yinshiyou-hf
> -原始邮件- > 发件人: jinbo > 发送时间:2023-12-28 16:20:59 (星期四) > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: jinbo > 主题: [FFmpeg-devel] [PATCH v3 1/7] avcodec/hevc: Add init for sao_edge_filter > > Forgot to init c->sao_edge_filter[idx] when idx=0/1/2/3. > After this patch, the speedup of decoding H265 4

Re: [FFmpeg-devel] [PATCH v2 7/7] avcodec/hevc: Add ff_hevc_idct_32x32_lasx asm opt

2023-12-28 Thread yinshiyou-hf
> -原始邮件- > 发件人: jinbo > 发送时间:2023-12-27 12:50:19 (星期三) > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: yuanhecai > 主题: [FFmpeg-devel] [PATCH v2 7/7] avcodec/hevc: Add ff_hevc_idct_32x32_lasx > asm opt > + > +.macro malloc_space number > +li.w t0, \number > +sub.d sp,

[FFmpeg-devel] [PATCH v3 3/7] avcodec/hevc: Add pel_uni_w_pixels4/6/8/12/16/24/32/48/64 asm opt

2023-12-28 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_pel_uni_w_pixels4_8_c:2.7 1.0 put_hevc_pel_uni_w_pixels6_8_c:6.2 2.0 1.5 put_hevc_pel_uni_w_pixels8_8_c:10.72.5 1.7 put_hevc_pel_uni_w_pixels12_8_c: 23.05.5 5.0 put_hevc_pel_uni_w_pixels16_8_c

[FFmpeg-devel] [PATCH v3 1/7] avcodec/hevc: Add init for sao_edge_filter

2023-12-28 Thread jinbo
Forgot to init c->sao_edge_filter[idx] when idx=0/1/2/3. After this patch, the speedup of decoding H265 4K 30FPS 30Mbps on 3A6000 is about 7% (42fps==>45fps). Change-Id: I521999b397fa72b931a23c165cf45f276440cdfb --- libavcodec/loongarch/hevcdsp_init_loongarch.c | 4 1 file changed, 4 inserti

[FFmpeg-devel] [PATCH v3 2/7] avcodec/hevc: Add add_residual_4/8/16/32 asm opt

2023-12-28 Thread jinbo
After this patch, the peformance of decoding H265 4K 30FPS 30Mbps on 3A6000 with 8 threads improves 2fps (45fps-->47fsp). --- libavcodec/loongarch/Makefile | 3 +- libavcodec/loongarch/hevc_add_res.S | 162 ++ libavcodec/loongarch/hevcdsp_init_loongarch.

[FFmpeg-devel] [PATCH v3 7/7] avcodec/hevc: Add ff_hevc_idct_32x32_lasx asm opt

2023-12-28 Thread jinbo
From: yuanhecai tests/checkasm/checkasm: C LSX LASX hevc_idct_32x32_8_c: 1243.0 211.7 101.7 Speedup of decoding H265 4K 30FPS 30Mbps on 3A6000 with 8 threads is 1fps(56fps-->57fps). --- libavcodec/loongarch/Makefile | 3 +-

[FFmpeg-devel] [PATCH v3 6/7] avcodec/hevc: Add asm opt for the following functions

2023-12-28 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_qpel_uni_h4_8_c: 5.7 1.2 put_hevc_qpel_uni_h6_8_c: 12.22.7 put_hevc_qpel_uni_h8_8_c: 21.53.2 put_hevc_qpel_uni_h12_8_c: 47.29.2 7.2 put_hevc_qpel_uni_h16_8_c: 87.011.7

[FFmpeg-devel] [PATCH v3 5/7] avcodec/hevc: Add epel_uni_w_hv4/6/8/12/16/24/32/48/64 asm opt

2023-12-28 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_epel_uni_w_hv4_8_c: 9.5 2.2 put_hevc_epel_uni_w_hv6_8_c: 18.55.0 3.7 put_hevc_epel_uni_w_hv8_8_c: 30.76.0 4.5 put_hevc_epel_uni_w_hv12_8_c: 63.714.010.7 put_hevc_epel_uni_w_hv16_8_c:

[FFmpeg-devel] [PATCH v3 4/7] avcodec/hevc: Add qpel_uni_w_v|h4/6/8/12/16/24/32/48/64 asm opt

2023-12-28 Thread jinbo
tests/checkasm/checkasm: C LSX LASX put_hevc_qpel_uni_w_h4_8_c:6.5 1.7 1.2 put_hevc_qpel_uni_w_h6_8_c:14.54.5 3.7 put_hevc_qpel_uni_w_h8_8_c:24.55.7 4.5 put_hevc_qpel_uni_w_h12_8_c: 54.717.512.0 put_hevc_qpel_uni_w_h1