Re: [FFmpeg-devel] [PATCH v2] Add support for the new key & value API in libaom.

2021-02-09 Thread Bohan Li
Hi Jan, Yes the modified patch looks good to me. Please let me know if there is anything needed from my end. Thank you very much! Bohan On Tue, Feb 9, 2021, 12:01 PM Jan Ekström wrote: > On Tue, Feb 9, 2021 at 6:05 AM Bohan Li > wrote: > > > > This key & value API can greatly help with users

[FFmpeg-devel] [PATCH 10/10] libavfilter: add filter dnn_detect for object detection

2021-02-09 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 (2021.1 version), build and install. 2. export LD_LIBRARY_PATH

[FFmpeg-devel] [PATCH 09/10] libavfilter: show side data of dnn bounding box

2021-02-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/f_sidedata.c | 2 ++ libavfilter/vf_showinfo.c | 34 ++ 2 files changed, 36 insertions(+) diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c index 3757723375..08ee96c4ef 100644 --- a/libavfilter/f_sidedata.

[FFmpeg-devel] [PATCH 08/10] libavutil: add side data AVDnnBoundingBox for dnn based detect/classify filters

2021-02-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- doc/APIchanges | 2 ++ libavutil/Makefile | 1 + libavutil/dnn_bbox.h | 68 libavutil/frame.c| 1 + libavutil/frame.h| 7 + libavutil/version.h | 2 +- 6 files changed, 80 insertions(+), 1 deletio

[FFmpeg-devel] [PATCH 07/10] dnn_backend_openvino.c: allow out_frame as NULL for analytic case

2021-02-09 Thread Guo, Yejun
From: Ting Fu --- libavfilter/dnn/dnn_backend_openvino.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index cca155a52c..5be053b7f8 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b

[FFmpeg-devel] [PATCH 06/10] dnn: add color conversion for analytic case

2021-02-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 2 +- libavfilter/dnn/dnn_backend_openvino.c | 23 ++- libavfilter/dnn/dnn_backend_tf.c | 2 +- libavfilter/dnn/dnn_io_proc.c | 56 +- libavfilter/dnn/dnn_io_proc.h |

[FFmpeg-devel] [PATCH 05/10] dnn_interface.h: add enum DNNColorOrder

2021-02-09 Thread Guo, Yejun
the data type and order together decide the color format, we could not use AVPixelFormat directly because not all the possible formats are covered by it. Signed-off-by: Guo, Yejun --- libavfilter/dnn_interface.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libavfil

[FFmpeg-devel] [PATCH 04/10] dnn: add function type for model

2021-02-09 Thread Guo, Yejun
So the backend knows the usage of model is for frame processing, detect, classify, etc. Each function type has different behavior in backend when handling the input/output data of the model. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 3 ++- libavfilter/dnn/dnn_backen

[FFmpeg-devel] [PATCH 03/10] dnn: extract common functions used by different filters

2021-02-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/Makefile| 1 + libavfilter/dnn_filter_common.c | 106 libavfilter/dnn_filter_common.h | 59 ++ libavfilter/vf_derain.c | 46 +++--- libavfilter/vf_dnn_processing.c | 93

[FFmpeg-devel] [PATCH 02/10] dnn_backend_openvino.c: fix multi-thread issue for async execution

2021-02-09 Thread Guo, Yejun
once we mark done for the task in function infer_completion_callback, the task is possible to be release in function ff_dnn_get_async_result_ov in another thread just after it, so we need to record request queue first, instead of using task->ov_model->request_queue later. Signed-off-by: Guo, Yejun

[FFmpeg-devel] [PATCH 01/10] dnn_backend_openvino.c: fix mismatch between ffmpeg(NHWC) and openvino(NCHW)

2021-02-09 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index beca256390..48f5ba50be 100644 --- a/libavfilter/dn

[FFmpeg-devel] [PATCH] avcodec: add setts bitstream filter

2021-02-09 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/bitstream_filters.texi | 54 libavcodec/Makefile| 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/setts_bsf.c | 218 + 4 files changed, 274 insertions(+) create mode 100644 libavcodec/

[FFmpeg-devel] [PATCH] avformat/movenc: remove unnecessary HDR metadata log messages

2021-02-09 Thread Jan Ekström
These made sense before 3ebf449766d4b69a7774c4990fb24fe71c848a3e when the creation of these boxes was specifically requested by the user, but now they have become unnecessary as they are just like many other boxes: If the input has the information required, they are written, otherwise they are not.

Re: [FFmpeg-devel] [PATCH 01/12] avcodec/hevc_sei: Check payload size in decode_nal_sei_message()

2021-02-09 Thread Michael Niedermayer
On Sun, Jan 31, 2021 at 08:18:07PM +0100, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 29392/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-4821602850177024.fuzz > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/project

Re: [FFmpeg-devel] [PATCH] avfilter/vf_zscale: add support for setting scaling filter parameters

2021-02-09 Thread Paul B Mahol
LGTM, please update documentation too. ___ 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 "unsubscribe".

[FFmpeg-devel] [PATCH] avfilter/vf_zscale: add support for setting scaling filter parameters

2021-02-09 Thread Jan Ekström
param_a/b are utilized for this. --- libavfilter/vf_zscale.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index 57199a0878..c195cf0591 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -101,6 +101,8 @@ typedef stru

