Re: [FFmpeg-devel] [PATCH v1] avformat/rtsp: fix https://trac.ffmpeg.org/ticket/7517

2021-03-04 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > gaojiang...@live.com > Sent: 2021年3月4日 15:39 > To: ffmpeg-devel@ffmpeg.org > Cc: Jiangjie Gao > Subject: [FFmpeg-devel] [PATCH v1] avformat/rtsp: fix > https://trac.ffmpeg.org/ticket/7517 > > From: Jiangjie Gao > > Signed-off-b

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年3月1日 22:51 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Guo,

Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年3月1日 23:07 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref > private_ref when frame leaves libavf

Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年3月1日 22:24 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref > private_ref when frame leaves libavf

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年3月1日 21:50 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Guo, Yejun: > &g

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年3月1日 21:57 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Andreas Rheinhardt (12021-03-01):

Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: Nicolas George > Sent: 2021年3月1日 21:36 > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref > private_ref when frame leaves libavfilter > &

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

2021-03-01 Thread Guo, Yejun
onfidence 100% and 69.17%. Signed-off-by: Guo, Yejun --- will update vf_drawbox/text to visualize the bounding boxes, and will also add tensorflow support next. configure | 1 + doc/filters.texi | 40 +++ libavfilter/Makefile

[FFmpeg-devel] [PATCH V4 3/4] libavfilter/dnn: add ff_dnn_set_proc to set pre/post proc

2021-03-01 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn_filter_common.c | 7 +++ libavfilter/dnn_filter_common.h | 1 + libavfilter/dnn_interface.h | 6 -- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c index

[FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-03-01 Thread Guo, Yejun
private_ref is for internal use by a single libav* library. It has to be NULL when ownership of the frame leaves the respective library, buffersink is the last step when the frame leaves libavfilter, so add unref here. Signed-off-by: Guo, Yejun --- libavfilter/buffersink.c | 1 + 1 file

[FFmpeg-devel] [PATCH V4 1/4] libavfilter/bbox.h: add BoundingBoxHeader and BoundingBox

2021-03-01 Thread Guo, Yejun
They will be used for filters such as detect and classify. Signed-off-by: Guo, Yejun --- libavfilter/bbox.h | 53 ++ 1 file changed, 53 insertions(+) diff --git a/libavfilter/bbox.h b/libavfilter/bbox.h index 116158d59e..ead14417cc 100644 --- a

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年3月1日 20:24 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Guo, Yejun: > &g

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年3月1日 20:13 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Guo, Yejun: > &g

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年3月1日 16:31 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Guo, Yejun: > &g

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-01 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年3月1日 12:50 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > Guo, Yejun: &g

Re: [FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

2021-02-28 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年2月28日 19:45 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build > warning for [-Wformat-truncation=] > &

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-02-28 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: 2021年2月25日 10:02 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect > for object detection > > > > > -----Origin

Re: [FFmpeg-devel] [PATCH V3 3/5] libavformat/protocols.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-28 Thread Guo, Yejun
s] > > > > > On 27 Feb 2021, at 09:14, Guo, Yejun wrote: > > > > > > > >> -Original Message- > >> From: ffmpeg-devel On Behalf Of > >> Paul B Mahol > >> Sent: 2021年2月26日 19:37 > >> To: FFmpeg developmen

Re: [FFmpeg-devel] [PATCH V3 3/5] libavformat/protocols.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-27 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Paul B > Mahol > Sent: 2021年2月26日 19:37 > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V3 3/5] libavformat/protocols.c: fix build > warning for

Re: [FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

2021-02-26 Thread Guo, Yejun
> -Original Message- > From: Nicolas George > Sent: 2021年2月26日 17:28 > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build > warning for [-Wformat-truncation=] > &

Re: [FFmpeg-devel] [PATCH V2 1/7] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

2021-02-26 Thread Guo, Yejun
; > > > On 25 Feb 2021, at 18:52, Chad Fraleigh wrote: > > > > On 2/24/2021 10:38 PM, Guo, Yejun wrote: > >> libavdevice/v4l2.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.

[FFmpeg-devel] [PATCH V3 5/5] libavutil/opt.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-26 Thread Guo, Yejun
src/libavutil/opt.c: In function ‘av_opt_child_class_iterate’: src/libavutil/opt.c:1738:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] *iter = parent->child_class_next(*iter); ^ Signed-off-by: Guo, Ye

