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
e9f45a83
Commit
e9f45a83
authored
Mar 16, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_tile: use standard options parsing.
parent
8c6c811b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vf_tile.c
libavfilter/vf_tile.c
+4
-8
No files found.
libavfilter/vf_tile.c
View file @
e9f45a83
...
@@ -65,14 +65,6 @@ AVFILTER_DEFINE_CLASS(tile);
...
@@ -65,14 +65,6 @@ AVFILTER_DEFINE_CLASS(tile);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
TileContext
*
tile
=
ctx
->
priv
;
TileContext
*
tile
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"layout"
,
"nb_frames"
,
"margin"
,
"padding"
,
NULL
};
int
ret
;
tile
->
class
=
&
tile_class
;
av_opt_set_defaults
(
tile
);
if
((
ret
=
av_opt_set_from_string
(
tile
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
tile
->
w
>
REASONABLE_SIZE
||
tile
->
h
>
REASONABLE_SIZE
)
{
if
(
tile
->
w
>
REASONABLE_SIZE
||
tile
->
h
>
REASONABLE_SIZE
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Tile size %ux%u is insane.
\n
"
,
av_log
(
ctx
,
AV_LOG_ERROR
,
"Tile size %ux%u is insane.
\n
"
,
...
@@ -243,6 +235,9 @@ static const AVFilterPad tile_outputs[] = {
...
@@ -243,6 +235,9 @@ static const AVFilterPad tile_outputs[] = {
{
NULL
}
{
NULL
}
};
};
static
const
char
*
const
shorthand
[]
=
{
"layout"
,
"nb_frames"
,
"margin"
,
"padding"
,
NULL
};
AVFilter
avfilter_vf_tile
=
{
AVFilter
avfilter_vf_tile
=
{
.
name
=
"tile"
,
.
name
=
"tile"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Tile several successive frames together."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Tile several successive frames together."
),
...
@@ -252,4 +247,5 @@ AVFilter avfilter_vf_tile = {
...
@@ -252,4 +247,5 @@ AVFilter avfilter_vf_tile = {
.
inputs
=
tile_inputs
,
.
inputs
=
tile_inputs
,
.
outputs
=
tile_outputs
,
.
outputs
=
tile_outputs
,
.
priv_class
=
&
tile_class
,
.
priv_class
=
&
tile_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