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
3475c834
Commit
3475c834
authored
May 06, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add zoneplate video test source
parent
086a0f3e
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
300 additions
and
2 deletions
+300
-2
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+98
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+2
-2
vsrc_testsrc.c
libavfilter/vsrc_testsrc.c
+197
-0
No files found.
Changelog
View file @
3475c834
...
...
@@ -8,6 +8,7 @@ version <next>:
- afireqsrc audio source filter
- arls filter
- ffmpeg CLI new option: -readrate_initial_burst
- zoneplate video source filter
version 6.0:
- Radiance HDR image support
...
...
doc/filters.texi
View file @
3475c834
...
...
@@ -28083,6 +28083,104 @@ Set max jump for single pan destination. Allowed range is from 1 to 10000.
Set fractal type, can be default @code{carpet} or @code{triangle}.
@end table
@section zoneplate
Generate a zoneplate test video pattern.
This source accepts the following options:
@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 "320x240".
@item rate, r
Set frame rate, expressed as number of frames per second. Default
value is "25".
@item duration, d
Set the duration of the sourced video. See
@ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}
for the accepted syntax.
If not specified, or the expressed duration is negative, the video is
supposed to be generated forever.
@item sar
Set the sample aspect ratio of the sourced video.
@item precision
Set precision in bits for look-up table for sine calculations. Default value is 10.
Allowed range is from 4 to 16.
@item xo
Set horizontal axis offset for output signal. Default value is 0.
@item yo
Set vertical axis offset for output signal. Default value is 0.
@item to
Set time axis offset for output signal. Default value is 0.
@item k0
Set 0-order, constant added to signal phase. Default value is 0.
@item kx
Set 1-order, phase factor multiplier for horizontal axis. Default value is 0.
@item ky
Set 1-order, phase factor multiplier for vertical axis. Default value is 0.
@item kt
Set 1-order, phase factor multiplier for time axis. Default value is 0.
@item kxt, kyt, kxy
Set phase factor multipliers for combination of spatial and temporal axis.
Default value is 0.
@item kx2
Set 2-order, phase factor multiplier for horizontal axis. Default value is 0.
@item ky2
Set 2-order, phase factor multiplier for vertical axis. Default value is 0.
@item kt2
Set 2-order, phase factor multiplier for time axis. Default value is 0.
@item ku
Set the constant added to final phase to produce chroma-blue component of signal.
Default value is 0.
@item kv
Set the constant added to final phase to produce chroma-red component of signal.
Default value is 0.
@end table
@subsection Commands
This source supports the some above options as @ref{commands}.
@subsection Examples
@itemize
@item
Generate horizontal color sine sweep:
@example
zoneplate=ku=512:kv=0:kt2=0:kx2=256:s=wvga:xo=-426:kt=11
@end example
@item
Generate vertical color sine sweep:
@example
zoneplate=ku=512:kv=0:kt2=0:ky2=156:s=wvga:yo=-240:kt=11
@end example
@item
Generate circular zone-plate:
@example
zoneplate=ku=512:kv=100:kt2=0:ky2=256:kx2=556:s=wvga:yo=0:kt=11
@end example
@end itemize
@c man end VIDEO SOURCES
@chapter Video Sinks
...
...
libavfilter/Makefile
View file @
3475c834
...
...
@@ -592,6 +592,7 @@ OBJS-$(CONFIG_SMPTEHDBARS_FILTER) += vsrc_testsrc.o
OBJS-$(CONFIG_TESTSRC_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_TESTSRC2_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_YUVTESTSRC_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_ZONEPLATE_FILTER)
+=
vsrc_testsrc.o
OBJS-$(CONFIG_NULLSINK_FILTER)
+=
vsink_nullsink.o
...
...
libavfilter/allfilters.c
View file @
3475c834
...
...
@@ -557,6 +557,7 @@ extern const AVFilter ff_vsrc_smptehdbars;
extern
const
AVFilter
ff_vsrc_testsrc
;
extern
const
AVFilter
ff_vsrc_testsrc2
;
extern
const
AVFilter
ff_vsrc_yuvtestsrc
;
extern
const
AVFilter
ff_vsrc_zoneplate
;
extern
const
AVFilter
ff_vsink_nullsink
;
...
...
libavfilter/version.h
View file @
3475c834
...
...
@@ -31,8 +31,8 @@
#include "version_major.h"
#define LIBAVFILTER_VERSION_MINOR
7
#define LIBAVFILTER_VERSION_MICRO 10
2
#define LIBAVFILTER_VERSION_MINOR
8
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
...
...
libavfilter/vsrc_testsrc.c
View file @
3475c834
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