[FFmpeg-devel] [PATCH V3 4/5] libavformat/smoothstreamingenc.c: fix build warning for [-Wformat-truncation=]

2021-02-26 Thread Guo, Yejun
e, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts); ^~~~~~~~~~~ Signed-off-by: Guo, Yejun --- libavformat/smoothstreamingenc.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff

[FFmpeg-devel] [PATCH V3 3/5] libavformat/protocols.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-26 Thread Guo, Yejun
src/libavformat/protocols.c: In function ‘avio_enum_protocols’: src/libavformat/protocols.c:116:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] p = p ? p + 1 : url_protocols; ^ Signed-off-by: Guo, Yejun --- libavformat/protocols.c

[FFmpeg-devel] [PATCH V3 2/5] libavformat/dashenc.c: fix build warning for [-Wformat-truncation=]

2021-02-26 Thread Guo, Yejun
, c->dirname, os->initfile); ^~~~~~~~~~ Signed-off-by: Guo, Yejun --- libavformat/dashenc.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c ind

[FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

2021-02-26 Thread Guo, Yejun
%s", entry->d_name); ^~~~~~~~ Signed-off-by: Guo, Yejun --- libavdevice/v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 365bacd771..cb426cf2d5 100644 --- a/libavdevice/v4l2.

Re: [FFmpeg-devel] [PATCH V2 6/7] libavformat/smoothstreamingenc.c: fix build warning for [-Wformat-truncation=]

2021-02-25 Thread Guo, Yejun
gt; [-Wformat-truncation=] > > > > On 25 Feb 2021, at 07:38, Guo, Yejun wrote: > > --- a/libavformat/smoothstreamingenc.c > > +++ b/libavformat/smoothstreamingenc.c > > @@ -501,7 +501,7 @@ static int ism_flush(AVFormatContext *s, int > > final) > > > >

[FFmpeg-devel] [PATCH V2 6/7] libavformat/smoothstreamingenc.c: fix build warning for [-Wformat-truncation=]

2021-02-24 Thread Guo, Yejun
e, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts); ^~~~~~~~~~~ Signed-off-by: Guo, Yejun --- libavformat/smoothstreamingenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/smooth

[FFmpeg-devel] [PATCH V2 5/7] libavformat/protocols.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-24 Thread Guo, Yejun
src/libavformat/protocols.c: In function ‘avio_enum_protocols’: src/libavformat/protocols.c:116:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] p = p ? p + 1 : url_protocols; ^ Signed-off-by: Guo, Yejun --- libavformat/protocols.c

[FFmpeg-devel] [PATCH V2 7/7] libavutil/opt.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-24 Thread Guo, Yejun
src/libavutil/opt.c: In function ‘av_opt_child_class_iterate’: src/libavutil/opt.c:1738:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] *iter = parent->child_class_next(*iter); ^ Signed-off-by: Guo, Ye

[FFmpeg-devel] [PATCH V2 4/7] libavformat/dashenc.c: fix build warning for [-Wformat-truncation=]

2021-02-24 Thread Guo, Yejun
, c->dirname, os->initfile); ^~~~~~~~~~ Signed-off-by: Guo, Yejun --- libavformat/dashenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 2d757b3a87..b11

[FFmpeg-devel] [PATCH V2 3/7] libavfilter/vf_vif.c: fix build warning for [-Wmain]

2021-02-24 Thread Guo, Yejun
src/libavfilter/vf_vif.c: In function ‘process_frame’: src/libavfilter/vf_vif.c:542:20: warning: ‘main’ is usually a function [-Wmain] AVFrame *out, *main = NULL, *ref = NULL; ^~~~ Signed-off-by: Guo, Yejun --- libavfilter/vf_vif.c | 14 +++--- 1 file changed, 7

