mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/overlay_vaapi: set defalut alpha value as 1.0
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> Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
4e0686df39
commit
26890b6b67
@ -26183,7 +26183,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
|
||||
|
||||
|
@ -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 },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user