Re: [FFmpeg-devel] [PATCH] avfilter/vf_zscale: add support for setting scaling filter parameters

2021-02-09 Thread Jan Ekström
On Tue, Feb 9, 2021 at 11:07 PM Jan Ekström wrote: > > param_a/b are utilized for this. > --- > libavfilter/vf_zscale.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c > index 57199a0878..c195cf0591 100644 > --- a/libavfilter/vf_zs

Re: [FFmpeg-devel] [PATCH v2] Add support for the new key & value API in libaom.

2021-02-09 Thread Jan Ekström
On Tue, Feb 9, 2021 at 6:05 AM Bohan Li wrote: > > This key & value API can greatly help with users who wants to try > libaom-av1 specific options that are not supported by ffmpeg options. > Looks good to me code-wise at this point. Thanks for noticing the small issues I had created due to not te

[FFmpeg-devel] [PATCH] libsvtav1: Add lp option

2021-02-09 Thread Christopher Degawa
From: Christopher Degawa Equivalent to the --lp option for SvtAv1EncApp, and is the only way to control how much cpu power svt-av1 uses for now Not using thread_count as it would be preferable to reserve that until svt-av1 properly implements a threads option 0 == getconf _NPROCESSORS_ONLN Sig

Re: [FFmpeg-devel] [PATCH] Moves yuv2yuvX_sse3 to yasm, unrolls main loop and other small optimizations for ~20% speedup.

2021-02-09 Thread Paul B Mahol
Will apply in no comments. ___ 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 "unsubscribe".

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/fitsdec: properly initialize header->data_max

2021-02-09 Thread Michael Niedermayer
On Mon, Feb 08, 2021 at 07:04:15PM +0100, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/fitsdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) probably ok thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I am the wisest ma

Re: [FFmpeg-devel] [PATCH] Moves yuv2yuvX_sse3 to yasm, unrolls main loop and other small optimizations for ~20% speedup.

2021-02-09 Thread Alan Kelly
Ping! On Thu, Jan 14, 2021 at 3:47 PM Alan Kelly wrote: > --- > Replaces cpuflag(mmx) with notcpuflag(sse3) for store macro > Tests for multiple sizes in checkasm-sw_scale > checkasm-sw_scale aligns memory on 8 bytes instad of 32 to catch aligned > loads > libswscale/x86/Makefile |

[FFmpeg-devel] [PATCH 30/50 v2] avformat/subtitles: use av_packet_alloc() to allocate packets

2021-02-09 Thread James Almer
Signed-off-by: James Almer --- libavformat/jacosubdec.c | 2 +- libavformat/mpeg.c | 4 +-- libavformat/mpsubdec.c | 4 +-- libavformat/subtitles.c | 69 +++- libavformat/subtitles.h | 2 +- libavformat/tedcaptionsdec.c | 4 +-- 6

[FFmpeg-devel] [PATCH 15/50 v2] avformat/avienc: use av_packet_alloc() to allocate packets

2021-02-09 Thread James Almer
Signed-off-by: James Almer --- libavformat/avienc.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 1b2cb529b9..aee168dd96 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -66,6 +66,7 @@ typed

[FFmpeg-devel] [PATCH] avcodec: add setts bitstream filter

2021-02-09 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/bitstream_filters.texi | 51 libavcodec/Makefile| 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/setts_bsf.c | 215 + 4 files changed, 268 insertions(+) create mode 100644 libavcodec/

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_zscale: switch verbose log to trace

2021-02-09 Thread Paul B Mahol
On Tue, Feb 9, 2021 at 2:25 PM Gyan Doshi wrote: > This is the filter initial config so should be DEBUG. > Disagree, message is completely repeating stuff mentioned elsewhere. > > On 09-02-2021 03:07 pm, Paul B Mahol wrote: > > ffmpeg | branch: master | Paul B Mahol | Tue Feb 9 > 10:35:36 20

Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/vf_zscale: switch verbose log to trace

2021-02-09 Thread Gyan Doshi
This is the filter initial config so should be DEBUG. On 09-02-2021 03:07 pm, Paul B Mahol wrote: ffmpeg | branch: master | Paul B Mahol | Tue Feb 9 10:35:36 2021 +0100| [8e027ca81760bb94c7404d0d9c0e0ca82f5a9107] | committer: Paul B Mahol avfilter/vf_zscale: switch verbose log to trace Not

Re: [FFmpeg-devel] [PATCH] avcodec: add cri parser

2021-02-09 Thread Paul B Mahol
Will apply soon. ___ 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 "unsubscribe".

Re: [FFmpeg-devel] [PATCH 1/4] Remove unnecessary mem.h inclusions

2021-02-09 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2021-02-04 12:06:15) >> Anton Khirnov: >>> Quoting Andreas Rheinhardt (2021-02-04 01:05:05) Thanks for the report. I have only checked for whether the relevant translation unit uses any of the alloc/free functions (because DECLARE_ALIGNED

Re: [FFmpeg-devel] [PATCH] avdevice/avdevice: Deprecate AVDevice Capabilities API

2021-02-09 Thread Andreas Rheinhardt
Andreas Rheinhardt: > It has been added in 6db42a2b6b22e6f1928fafcf3faa67ed78201004, > yet since then none of the necessary create/free_device_capabilities > functions has been implemented, making this API completely useless. > > Because of this one can already simplify > avdevice_capabilities_fre