[FFmpeg-devel] [PATCH V2 2/7] libavfilter/vf_ssim.c: fix build warning for [-Wmain]

2021-02-24 Thread Guo, Yejun
ane’: src/libavfilter/vf_ssim.c:289:24: warning: ‘main’ is usually a function [-Wmain] const uint8_t *main = td->main_data[c]; ^~~~ Signed-off-by: Guo, Yejun --- libavfilter/vf_ssim.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff -

[FFmpeg-devel] [PATCH V2 1/7] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

2021-02-24 Thread Guo, Yejun
%s", entry->d_name); ^~~~~~~~ Signed-off-by: Guo, Yejun --- libavdevice/v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 365bacd771..e11d10d20e 100644 --- a/libavdevice/v4l2.

Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning

2021-02-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: 2021年2月24日 23:15 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning > > > > > -Original Me

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-02-24 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: 2021年2月22日 15:31 > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V3 3/3] libavfilter: add filter dnn_detect for object > detection > > Below are the example steps to do object detection: &

Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning

2021-02-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: 2021年2月24日 22:05 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning > > Quoting Guo, Yejun (2021-02-20 0

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too many styles

2021-02-23 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年2月24日 3:53 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too > many styles > > Anton Khirnov: > > Quotin

Re: [FFmpeg-devel] [PATCH V3 2/3] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-02-22 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Nicolas > George > Sent: 2021年2月23日 0:05 > To: FFmpeg development discussions and patches > Cc: Guo, Yejun > Subject: Re: [FFmpeg-devel] [PATCH V3 2/3] libavfilter/buffersink.c: unref > private_ref when

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

2021-02-21 Thread Guo, Yejun
onfidence 100% and 69.17%. Signed-off-by: Guo, Yejun --- configure | 1 + doc/filters.texi | 40 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/dnn/dnn_backend_openvino.c | 12

[FFmpeg-devel] [PATCH V3 2/3] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-02-21 Thread Guo, Yejun
--- libavfilter/buffersink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 58848941d4..837a6e9e82 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -98,6 +98,7 @@ static int return_or_keep_frame(BufferSinkContext

[FFmpeg-devel] [PATCH V3 1/3] libavfilter/bbox.h: add BoundingBoxHeader and BoundingBox

2021-02-21 Thread Guo, Yejun
They will be used for filters such as detect and classify. Signed-off-by: Guo, Yejun --- libavfilter/bbox.h | 45 + 1 file changed, 45 insertions(+) diff --git a/libavfilter/bbox.h b/libavfilter/bbox.h index 116158d59e..7c63dfa727 100644 --- a

Re: [FFmpeg-devel] [PATCH 2/4] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-02-21 Thread Guo, Yejun
ns and patches > >> > >> Subject: Re: [FFmpeg-devel] [PATCH 2/4] libavutil: add side data > >> AV_FRAME_DATA_BOUNDING_BOXES > >> > >> Feb 19, 2021, 07:59 by yejun@intel.com: > >> > >> > Signed-off-by: Guo, Yejun > >> > --- >

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too many styles

2021-02-20 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年2月21日 12:39 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too > many styles > > Guo, Yejun: > > > > &g

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too many styles

2021-02-20 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年2月21日 12:12 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too > many styles > > Guo, Yejun: > > > > &g

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too many styles

2021-02-20 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: 2021年2月21日 9:41 > To: ffmpeg-devel@ffmpeg.org > Cc: Andreas Rheinhardt > Subject: [FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: Check for too many > styles > > The counter for the number of styles is w

Re: [FFmpeg-devel] [PATCH 2/8] libavfilter/vf_ssim.c: fix build warning

2021-02-20 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Andreas Rheinhardt > Sent: Sunday, February 21, 2021 6:21 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/8] libavfilter/vf_ssim.c: fix build > warning > > Guo, Yejun: &g

Re: [FFmpeg-devel] [PATCH 2/4] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-02-20 Thread Guo, Yejun
9 by yejun@intel.com: > > > Signed-off-by: Guo, Yejun > > --- > > doc/APIchanges | 2 ++ > > libavutil/frame.c | 1 + > > libavutil/frame.h | 7 +++ > > libavutil/version.h | 2 +- > > 4 files changed, 11 insertions(+), 1 deletion(-) >

[FFmpeg-devel] [PATCH 8/8] libavutil/opt.c: fix build warning

2021-02-19 Thread Guo, Yejun
src/libavutil/opt.c: In function ‘av_opt_child_class_iterate’: src/libavutil/opt.c:1738:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] *iter = parent->child_class_next(*iter); ^ --- This patch set fixes build warnings du

[FFmpeg-devel] [PATCH 7/8] libavcodec/movtextenc.c: fix build warning

2021-02-19 Thread Guo, Yejun
src/libavcodec/movtextenc.c: In function ‘mov_text_style_start’: src/libavcodec/movtextenc.c:358:26: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (s->count + 1 > SIZE_MAX / sizeof(*s->style_attributes) || ^ --- libavco

[FFmpeg-devel] [PATCH 5/8] libavformat/protocols.c: fix build warning

2021-02-19 Thread Guo, Yejun
src/libavformat/protocols.c: In function ‘avio_enum_protocols’: src/libavformat/protocols.c:116:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] p = p ? p + 1 : url_protocols; ^ --- libavformat/protocols.c | 2 +- 1 file changed, 1 in

[FFmpeg-devel] [PATCH 6/8] libavformat/smoothstreamingenc.c: fix build warning

2021-02-19 Thread Guo, Yejun
Part of the build message: src/libavformat/smoothstreamingenc.c: In function ‘ism_flush’: src/libavformat/smoothstreamingenc.c:510:49: warning: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] snprintf(filename, siz

[FFmpeg-devel] [PATCH 4/8] libavformat/dashenc.c: fix build warning

2021-02-19 Thread Guo, Yejun
Part of warning message: src/libavformat/dashenc.c: In function ‘flush_init_segment’: src/libavformat/dashenc.c:608:49: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] snprintf(filename, sizeof(filen

[FFmpeg-devel] [PATCH 3/8] libavfilter/vf_vif.c: fix build warning

2021-02-19 Thread Guo, Yejun
src/libavfilter/vf_vif.c: In function ‘process_frame’: src/libavfilter/vf_vif.c:542:20: warning: ‘main’ is usually a function [-Wmain] AVFrame *out, *main = NULL, *ref = NULL; ^~~~ --- libavfilter/vf_vif.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-

[FFmpeg-devel] [PATCH 2/8] libavfilter/vf_ssim.c: fix build warning

2021-02-19 Thread Guo, Yejun
The build warning message: src/libavfilter/vf_ssim.c: In function ‘ssim_plane_16bit’: src/libavfilter/vf_ssim.c:246:24: warning: ‘main’ is usually a function [-Wmain] const uint8_t *main = td->main_data[c]; ^~~~ src/libavfilter/vf_ssim.c: In function ‘ssim_plane’: s

[FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning

2021-02-19 Thread Guo, Yejun
Here is the warning message: src/libavdevice/v4l2.c: In function ‘v4l2_get_device_list’: src/libavdevice/v4l2.c:1054:58: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 251 [-Wformat-truncation=] snprintf(device_name, sizeof(device_name), "/de

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

2021-02-19 Thread Guo, Yejun
100% and 69.17%. Signed-off-by: Guo, Yejun --- configure | 1 + doc/filters.texi | 40 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/dnn/dnn_backend_openvino.c | 12 +

[FFmpeg-devel] [PATCH V2 2/4] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-02-19 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- doc/APIchanges | 2 ++ libavutil/frame.c | 1 + libavutil/frame.h | 7 +++ libavutil/version.h | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index c353d2d281..3c6e9e351e 100644 --- a/doc

[FFmpeg-devel] [PATCH V2 3/4] libavfilter: show side data of bounding box

2021-02-19 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/f_sidedata.c | 2 ++ libavfilter/vf_showinfo.c | 38 ++ 2 files changed, 40 insertions(+) diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c index 3757723375..912fb0d881 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH V2 1/4] libavfilter/bbox.h: add BoundingBoxHeader and BoundingBox

2021-02-19 Thread Guo, Yejun
They will be used for filters such as detect and classify. Signed-off-by: Guo, Yejun --- libavfilter/bbox.h | 45 + 1 file changed, 45 insertions(+) diff --git a/libavfilter/bbox.h b/libavfilter/bbox.h index 116158d59e..7c63dfa727 100644 --- a

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

2021-02-19 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: 2021年2月19日 15:00 > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 4/4] libavfilter: add filter dnn_detect for object detection > > Below are the example steps to do object detection: >

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

2021-02-18 Thread Guo, Yejun
100% and 69.17%. Signed-off-by: Guo, Yejun --- configure | 1 + doc/filters.texi | 40 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/dnn/dnn_backend_openvino.c | 12 +

[FFmpeg-devel] [PATCH 3/4] libavfilter: show side data of bounding box

2021-02-18 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/f_sidedata.c | 2 ++ libavfilter/vf_showinfo.c | 38 ++ 2 files changed, 40 insertions(+) diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c index 3757723375..912fb0d881 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 2/4] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-02-18 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- doc/APIchanges | 2 ++ libavutil/frame.c | 1 + libavutil/frame.h | 7 +++ libavutil/version.h | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index c353d2d281..3c6e9e351e 100644 --- a/doc

[FFmpeg-devel] [PATCH 1/4] libavfilter/bbox.h: add BoundingBoxHeader and BoundingBox

2021-02-18 Thread Guo, Yejun
They will be used for filters such as detect and classify. Signed-off-by: Guo, Yejun --- libavfilter/bbox.h | 45 + 1 file changed, 45 insertions(+) diff --git a/libavfilter/bbox.h b/libavfilter/bbox.h index 116158d59e..7c63dfa727 100644 --- a

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

2021-02-16 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: 2021年2月16日 18:37 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH V2 08/10] libavutil: add side data > AVDnnBoundingBox for dnn based de

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

