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
229d5bfd
Commit
229d5bfd
authored
May 27, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/frei0r: make use of AVFILTER_DEFINE_CLASS
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
beda4188
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
vf_frei0r.c
libavfilter/vf_frei0r.c
+6
-16
No files found.
libavfilter/vf_frei0r.c
View file @
229d5bfd
...
...
@@ -410,18 +410,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
#define OFFSET(x) offsetof(Frei0rContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
static
const
AVOption
f
ilte
r_options
[]
=
{
static
const
AVOption
f
rei0
r_options
[]
=
{
{
"filter_name"
,
NULL
,
OFFSET
(
dl_name
),
AV_OPT_TYPE_STRING
,
.
flags
=
FLAGS
},
{
"filter_params"
,
NULL
,
OFFSET
(
params
),
AV_OPT_TYPE_STRING
,
.
flags
=
FLAGS
},
{
NULL
},
};
static
const
AVClass
filter_class
=
{
.
class_name
=
"frei0r"
,
.
item_name
=
av_default_item_name
,
.
option
=
filter_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVFILTER_DEFINE_CLASS
(
frei0r
);
static
const
AVFilterPad
avfilter_vf_frei0r_inputs
[]
=
{
{
...
...
@@ -450,7 +445,7 @@ AVFilter avfilter_vf_frei0r = {
.
uninit
=
uninit
,
.
priv_size
=
sizeof
(
Frei0rContext
),
.
priv_class
=
&
f
ilte
r_class
,
.
priv_class
=
&
f
rei0
r_class
,
.
inputs
=
avfilter_vf_frei0r_inputs
,
...
...
@@ -516,7 +511,7 @@ static int source_request_frame(AVFilterLink *outlink)
return
ff_filter_frame
(
outlink
,
frame
);
}
static
const
AVOption
src_options
[]
=
{
static
const
AVOption
frei0r_
src_options
[]
=
{
{
"size"
,
"Dimensions of the generated video."
,
OFFSET
(
size
),
AV_OPT_TYPE_STRING
,
{
.
str
=
""
},
.
flags
=
FLAGS
},
{
"framerate"
,
NULL
,
OFFSET
(
framerate
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"25"
},
.
flags
=
FLAGS
},
{
"filter_name"
,
NULL
,
OFFSET
(
dl_name
),
AV_OPT_TYPE_STRING
,
.
flags
=
FLAGS
},
...
...
@@ -524,12 +519,7 @@ static const AVOption src_options[] = {
{
NULL
},
};
static
const
AVClass
src_class
=
{
.
class_name
=
"frei0r_src"
,
.
item_name
=
av_default_item_name
,
.
option
=
src_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVFILTER_DEFINE_CLASS
(
frei0r_src
);
static
const
AVFilterPad
avfilter_vsrc_frei0r_src_outputs
[]
=
{
{
...
...
@@ -546,7 +536,7 @@ AVFilter avfilter_vsrc_frei0r_src = {
.
description
=
NULL_IF_CONFIG_SMALL
(
"Generate a frei0r source."
),
.
priv_size
=
sizeof
(
Frei0rContext
),
.
priv_class
=
&
src_class
,
.
priv_class
=
&
frei0r_
src_class
,
.
init
=
source_init
,
.
uninit
=
uninit
,
...
...
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