doc/filters: add details and ranges for colorkey
This commit is contained in:
parent
23a1f11d02
commit
9e8cdb24cd
@ -8496,25 +8496,31 @@ This filter supports the all above options as @ref{commands}.
|
|||||||
|
|
||||||
@section colorkey
|
@section colorkey
|
||||||
RGB colorspace color keying.
|
RGB colorspace color keying.
|
||||||
|
This filter operates on 8-bit RGB format frames by setting the alpha component of each pixel
|
||||||
|
which falls within the similarity radius of the key color to 0. The alpha value for pixels outside
|
||||||
|
the similarity radius depends on the value of the blend option.
|
||||||
|
|
||||||
The filter accepts the following options:
|
The filter accepts the following options:
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item color
|
@item color
|
||||||
The color which will be replaced with transparency.
|
Set the color for which alpha will be set to 0 (full transparency).
|
||||||
|
See @ref{color syntax,,"Color" section in the ffmpeg-utils manual,ffmpeg-utils}.
|
||||||
|
Default is @code{black}.
|
||||||
|
|
||||||
@item similarity
|
@item similarity
|
||||||
Similarity percentage with the key color.
|
Set the radius from the key color within which other colors also have full transparency.
|
||||||
|
The computed distance is related to the unit fractional distance in 3D space between the RGB values
|
||||||
0.01 matches only the exact key color, while 1.0 matches everything.
|
of the key color and the pixel's color. Range is 0.01 to 1.0. 0.01 matches within a very small radius
|
||||||
|
around the exact key color, while 1.0 matches everything.
|
||||||
|
Default is @code{0.01}.
|
||||||
|
|
||||||
@item blend
|
@item blend
|
||||||
Blend percentage.
|
Set how the alpha value for pixels that fall outside the similarity radius is computed.
|
||||||
|
0.0 makes pixels either fully transparent or fully opaque.
|
||||||
0.0 makes pixels either fully transparent, or not transparent at all.
|
Higher values result in semi-transparent pixels, with greater transparency
|
||||||
|
the more similar the pixel color is to the key color.
|
||||||
Higher values result in semi-transparent pixels, with a higher transparency
|
Range is 0.0 to 1.0. Default is @code{0.0}.
|
||||||
the more similar the pixels color is to the key color.
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
@subsection Examples
|
@subsection Examples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user