2021-02-16 Thread Guo, Yejun
avutil: add side data > >> AVDnnBoundingBox for dnn based detect/classify filters > >> > >> On 10/02/2021 09:34, Guo, Yejun wrote: > >>> Signed-off-by: Guo, Yejun > >>> --- > >>>doc/APIchanges | 2 ++ > >>

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

2021-02-11 Thread Guo, Yejun
t; On 10/02/2021 09:34, Guo, Yejun wrote: > > Signed-off-by: Guo, Yejun > > --- > > doc/APIchanges | 2 ++ > > libavutil/Makefile | 1 + > > libavutil/dnn_bbox.h | 68 > > > libavutil/frame.c| 1

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

2021-02-10 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

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

2021-02-10 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 V2 10/10] libavfilter: add filter dnn_detect for object detection

2021-02-10 Thread Guo, Yejun
ize is 2048x1536, so the two bounding boxese in the original image are (330/672*2048=1006, 203/384*1536=812) -> (1085, 904) and (887, 836) -> (966, 924), and we can check them manually. Signed-off-by: Guo, Yejun Next, we'll add tensorflow backend and update filter vf_drawbox et

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

2021-02-10 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

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

2021-02-10 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 V2 05/10] dnn_interface.h: add enum DNNColorOrder

2021-02-10 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

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

