Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
dea673d0
Commit
dea673d0
authored
Oct 13, 2021
by
Soft Works
Committed by
Paul B Mahol
Oct 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_palette(gen|use): support palettes with alpha
parent
3ee72501
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
231 additions
and
138 deletions
+231
-138
filters.texi
doc/filters.texi
+8
-0
vf_palettegen.c
libavfilter/vf_palettegen.c
+93
-43
vf_paletteuse.c
libavfilter/vf_paletteuse.c
+130
-95
No files found.
doc/filters.texi
View file @
dea673d0
...
@@ -16580,6 +16580,9 @@ Compute new histogram for each frame.
...
@@ -16580,6 +16580,9 @@ Compute new histogram for each frame.
@end table
@end table
Default value is @var{full}.
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
@end table
The filter also exports the frame metadata @code{lavfi.color_quant_ratio}
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
...
@@ -16658,6 +16661,11 @@ will be treated as completely opaque, and values below this threshold will be
treated as completely transparent.
treated as completely transparent.
The option must be an integer value in the range [0,255]. Default is @var{128}.
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
@end table
@subsection Examples
@subsection Examples
...
...
libavfilter/vf_palettegen.c
View file @
dea673d0
This diff is collapsed.
Click to expand it.
libavfilter/vf_paletteuse.c
View file @
dea673d0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment