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
288f9166
Commit
288f9166
authored
May 23, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/testsrc: move color options to the color scope filter definition.
parent
eee19198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
vsrc_testsrc.c
libavfilter/vsrc_testsrc.c
+7
-9
No files found.
libavfilter/vsrc_testsrc.c
View file @
288f9166
...
...
@@ -84,15 +84,6 @@ typedef struct {
{ "sar", "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1}, 0, INT_MAX, FLAGS },
static
const
AVOption
color_options
[]
=
{
/* only used by color */
{
"color"
,
"set color"
,
OFFSET
(
color_rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"c"
,
"set color"
,
OFFSET
(
color_rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
COMMON_OPTIONS
{
NULL
},
};
static
const
AVOption
options
[]
=
{
COMMON_OPTIONS
/* only used by testsrc */
...
...
@@ -186,6 +177,13 @@ static int request_frame(AVFilterLink *outlink)
#if CONFIG_COLOR_FILTER
static
const
AVOption
color_options
[]
=
{
{
"color"
,
"set color"
,
OFFSET
(
color_rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"c"
,
"set color"
,
OFFSET
(
color_rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
COMMON_OPTIONS
{
NULL
}
};
AVFILTER_DEFINE_CLASS
(
color
);
static
void
color_fill_picture
(
AVFilterContext
*
ctx
,
AVFrame
*
picref
)
...
...
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