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

2023-05-24 Thread Hao Chen
在 2023/5/20 下午5:38, Rémi Denis-Courmont 写道: Le lauantaina 20. toukokuuta 2023, 10.27.19 EEST Hao Chen a écrit : From: yuanhecai This patch supports the use of the "checkasm --bench" testing feature on loongarch platform. Change-Id: I42790388d057c9ade0dfa38a19d9c1fd44ca0bc3 --- libavutil/lo

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

2023-05-24 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. v4: Remove clobbering memory in libavutil/loongarch/timer.h [PATC

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

2023-05-24 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 ff_h264_idct_add8_422_

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

2023-05-24 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 +- libavcodec/loongarch/h264_intrapred_las

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

2023-05-24 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 + .../loongarch/h264qpel_

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

2023-05-24 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 v4 6/7] swscale/la: Add following builtin optimized functions

2023-05-24 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 --- libswscale/loongarch/Make

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

2023-05-24 Thread Rémi Denis-Courmont
Le 24 mai 2023 10:39:59 GMT+03:00, Hao Chen a écrit : > >在 2023/5/20 下午5:38, Rémi Denis-Courmont 写道: >> Le lauantaina 20. toukokuuta 2023, 10.27.19 EEST Hao Chen a écrit : >>> From: yuanhecai >>> >>> This patch supports the use of the "checkasm --bench" testing feature >>> on loongarch platfor

[FFmpeg-devel] [PATCH] fftools/ffmpeg_dec: abort if avcodec_send_packet() returns EAGAIN

2023-05-24 Thread James Almer
As the comment in the code mentions, EAGAIN is not an expected value here because we call avcodec_receive_frame() until all frames have been returned. avcodec_send_packet() returning EAGAIN means a packet is still buffered, which hints that the underlying decoder is buggy and not fetching packets a

Re: [FFmpeg-devel] [PATCH 15/15] fftools/sync_queue: make sure non-limiting streams are not used as queue head

2023-05-24 Thread James Almer
On 5/23/2023 10:58 AM, Anton Khirnov wrote: A non-limiting stream could mistakenly end up being the queue head, which would then produce incorrect synchronization, seen e.g. in fate-matroska-flac-extradata-update for certain number of frame threads (e.g. 5). Found-By: James Almer Strictly spea

Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: replace VT_H264Profile with avctx profile

2023-05-24 Thread Rick Kern
On Mon, May 22, 2023 at 12:17 AM 徐福隆 <839789...@qq.com> wrote: > It's my mistake that forget to remove H264_PROF_AUTO. I will fix that. > Any other suggestions about the profile_options? Thanks. > Nothing else from me - just the default profile selection behavior zhilizhao mentioned. > > ---

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

2023-05-24 Thread Rémi Denis-Courmont
Le keskiviikkona 24. toukokuuta 2023, 8.28.08 EEST Arnie Chang a écrit : > diff --git a/libavcodec/riscv/h264_mc_chroma.S > b/libavcodec/riscv/h264_mc_chroma.S new file mode 100644 > index 00..9fcd2e34b3 > --- /dev/null > +++ b/libavcodec/riscv/h264_mc_chroma.S > @@ -0,0 +1,307 @@ > +/* > +

[FFmpeg-devel] [PATCH] lavu/tx: stop using av_log(NULL, )

2023-05-24 Thread Lynne
Patch attached. >From 2813dcb5b885bdf0c3f78f8aead43f4b11149a70 Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 24 May 2023 21:57:25 +0200 Subject: [PATCH] lavu/tx: stop using av_log(NULL, ) --- libavutil/tx.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/

Re: [FFmpeg-devel] [PATCH] lavu/tx: stop using av_log(NULL, )

2023-05-24 Thread Paul B Mahol
On 5/24/23, Lynne wrote: > Patch attached. > > Probably fine. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject

Re: [FFmpeg-devel] [PATCH] lavu/tx: stop using av_log(NULL, )

2023-05-24 Thread Leo Izen
On 5/24/23 16:35, Lynne wrote: Patch attached. +av_log((void *)&tx_class, AV_LOG_DEBUG, "%s\n", bp.str); The type of the first argument to av_log should be AVClass **, but this only appears to be AVClass *. See libavutil/log.c line 428. - Leo Izen __

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

2023-05-24 Thread Michael Niedermayer
On Wed, May 24, 2023 at 03:48:27PM +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 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-24 Thread Lynne
May 22, 2023, 10:26 by d...@lynne.ee: > Planning on pushing this partially (no encoding) tomorrow unless there are > more comments. > All known issues have been fixed, and if there are more issues, they can be > found as users test it. > Added APIchanges and bumped minor for lavu and lavc. Plan

Re: [FFmpeg-devel] [PATCH] lavu/tx: stop using av_log(NULL, )

2023-05-24 Thread Lynne
May 24, 2023, 23:24 by leo.i...@gmail.com: > On 5/24/23 16:35, Lynne wrote: > >> Patch attached. >> > > +av_log((void *)&tx_class, AV_LOG_DEBUG, "%s\n", bp.str); > > The type of the first argument to av_log should be AVClass **, but this only > appears to be AVClass *. See libavutil/log.c lin

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

2023-05-24 Thread Hao Chen
在 2023/5/24 下午7:03, Rémi Denis-Courmont 写道: Le 24 mai 2023 10:39:59 GMT+03:00, Hao Chen a écrit : 在 2023/5/20 下午5:38, Rémi Denis-Courmont 写道: Le lauantaina 20. toukokuuta 2023, 10.27.19 EEST Hao Chen a écrit : From: yuanhecai This patch supports the use of the "checkasm --bench" testing f

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

2023-05-24 Thread Hao Chen
在 2023/5/25 上午5:28, Michael Niedermayer 写道: On Wed, May 24, 2023 at 03:48:27PM +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_

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

2023-05-24 Thread Shiyou Yin
> 2023年5月25日 05:28,Michael Niedermayer 写道: > > On Wed, May 24, 2023 at 03:48:27PM +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_h26

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

2023-05-24 Thread Shiyou Yin
> 2023年5月25日 10:36,Hao Chen 写道: > > > 在 2023/5/24 下午7:03, Rémi Denis-Courmont 写道: >> >> Le 24 mai 2023 10:39:59 GMT+03:00, Hao Chen a écrit : >>> 在 2023/5/20 下午5:38, Rémi Denis-Courmont 写道: Le lauantaina 20. toukokuuta 2023, 10.27.19 EEST Hao Chen a écrit : > From: yuanhecai >