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
c5b484e6
Commit
c5b484e6
authored
Mar 21, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_stereo3d: use standard options parsing
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
cedf2765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
vf_stereo3d.c
libavfilter/vf_stereo3d.c
+3
-24
No files found.
libavfilter/vf_stereo3d.c
View file @
c5b484e6
...
...
@@ -178,21 +178,6 @@ static const AVOption stereo3d_options[] = {
AVFILTER_DEFINE_CLASS
(
stereo3d
);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
Stereo3DContext
*
s
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"in"
,
"out"
,
NULL
};
int
ret
;
s
->
class
=
&
stereo3d_class
;
av_opt_set_defaults
(
s
);
if
((
ret
=
av_opt_set_from_string
(
s
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
return
0
;
}
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
...
...
@@ -436,13 +421,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
return
0
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
Stereo3DContext
*
s
=
ctx
->
priv
;
av_opt_free
(
s
);
}
static
const
AVFilterPad
stereo3d_inputs
[]
=
{
{
.
name
=
"default"
,
...
...
@@ -462,14 +440,15 @@ static const AVFilterPad stereo3d_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"in"
,
"out"
,
NULL
};
AVFilter
avfilter_vf_stereo3d
=
{
.
name
=
"stereo3d"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Convert video stereoscopic 3D view."
),
.
priv_size
=
sizeof
(
Stereo3DContext
),
.
init
=
init
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
inputs
=
stereo3d_inputs
,
.
outputs
=
stereo3d_outputs
,
.
priv_class
=
&
stereo3d_class
,
.
shorthand
=
shorthand
,
};
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