Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
cc235581
Commit
cc235581
authored
Dec 09, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
life: add mold, mold_color, life_color and death_color options.
parent
c88d6b18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
21 deletions
+126
-21
filters.texi
doc/filters.texi
+20
-0
vsrc_life.c
libavfilter/vsrc_life.c
+106
-21
No files found.
doc/filters.texi
View file @
cc235581
...
@@ -2978,6 +2978,21 @@ If a filename is not specified, the size value defaults to "320x240"
...
@@ -2978,6 +2978,21 @@ If a filename is not specified, the size value defaults to "320x240"
@item stitch
@item stitch
If set to 1, stitch the left and right grid edges together, and the
If set to 1, stitch the left and right grid edges together, and the
top and bottom edges also. Defaults to 1.
top and bottom edges also. Defaults to 1.
@item mold
Set cell mold speed. If set, a dead cell will go from @option{death_color} to
@option{mold_color} with a step of @option{mold}. @option{mold} can have a
value from 0 to 255.
@item life_color
Set the color of living (or new born) cells.
@item death_color
Set the color of dead cells. If @option{mold} is set, this is the first color
used to represent a dead cell.
@item mold_color
Set mold color, for definitely dead and moldy cells.
@end table
@end table
@subsection Examples
@subsection Examples
...
@@ -3002,6 +3017,11 @@ Specify a custom rule for evolving a randomly generated grid:
...
@@ -3002,6 +3017,11 @@ Specify a custom rule for evolving a randomly generated grid:
life=rule=S14/B34
life=rule=S14/B34
@end example
@end example
@item
Full example with slow death effect (mold) using @command{ffplay}:
@example
ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800:flags=16
@end example
@end itemize
@end itemize
@section nullsrc, rgbtestsrc, testsrc
@section nullsrc, rgbtestsrc, testsrc
...
...
libavfilter/vsrc_life.c
View file @
cc235581
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