2021-02-10 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

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

2021-02-10 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 V2 01/10] dnn_backend_openvino.c: fix mismatch between ffmpeg(NHWC) and openvino(NCHW)

2021-02-10 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

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

2021-02-10 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-b

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

2021-02-10 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: 2021年2月10日 12:59 > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 08/10] libavutil: add side data AVDnnBoundingBox for dnn > based detect/classify filters > > Signed-off-by: Guo, Yejun > --

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

2021-02-09 Thread Guo, Yejun
t image size is 2048x1536, so the two bounding boxese in the original image are (330/672*2048=1006, 203/384*1536=812) -> (1085, 904) and (887, 836) -> (966, 924), and we can check them manually. Signed-off-by: Guo, Yejun Next, we'll add tensorflow backend and update filter vf_drawbox et

[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

[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

[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

[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

[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-b

[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

Re: [FFmpeg-devel] GSoC 2021

2021-02-07 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: 2021年2月2日 17:48 > To: FFmpeg development discussions and patches > Subject: [FFmpeg-devel] GSoC 2021 > > Hi all > > Most people probably already know but just to be sure everyone knows GSoC > 2021 is

[FFmpeg-devel] [PATCH] vf_pseudocolor.c: fix build warning by adding braces

2021-02-07 Thread Guo, Yejun
the warning message is: warning: missing braces around initializer [-Wmissing-braces] Signed-off-by: Guo, Yejun --- libavfilter/vf_pseudocolor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_pseudocolor.c b/libavfilter/vf_pseudocolor.c index 192839342b

Re: [FFmpeg-devel] [PATCH] libavutil/frame.h: correct typo for AVFilmGrainParams in comment

2021-01-26 Thread Guo, Yejun
27, 2021, 06:21 by yejun@intel.com: > > > Signed-off-by: Guo, Yejun > > --- > > libavutil/frame.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavutil/frame.h b/libavutil/frame.h index > > 392315f40f..1aeafef6de 100644

[FFmpeg-devel] [PATCH] libavutil/frame.h: correct typo for AVFilmGrainParams in comment

2021-01-26 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavutil/frame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/frame.h b/libavutil/frame.h index 392315f40f..1aeafef6de 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -194,7 +194,7 @@ enum AVFrameSideDataType

Re: [FFmpeg-devel] [PATCH 3/3] dnn_backend_openvino.c: remove extra semicolon

2021-01-26 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: 2021年1月26日 9:25 > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 3/3] dnn_backend_openvino.c: remove extra semicolon > > Signed-off-by: Guo, Yejun > --- > libavfilter/dnn/dnn_backend_o

[FFmpeg-devel] [PATCH 3/3] dnn_backend_openvino.c: remove extra semicolon

2021-01-25 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index 9329891c3f..beca256390 100644 --- a/libavfilter/dnn

[FFmpeg-devel] [PATCH 2/3] dnn: remove type cast which is not necessary

2021-01-25 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 10 +- .../dnn/dnn_backend_native_layer_avgpool.c | 2 +- .../dnn/dnn_backend_native_layer_conv2d.c| 4 ++-- libavfilter/dnn/dnn_backend_native_layer_dense.c | 2 +- .../dnn

[FFmpeg-devel] [PATCH 1/3] tests/dnn: enable unit test dense

2021-01-25 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- tests/dnn/Makefile | 1 + tests/dnn/dnn-layer-dense-test.c | 2 +- tests/fate/dnn.mak | 5 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/dnn/Makefile b/tests/dnn/Makefile index 8afdfab5d3..ef827520de 100644

Re: [FFmpeg-devel] [PATCH] tests/dnn: fix build issue after function name changed

2021-01-22 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Jan > Ekstr?m > Sent: 2021年1月22日 20:01 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] tests/dnn: fix build issue after function > name changed > > On Fri, Jan 22,

[FFmpeg-devel] [PATCH] tests/dnn: fix build issue after function name changed

2021-01-22 Thread Guo, Yejun
--- missed to merge the changes into previous patch, will push soon. tests/dnn/dnn-layer-avgpool-test.c | 4 ++-- tests/dnn/dnn-layer-conv2d-test.c | 4 ++-- tests/dnn/dnn-layer-dense-test.c | 2 +- tests/dnn/dnn-layer-depth2space-test.c | 2 +- tests/dnn/dnn-layer-mathbinary-test

Re: [FFmpeg-devel] [PATCH 4/5] dnn: Add ff_ prefix to unnamespaced globals

2021-01-21 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Mark > Thompson > Sent: 2021年1月22日 5:40 > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH 4/5] dnn: Add ff_ prefix to unnamespaced > globals > > --- > libavfilter/dnn/dnn_backend_native.c | 10 +- > l

<    1   2   3   4   5   6   7   8   9   >