[FFmpeg-devel] [PATCH] aarch64: h264pred: Optimize the inner loop of existing 8 bit functions

2021-04-12 Thread Martin Storsjö
Move the loop counter decrement further from the branch instruction, this hides the latency of the decrement. In loops that first load, then store (the horizontal prediction cases), do the decrement after the load (where the next instruction would stall a bit anyway, waiting for the result of the

[FFmpeg-devel] [PATCH] libavutil/cpu: Fix definition of _GNU_SOURCE so it occurs before other includes

2021-04-12 Thread kevin . j . wheatley
From: Kevin Wheatley This fix moves the potential definition of _GNU_SOURCE prior to any includes of system header files as required by the documentation https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html This corrects the CPU_COUNT macro availability, resulting in sched

Re: [FFmpeg-devel] [PATCH] aarch64: h264pred: Optimize the inner loop of existing 8 bit functions

2021-04-12 Thread Lynne
Apr 12, 2021, 10:07 by mar...@martin.st: > Move the loop counter decrement further from the branch instruction, > this hides the latency of the decrement. > > In loops that first load, then store (the horizontal prediction cases), > do the decrement after the load (where the next instruction would

[FFmpeg-devel] [PATCH 5/5] avcodec/mpeg4videodec: update exported AVOptions in the user-facing context

2021-04-12 Thread James Almer
This prevents bogus values being reported on frame multithreaded decoding scenarios. Signed-off-by: James Almer --- libavcodec/mpeg4videodec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 2c440a5026..de66fe8b83 1

[FFmpeg-devel] [PATCH v4 2/5] avcodec/mips: Refine get_cabac_inline_mips.

2021-04-12 Thread Shiyou Yin
1. Refined function get_cabac_inline_mips. 2. Optimize function get_cabac_bypass and get_cabac_bypass_sign. Speed of decoding h264: 4.89x ==> 5.05x(tested on 3A4000). --- libavcodec/mips/cabac.h | 140 ++-- 1 file changed, 112 insertions(+), 28 deletion

[FFmpeg-devel] [PATCH v4 1/5] avcodec/mips: Restore the initialization sequence of MSA and MMI in ff_h264chroma_init_mips.

2021-04-12 Thread Shiyou Yin
The MSA optimization has been refined in commit 93218c2 and ce0a52e. It is better than MMI version now. Speed of decoding H264: 4.83x ==> 4.89x (tested on 3A4000). --- libavcodec/mips/h264chroma_init_mips.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/li

[FFmpeg-devel] [PATCH V4] [mips] Optimize H264 decoding for MIPS platform.

2021-04-12 Thread Shiyou Yin
v2: Fixed a build error in [PATCH 2/5]. v3: add patch 4/5. v4: Fix bug in 2/5 caused by instruction 'lhu' on BIGENDIAN environment. [PATCH v4 1/5] avcodec/mips: Restore the initialization sequence of [PATCH v4 2/5] avcodec/mips: Refine get_cabac_inline_mips. [PATCH v4 3/5] avcodec/mips: Optimize f

[FFmpeg-devel] [PATCH v4 4/5] avcodec/mips: Refine ff_h264_h_lpf_luma_inter_msa

2021-04-12 Thread Shiyou Yin
From: gxw Using mask to avoid judgment, H264 4K decoding speed improved about 0.1fps tested on 3A4000 Signed-off-by: Shiyou Yin --- libavcodec/mips/h264dsp_msa.c | 465 -- 1 file changed, 171 insertions(+), 294 deletions(-) diff --git a/libavcodec/mips/

[FFmpeg-devel] [PATCH v4 3/5] avcodec/mips: Optimize function ff_h264_loop_filter_strength_msa.

2021-04-12 Thread Shiyou Yin
From: gxw Speed of decoding H264 1080P: 5.05x ==> 5.13x Signed-off-by: Shiyou Yin --- libavcodec/mips/Makefile| 3 +- libavcodec/mips/h264_deblock_msa.c | 153 libavcodec/mips/h264dsp_init_mips.c | 2 + libavcodec/mips/h264dsp_mips.h |

[FFmpeg-devel] [PATCH v4 5/5] mips: Fix potential illegal instruction error.

2021-04-12 Thread Shiyou Yin
MSA2 optimizations are attached to MSA macros in generic_macros_msa.h. It's difficult to do runtime check for them. Remove this part of code can make it more robust. H264 1080p decoding: 5.13x==>5.12x. --- configure | 7 +-- libavutil/mips/generic_macros_msa.h | 37 -

Re: [FFmpeg-devel] [PATCH] avformat/rawenc: remove singlejpeg muxer

2021-04-12 Thread Gyan Doshi
Ping. On 2021-04-10 20:00, Gyan Doshi wrote: It was added in 51ac1f616f due to ticket #4218, in order to show a single image via ffserver. With ffserver long gone, it serves no purpose. --- libavformat/Makefile | 1 - libavformat/allformats.c | 1 - libavformat/rawenc.c | 13 --

Re: [FFmpeg-devel] [PATCH v3 2/5] avcodec/mips: Refine get_cabac_inline_mips.

2021-04-12 Thread 殷时友
> 2021年3月31日 下午10:39,Michael Niedermayer 写道: > > On Tue, Mar 30, 2021 at 08:51:52PM +0800, Shiyou Yin wrote: >> 1. Refined function get_cabac_inline_mips. >> 2. Optimize function get_cabac_bypass and get_cabac_bypass_sign. >> >> Speed of decoding h264: 4.89x ==> 5.05x(tested on 3A4000). >> ---

[FFmpeg-devel] [PATCH] avcodec/jpeglsenc: Remove redundant pixel format checks

2021-04-12 Thread Andreas Rheinhardt
This encoder has AVCodec.pix_fmts set, so ff_encode_preinit() already checks for this. Signed-off-by: Andreas Rheinhardt --- Will apply tomorrow unless there are objections. libavcodec/jpeglsenc.c | 8 1 file changed, 8 deletions(-) diff --git a/libavcodec/jpeglsenc.c b/libavcodec/jpe

[FFmpeg-devel] [PATCH v2] lavc/aarch64: add pred16x16 10-bit functions

2021-04-12 Thread Mikhail Nitenko
Benchmarks: pred16x16_dc_10_c: 124.0 pred16x16_dc_10_neon: 97.2 pred16x16_horizontal_10_c: 71.7 pred16x16_horizontal_10_neon: 66.2 pred16x16_top_dc_10_c: 90.7 pred16x16_top_dc_10_neon: 71.5 pred16x16_vertical_10_c: 64.7 pred16x16_vertical_10_neon: 61.7 Some functions work slower than C and are lef

[FFmpeg-devel] [PATCH] Added Closed caption support for cuviddec for preserving a53 data n GPU decoding

2021-04-12 Thread Dhanish Vijayan
Signed-off-by: Dhanish Vijayan --- libavcodec/cuviddec.c | 199 ++ 1 file changed, 199 insertions(+) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index ec57afdefe..3b07d0a874 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -

Re: [FFmpeg-devel] [PATCH] libavdevice/gdigrab: fix capture window title contain non-ASCII chars

2021-04-12 Thread Jan Ekström
On Sat, Mar 20, 2021 at 5:34 PM <1160386...@qq.com> wrote: > > From: He Yang <1160386...@qq.com> > > Signed-off-by: He Yang <1160386...@qq.com> Sorry for taking a while to respond, and thank you for the contribution. I have verified that this conversion and FindWindowW usage indeed fixes issues wi

Re: [FFmpeg-devel] [PATCH] avcodec/jpeglsenc: Remove redundant pixel format checks

2021-04-12 Thread James Almer
On 4/12/2021 2:07 PM, Andreas Rheinhardt wrote: This encoder has AVCodec.pix_fmts set, so ff_encode_preinit() already checks for this. Signed-off-by: Andreas Rheinhardt --- Will apply tomorrow unless there are objections. libavcodec/jpeglsenc.c | 8 1 file changed, 8 deletions(-)

Re: [FFmpeg-devel] [PATCH] Added Closed caption support for cuviddec for preserving a53 data n GPU decoding

2021-04-12 Thread James Almer
On 4/12/2021 5:21 PM, Dhanish Vijayan wrote: Signed-off-by: Dhanish Vijayan --- libavcodec/cuviddec.c | 199 ++ 1 file changed, 199 insertions(+) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index ec57afdefe..3b07d0a874 100644 --- a/libav

Re: [FFmpeg-devel] [PATCH] avcodec/jpeglsenc: Remove redundant pixel format checks

2021-04-12 Thread Andreas Rheinhardt
James Almer: > On 4/12/2021 2:07 PM, Andreas Rheinhardt wrote: >> This encoder has AVCodec.pix_fmts set, so ff_encode_preinit() already >> checks for this. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> Will apply tomorrow unless there are objections. >> >>   libavcodec/jpeglsenc.c | 8

[FFmpeg-devel] [PATCH] checkasm: add (private) kperf timing for macOS

2021-04-12 Thread Josh Dekker
Signed-off-by: Josh Dekker --- configure| 2 + tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.c| 19 - tests/checkasm/checkasm.h| 10 ++- tests/checkasm/macos_kperf.c | 143 +++ tests/checkasm/macos_kperf.h | 23 +

Re: [FFmpeg-devel] [PATCH] checkasm: add (private) kperf timing for macOS

2021-04-12 Thread Lynne
Apr 13, 2021, 02:45 by j...@itanimul.li: > Signed-off-by: Josh Dekker > --- > configure| 2 + > tests/checkasm/Makefile | 1 + > tests/checkasm/checkasm.c| 19 - > tests/checkasm/checkasm.h| 10 ++- > tests/checkasm/macos_kperf.c | 143 +

[FFmpeg-devel] [PATCH] libavcodec/qsvenc: add mbbrc to hevc_qsv

2021-04-12 Thread wenbin . chen
From: "Chen,Wenbin" Add mbbrc to hevc_qsv For detailed description, please see "mbbrc" part in: https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#mfxextcodingoption2 Signed-off-by: Wenbin Chen --- libavcodec/qsvenc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 delet

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvenc: add mbbrc to hevc_qsv

2021-04-12 Thread Xiang, Haihao
On Tue, 2021-04-13 at 10:22 +0800, wenbin.c...@intel.com wrote: > From: "Chen,Wenbin" > > Add mbbrc to hevc_qsv > For detailed description, please see "mbbrc" part in: > https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#mfxextcodingoption2 > > Signed-off-by: Wenbin Che

[FFmpeg-devel] [PATCH V8 1/3] lavu: add side data AV_FRAME_DATA_DETECTION_BBOXES for object detection/classification

2021-04-12 Thread Guo, Yejun
--- doc/APIchanges | 2 + libavutil/Makefile | 2 + libavutil/detection_bbox.c | 73 + libavutil/detection_bbox.h | 107 + libavutil/frame.c | 1 + libavutil/frame.h | 6 +++ 6 files changed,

[FFmpeg-devel] [PATCH V8 2/3] lavfi: show side data of detection bounding boxes

2021-04-12 Thread Guo, Yejun
--- libavfilter/f_sidedata.c | 2 ++ libavfilter/vf_showinfo.c | 29 + 2 files changed, 31 insertions(+) diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c index 3757723375..6f25d2b311 100644 --- a/libavfilter/f_sidedata.c +++ b/libavfilter/f_sidedata.c

[FFmpeg-devel] [PATCH V8 3/3] lavfi: add filter dnn_detect for object detection

2021-04-12 Thread Guo, Yejun
Below are the example steps to do object detection: 1. download and install l_openvino_toolkit_p_2021.1.110.tgz from https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit/download.html or, we can get source code (tag 2021.1), build and install. 2. export LD_LIBRARY_PATH wit

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffprobe: Remove check on show_frames and show_packets in XML writer

2021-04-12 Thread Tobias Rapp
On 31.03.2021 12:13, Tobias Rapp wrote: The "packets_and_frames" element has been added to ffprobe.xsd in 0c9f0da0f7656059e9bd41931d250aafddf35ea3 but apparently removing the check in ffprobe.c has been forgotten. Signed-off-by: Tobias Rapp --- fftools/ffprobe.c | 7 --- 1 file changed,