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
1669c970
Commit
1669c970
authored
Dec 28, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_vectorscope: use enum for graticule items
parent
5c0d1f78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
vf_vectorscope.c
libavfilter/vf_vectorscope.c
+16
-9
No files found.
libavfilter/vf_vectorscope.c
View file @
1669c970
...
...
@@ -29,6 +29,13 @@
#include "internal.h"
#include "video.h"
enum
GraticuleType
{
GRAT_NONE
,
GRAT_GREEN
,
GRAT_COLOR
,
NB_GRATICULES
};
enum
VectorscopeMode
{
GRAY
,
COLOR
,
...
...
@@ -95,11 +102,11 @@ static const AVOption vectorscope_options[] = {
{
"instant"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
1
},
0
,
0
,
FLAGS
,
"envelope"
},
{
"peak"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
2
},
0
,
0
,
FLAGS
,
"envelope"
},
{
"peak+instant"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
3
},
0
,
0
,
FLAGS
,
"envelope"
},
{
"graticule"
,
"set graticule"
,
OFFSET
(
graticule
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
2
,
FLAGS
,
"graticule"
},
{
"g"
,
"set graticule"
,
OFFSET
(
graticule
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
2
,
FLAGS
,
"graticule"
},
{
"none"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
0
},
0
,
0
,
FLAGS
,
"graticule"
},
{
"green"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
1
},
0
,
0
,
FLAGS
,
"graticule"
},
{
"color"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
2
},
0
,
0
,
FLAGS
,
"graticule"
},
{
"graticule"
,
"set graticule"
,
OFFSET
(
graticule
),
AV_OPT_TYPE_INT
,
{.
i64
=
GRAT_NONE
},
0
,
NB_GRATICULES
-
1
,
FLAGS
,
"graticule"
},
{
"g"
,
"set graticule"
,
OFFSET
(
graticule
),
AV_OPT_TYPE_INT
,
{.
i64
=
GRAT_NONE
},
0
,
NB_GRATICULES
-
1
,
FLAGS
,
"graticule"
},
{
"none"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
GRAT_NONE
},
0
,
0
,
FLAGS
,
"graticule"
},
{
"green"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
GRAT_GREEN
},
0
,
0
,
FLAGS
,
"graticule"
},
{
"color"
,
0
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
GRAT_COLOR
},
0
,
0
,
FLAGS
,
"graticule"
},
{
"opacity"
,
"set graticule opacity"
,
OFFSET
(
opacity
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.
75
},
0
,
1
,
FLAGS
},
{
"o"
,
"set graticule opacity"
,
OFFSET
(
opacity
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.
75
},
0
,
1
,
FLAGS
},
{
"flags"
,
"set graticule flags"
,
OFFSET
(
flags
),
AV_OPT_TYPE_FLAGS
,
{.
i64
=
4
},
0
,
7
,
FLAGS
,
"flags"
},
...
...
@@ -1281,14 +1288,14 @@ static int config_input(AVFilterLink *inlink)
s
->
graticulef
=
none_graticule
;
if
(
s
->
is_yuv
&&
s
->
size
==
256
)
{
if
(
s
->
graticule
==
1
)
if
(
s
->
graticule
==
GRAT_GREEN
)
s
->
graticulef
=
green_graticule
;
else
if
(
s
->
graticule
==
2
)
else
if
(
s
->
graticule
==
GRAT_COLOR
)
s
->
graticulef
=
color_graticule
;
}
else
if
(
s
->
is_yuv
)
{
if
(
s
->
graticule
==
1
)
if
(
s
->
graticule
==
GRAT_GREEN
)
s
->
graticulef
=
green_graticule16
;
else
if
(
s
->
graticule
==
2
)
else
if
(
s
->
graticule
==
GRAT_COLOR
)
s
->
graticulef
=
color_graticule16
;
}
...
...
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