Commit dea673d0 authored by Soft Works's avatar Soft Works Committed by Paul B Mahol

avfilter/vf_palette(gen|use): support palettes with alpha

parent 3ee72501
......@@ -16580,6 +16580,9 @@ Compute new histogram for each frame.
@end table
Default value is @var{full}.
@item use_alpha
Create a palette of colors with alpha components.
Setting this, will automatically disable 'reserve_transparent'.
@end table
The filter also exports the frame metadata @code{lavfi.color_quant_ratio}
......@@ -16658,6 +16661,11 @@ will be treated as completely opaque, and values below this threshold will be
treated as completely transparent.
The option must be an integer value in the range [0,255]. Default is @var{128}.
@item use_alpha
Apply the palette by taking alpha values into account. Only useful with
palettes that are containing multiple colors with alpha components.
Setting this will automatically disable 'alpha_treshold'.
@end table
@subsection Examples
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment