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
f63939de
Commit
f63939de
authored
May 15, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add gradients source video filter
parent
cdd06db5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
321 additions
and
1 deletion
+321
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+27
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
vsrc_gradients.c
libavfilter/vsrc_gradients.c
+290
-0
No files found.
Changelog
View file @
f63939de
...
@@ -68,6 +68,7 @@ version <next>:
...
@@ -68,6 +68,7 @@ version <next>:
- pcm_rechunk bitstream filter
- pcm_rechunk bitstream filter
- scdet filter
- scdet filter
- NotchLC decoder
- NotchLC decoder
- gradients source video filter
version 4.2:
version 4.2:
...
...
doc/filters.texi
View file @
f63939de
...
@@ -22281,6 +22281,33 @@ need for a nullsrc video source.
...
@@ -22281,6 +22281,33 @@ need for a nullsrc video source.
@end itemize
@end itemize
@section gradients
Generate several gradients.
@table @option
@item size, s
Set frame size. For the syntax of this option, check the @ref{video size syntax,,"
Video
size
" section in the ffmpeg-utils manual,ffmpeg-utils}. Default value is "
640
x480
".
@item rate, r
Set frame rate, expressed as number of frames per second. Default
value is "
25
".
@item c0, c1, c2, c3, c4, c5, c6, c7
Set 8 colors. Default values for colors is to pick random one.
@item x0, y0, y0, y1
Set gradient line source and destination points. If negative or out of range, random ones
are picked.
@item nb_colors, n
Set number of colors to use at once. Allowed range is from 2 to 8. Default value is 2.
@item seed
Set seed for picking gradient line points.
@end table
@section mandelbrot
@section mandelbrot
Generate a Mandelbrot set fractal, and progressively zoom towards the
Generate a Mandelbrot set fractal, and progressively zoom towards the
...
...
libavfilter/Makefile
View file @
f63939de
...
@@ -471,6 +471,7 @@ OBJS-$(CONFIG_CELLAUTO_FILTER) += vsrc_cellauto.o
...
@@ -471,6 +471,7 @@ OBJS-$(CONFIG_CELLAUTO_FILTER) += vsrc_cellauto.o
OBJS-$(CONFIG_COLOR_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_COLOR_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_COREIMAGESRC_FILTER)
+=
vf_coreimage.o
OBJS-$(CONFIG_COREIMAGESRC_FILTER)
+=
vf_coreimage.o
OBJS-$(CONFIG_FREI0R_SRC_FILTER)
+=
vf_frei0r.o
OBJS-$(CONFIG_FREI0R_SRC_FILTER)
+=
vf_frei0r.o
OBJS-$(CONFIG_GRADIENTS_FILTER)
+=
vsrc_gradients.o
OBJS-$(CONFIG_HALDCLUTSRC_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_HALDCLUTSRC_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_LIFE_FILTER)
+=
vsrc_life.o
OBJS-$(CONFIG_LIFE_FILTER)
+=
vsrc_life.o
OBJS-$(CONFIG_MANDELBROT_FILTER)
+=
vsrc_mandelbrot.o
OBJS-$(CONFIG_MANDELBROT_FILTER)
+=
vsrc_mandelbrot.o
...
...
libavfilter/allfilters.c
View file @
f63939de
...
@@ -449,6 +449,7 @@ extern AVFilter ff_vsrc_cellauto;
...
@@ -449,6 +449,7 @@ extern AVFilter ff_vsrc_cellauto;
extern
AVFilter
ff_vsrc_color
;
extern
AVFilter
ff_vsrc_color
;
extern
AVFilter
ff_vsrc_coreimagesrc
;
extern
AVFilter
ff_vsrc_coreimagesrc
;
extern
AVFilter
ff_vsrc_frei0r_src
;
extern
AVFilter
ff_vsrc_frei0r_src
;
extern
AVFilter
ff_vsrc_gradients
;
extern
AVFilter
ff_vsrc_haldclutsrc
;
extern
AVFilter
ff_vsrc_haldclutsrc
;
extern
AVFilter
ff_vsrc_life
;
extern
AVFilter
ff_vsrc_life
;
extern
AVFilter
ff_vsrc_mandelbrot
;
extern
AVFilter
ff_vsrc_mandelbrot
;
...
...
libavfilter/version.h
View file @
f63939de
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 8
1
#define LIBAVFILTER_VERSION_MINOR 8
2
#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_MICRO 100
...
...
libavfilter/vsrc_gradients.c
0 → 100644
View file @
f63939de
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