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
7ff5a345
Commit
7ff5a345
authored
Jul 02, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: use AVFILTER_DEFINE_CLASS()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
6e5864ab
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
36 deletions
+9
-36
af_bs2b.c
libavfilter/af_bs2b.c
+2
-7
vf_cover_rect.c
libavfilter/vf_cover_rect.c
+1
-7
vf_find_rect.c
libavfilter/vf_find_rect.c
+3
-9
vf_framepack.c
libavfilter/vf_framepack.c
+2
-7
vf_shuffleplanes.c
libavfilter/vf_shuffleplanes.c
+1
-6
No files found.
libavfilter/af_bs2b.c
View file @
7ff5a345
...
...
@@ -47,7 +47,7 @@ typedef struct Bs2bContext {
#define OFFSET(x) offsetof(Bs2bContext, x)
#define A AV_OPT_FLAG_AUDIO_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
bs2b_
options
[]
=
{
{
"profile"
,
"Apply a pre-defined crossfeed level"
,
OFFSET
(
profile
),
AV_OPT_TYPE_INT
,
{
.
i64
=
BS2B_DEFAULT_CLEVEL
},
0
,
INT_MAX
,
A
,
"profile"
},
{
"default"
,
"default profile"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
BS2B_DEFAULT_CLEVEL
},
0
,
0
,
A
,
"profile"
},
...
...
@@ -60,12 +60,7 @@ static const AVOption options[] = {
{
NULL
},
};
static
const
AVClass
bs2b_class
=
{
.
class_name
=
"bs2b filter"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVFILTER_DEFINE_CLASS
(
bs2b
);
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
{
...
...
libavfilter/vf_cover_rect.c
View file @
7ff5a345
...
...
@@ -53,13 +53,7 @@ static const AVOption cover_rect_options[] = {
{
NULL
}
};
static
const
AVClass
cover_rect_class
=
{
.
class_name
=
"cover_rect"
,
.
item_name
=
av_default_item_name
,
.
option
=
cover_rect_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
category
=
AV_CLASS_CATEGORY_FILTER
,
};
AVFILTER_DEFINE_CLASS
(
cover_rect
);
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
...
...
libavfilter/vf_find_rect.c
View file @
7ff5a345
...
...
@@ -45,7 +45,7 @@ typedef struct FOCContext {
#define OFFSET(x) offsetof(FOCContext, x)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
static
const
AVOption
f
oc
_options
[]
=
{
static
const
AVOption
f
ind_rect
_options
[]
=
{
{
"object"
,
"object bitmap filename"
,
OFFSET
(
obj_filename
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
.
flags
=
FLAGS
},
{
"threshold"
,
"set threshold"
,
OFFSET
(
threshold
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.
5
},
0
,
1
.
0
,
FLAGS
},
{
"mipmaps"
,
"set mipmaps"
,
OFFSET
(
mipmaps
),
AV_OPT_TYPE_INT
,
{.
i64
=
3
},
1
,
MAX_MIPMAPS
,
FLAGS
},
...
...
@@ -56,13 +56,7 @@ static const AVOption foc_options[] = {
{
NULL
}
};
static
const
AVClass
foc_class
=
{
.
class_name
=
"find_rect"
,
.
item_name
=
av_default_item_name
,
.
option
=
foc_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
.
category
=
AV_CLASS_CATEGORY_FILTER
,
};
AVFILTER_DEFINE_CLASS
(
find_rect
);
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
...
...
@@ -307,5 +301,5 @@ AVFilter ff_vf_find_rect = {
.
query_formats
=
query_formats
,
.
inputs
=
foc_inputs
,
.
outputs
=
foc_outputs
,
.
priv_class
=
&
f
oc
_class
,
.
priv_class
=
&
f
ind_rect
_class
,
};
libavfilter/vf_framepack.c
View file @
7ff5a345
...
...
@@ -315,7 +315,7 @@ static int request_frame(AVFilterLink *outlink)
#define OFFSET(x) offsetof(FramepackContext, x)
#define V AV_OPT_FLAG_VIDEO_PARAM
static
const
AVOption
options
[]
=
{
static
const
AVOption
framepack_
options
[]
=
{
{
"format"
,
"Frame pack output format"
,
OFFSET
(
format
),
AV_OPT_TYPE_INT
,
{
.
i64
=
AV_STEREO3D_SIDEBYSIDE
},
0
,
INT_MAX
,
.
flags
=
V
,
.
unit
=
"format"
},
{
"sbs"
,
"Views are packed next to each other"
,
0
,
AV_OPT_TYPE_CONST
,
...
...
@@ -331,12 +331,7 @@ static const AVOption options[] = {
{
NULL
},
};
static
const
AVClass
framepack_class
=
{
.
class_name
=
"framepack"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVFILTER_DEFINE_CLASS
(
framepack
);
static
const
AVFilterPad
framepack_inputs
[]
=
{
{
...
...
libavfilter/vf_shuffleplanes.c
View file @
7ff5a345
...
...
@@ -134,12 +134,7 @@ static const AVOption shuffleplanes_options[] = {
{
NULL
},
};
static
const
AVClass
shuffleplanes_class
=
{
.
class_name
=
"shuffleplanes"
,
.
item_name
=
av_default_item_name
,
.
option
=
shuffleplanes_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVFILTER_DEFINE_CLASS
(
shuffleplanes
);
static
const
AVFilterPad
shuffleplanes_inputs
[]
=
{
{
...
...
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