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
ff8f6691
Commit
ff8f6691
authored
Aug 02, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_drawgraph: stop making foreground color transparent
parent
a95210bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
f_drawgraph.c
libavfilter/f_drawgraph.c
+6
-5
No files found.
libavfilter/f_drawgraph.c
View file @
ff8f6691
...
...
@@ -51,13 +51,13 @@ typedef struct DrawGraphContext {
static
const
AVOption
drawgraph_options
[]
=
{
{
"m1"
,
"set 1st metadata key"
,
OFFSET
(
key
[
0
]),
AV_OPT_TYPE_STRING
,
{.
str
=
""
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg1"
,
"set 1st foreground color expression"
,
OFFSET
(
fg_str
[
0
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0xff0000"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg1"
,
"set 1st foreground color expression"
,
OFFSET
(
fg_str
[
0
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0xff
ff
0000"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"m2"
,
"set 2nd metadata key"
,
OFFSET
(
key
[
1
]),
AV_OPT_TYPE_STRING
,
{.
str
=
""
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg2"
,
"set 2nd foreground color expression"
,
OFFSET
(
fg_str
[
1
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0x00ff00"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg2"
,
"set 2nd foreground color expression"
,
OFFSET
(
fg_str
[
1
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0x
ff
00ff00"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"m3"
,
"set 3rd metadata key"
,
OFFSET
(
key
[
2
]),
AV_OPT_TYPE_STRING
,
{.
str
=
""
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg3"
,
"set 3rd foreground color expression"
,
OFFSET
(
fg_str
[
2
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0xff00ff"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg3"
,
"set 3rd foreground color expression"
,
OFFSET
(
fg_str
[
2
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0xff
ff
00ff"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"m4"
,
"set 4th metadata key"
,
OFFSET
(
key
[
3
]),
AV_OPT_TYPE_STRING
,
{.
str
=
""
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg4"
,
"set 4th foreground color expression"
,
OFFSET
(
fg_str
[
3
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0xffff00"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"fg4"
,
"set 4th foreground color expression"
,
OFFSET
(
fg_str
[
3
]),
AV_OPT_TYPE_STRING
,
{.
str
=
"0xffff
ff
00"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"bg"
,
"set background color"
,
OFFSET
(
bg
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"white"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"min"
,
"set minimal value"
,
OFFSET
(
min
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=-
1
.},
INT_MIN
,
INT_MAX
,
FLAGS
},
{
"max"
,
"set maximal value"
,
OFFSET
(
max
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
.},
INT_MIN
,
INT_MAX
,
FLAGS
},
...
...
@@ -161,7 +161,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
double
values
[
VAR_VARS_NB
];
int
j
,
y
,
x
,
fg
,
bg
,
old
;
int
j
,
y
,
x
,
old
;
uint32_t
fg
,
bg
;
float
vf
;
e
=
av_dict_get
(
metadata
,
s
->
key
[
i
],
NULL
,
0
);
...
...
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