Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi
@ 2022-08-05  6:11 Fei Wang
  2022-08-05  6:11 ` [FFmpeg-devel] [PATCH v2 2/2] lavfi/overlay_vaapi: set defalut alpha value as 1.0 Fei Wang
  2022-08-06  3:23 ` [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi Philip Langdale
  0 siblings, 2 replies; 4+ messages in thread
From: Fei Wang @ 2022-08-05  6:11 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Fei Wang

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
---
update:
1. refine commit message and content in doc file.

 doc/filters.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 4a5412c91d..a66b750d57 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -26168,8 +26168,8 @@ Set the height of the overlaid video on the main video.
 Default value is the height of input overlay video.
 
 @item alpha
-Set blocking detection thresholds. Allowed range is 0.0 to 1.0, it
-requires an input video with alpha channel.
+Set transparency of overlaid video. Allowed range is 0.0 to 1.0.
+Higher value means lower transparency.
 Default value is @code{0.0}.
 
 @end table
-- 
2.25.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [FFmpeg-devel] [PATCH v2 2/2] lavfi/overlay_vaapi: set defalut alpha value as 1.0
  2022-08-05  6:11 [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi Fei Wang
@ 2022-08-05  6:11 ` Fei Wang
  2022-08-06  3:23   ` Philip Langdale
  2022-08-06  3:23 ` [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi Philip Langdale
  1 sibling, 1 reply; 4+ messages in thread
From: Fei Wang @ 2022-08-05  6:11 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Fei Wang

The present default value of 0 will render the overlay video invisible.
A default of 1.0 is consistent with most common use cases.

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
---
 doc/filters.texi               | 2 +-
 libavfilter/vf_overlay_vaapi.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index a66b750d57..da0a946a6f 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -26170,7 +26170,7 @@ Default value is the height of input overlay video.
 @item alpha
 Set transparency of overlaid video. Allowed range is 0.0 to 1.0.
 Higher value means lower transparency.
-Default value is @code{0.0}.
+Default value is @code{1.0}.
 
 @end table
 
diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c
index b3a624ae15..3e6a0de13f 100644
--- a/libavfilter/vf_overlay_vaapi.c
+++ b/libavfilter/vf_overlay_vaapi.c
@@ -380,7 +380,7 @@ static const AVOption overlay_vaapi_options[] = {
     { "h", "Overlay height",
       OFFSET(overlay_oh), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, .flags = FLAGS },
     { "alpha", "Overlay global alpha",
-      OFFSET(alpha), AV_OPT_TYPE_FLOAT, { .dbl = 0.0}, 0.0, 1.0, .flags = FLAGS},
+      OFFSET(alpha), AV_OPT_TYPE_FLOAT, { .dbl = 1.0}, 0.0, 1.0, .flags = FLAGS},
     { NULL },
 };
 
-- 
2.25.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi
  2022-08-05  6:11 [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi Fei Wang
  2022-08-05  6:11 ` [FFmpeg-devel] [PATCH v2 2/2] lavfi/overlay_vaapi: set defalut alpha value as 1.0 Fei Wang
@ 2022-08-06  3:23 ` Philip Langdale
  1 sibling, 0 replies; 4+ messages in thread
From: Philip Langdale @ 2022-08-06  3:23 UTC (permalink / raw)
  To: ffmpeg-devel

On Fri,  5 Aug 2022 14:11:18 +0800
Fei Wang <fei.w.wang-at-intel.com@ffmpeg.org> wrote:

> Signed-off-by: Fei Wang <fei.w.wang@intel.com>
> ---
> update:
> 1. refine commit message and content in doc file.
> 
>  doc/filters.texi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 4a5412c91d..a66b750d57 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -26168,8 +26168,8 @@ Set the height of the overlaid video on the
> main video. Default value is the height of input overlay video.
>  
>  @item alpha
> -Set blocking detection thresholds. Allowed range is 0.0 to 1.0, it
> -requires an input video with alpha channel.
> +Set transparency of overlaid video. Allowed range is 0.0 to 1.0.
> +Higher value means lower transparency.
>  Default value is @code{0.0}.
>  
>  @end table

LGTM

--phil
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH v2 2/2] lavfi/overlay_vaapi: set defalut alpha value as 1.0
  2022-08-05  6:11 ` [FFmpeg-devel] [PATCH v2 2/2] lavfi/overlay_vaapi: set defalut alpha value as 1.0 Fei Wang
@ 2022-08-06  3:23   ` Philip Langdale
  0 siblings, 0 replies; 4+ messages in thread
From: Philip Langdale @ 2022-08-06  3:23 UTC (permalink / raw)
  To: ffmpeg-devel

On Fri,  5 Aug 2022 14:11:19 +0800
Fei Wang <fei.w.wang-at-intel.com@ffmpeg.org> wrote:

> The present default value of 0 will render the overlay video
> invisible. A default of 1.0 is consistent with most common use cases.
> 
> Signed-off-by: Fei Wang <fei.w.wang@intel.com>
> ---
>  doc/filters.texi               | 2 +-
>  libavfilter/vf_overlay_vaapi.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/doc/filters.texi b/doc/filters.texi
> index a66b750d57..da0a946a6f 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -26170,7 +26170,7 @@ Default value is the height of input overlay
> video. @item alpha
>  Set transparency of overlaid video. Allowed range is 0.0 to 1.0.
>  Higher value means lower transparency.
> -Default value is @code{0.0}.
> +Default value is @code{1.0}.
>  
>  @end table
>  
> diff --git a/libavfilter/vf_overlay_vaapi.c
> b/libavfilter/vf_overlay_vaapi.c index b3a624ae15..3e6a0de13f 100644
> --- a/libavfilter/vf_overlay_vaapi.c
> +++ b/libavfilter/vf_overlay_vaapi.c
> @@ -380,7 +380,7 @@ static const AVOption overlay_vaapi_options[] = {
>      { "h", "Overlay height",
>        OFFSET(overlay_oh), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX,
> .flags = FLAGS }, { "alpha", "Overlay global alpha",
> -      OFFSET(alpha), AV_OPT_TYPE_FLOAT, { .dbl = 0.0}, 0.0, 1.0,
> .flags = FLAGS},
> +      OFFSET(alpha), AV_OPT_TYPE_FLOAT, { .dbl = 1.0}, 0.0, 1.0,
> .flags = FLAGS}, { NULL },
>  };
>  

LGTM


--phil
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-06 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05  6:11 [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi Fei Wang
2022-08-05  6:11 ` [FFmpeg-devel] [PATCH v2 2/2] lavfi/overlay_vaapi: set defalut alpha value as 1.0 Fei Wang
2022-08-06  3:23   ` Philip Langdale
2022-08-06  3:23 ` [FFmpeg-devel] [PATCH v2 1/2] doc/filters: correct description of overlay_vaapi Philip Langdale

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git