Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
1cab6a33
Commit
1cab6a33
authored
Sep 08, 2015
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/drawtext: use AV_OPT_TYPE_BOOL for a few options
parent
97692ef1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_drawtext.c
libavfilter/vf_drawtext.c
+5
-5
No files found.
libavfilter/vf_drawtext.c
View file @
1cab6a33
...
...
@@ -207,7 +207,7 @@ static const AVOption drawtext_options[]= {
{
"boxcolor"
,
"set box color"
,
OFFSET
(
boxcolor
.
rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"white"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"bordercolor"
,
"set border color"
,
OFFSET
(
bordercolor
.
rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"shadowcolor"
,
"set shadow color"
,
OFFSET
(
shadowcolor
.
rgba
),
AV_OPT_TYPE_COLOR
,
{.
str
=
"black"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"box"
,
"set box"
,
OFFSET
(
draw_box
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"box"
,
"set box"
,
OFFSET
(
draw_box
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"boxborderw"
,
"set box border width"
,
OFFSET
(
boxborderw
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
INT_MIN
,
INT_MAX
,
FLAGS
},
{
"fontsize"
,
"set font size"
,
OFFSET
(
fontsize
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
FLAGS
},
{
"x"
,
"set x expression"
,
OFFSET
(
x_expr
),
AV_OPT_TYPE_STRING
,
{.
str
=
"0"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
...
...
@@ -227,17 +227,17 @@ static const AVOption drawtext_options[]= {
{
"strftime"
,
"set strftime expansion (deprecated)"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_STRFTIME
},
0
,
0
,
FLAGS
,
"expansion"
},
{
"timecode"
,
"set initial timecode"
,
OFFSET
(
tc_opt_string
),
AV_OPT_TYPE_STRING
,
{.
str
=
NULL
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"tc24hmax"
,
"set 24 hours max (timecode only)"
,
OFFSET
(
tc24hmax
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"tc24hmax"
,
"set 24 hours max (timecode only)"
,
OFFSET
(
tc24hmax
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"timecode_rate"
,
"set rate (timecode only)"
,
OFFSET
(
tc_rate
),
AV_OPT_TYPE_RATIONAL
,
{.
dbl
=
0
},
0
,
INT_MAX
,
FLAGS
},
{
"r"
,
"set rate (timecode only)"
,
OFFSET
(
tc_rate
),
AV_OPT_TYPE_RATIONAL
,
{.
dbl
=
0
},
0
,
INT_MAX
,
FLAGS
},
{
"rate"
,
"set rate (timecode only)"
,
OFFSET
(
tc_rate
),
AV_OPT_TYPE_RATIONAL
,
{.
dbl
=
0
},
0
,
INT_MAX
,
FLAGS
},
{
"reload"
,
"reload text file for each frame"
,
OFFSET
(
reload
),
AV_OPT_TYPE_
INT
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"reload"
,
"reload text file for each frame"
,
OFFSET
(
reload
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"alpha"
,
"apply alpha while rendering"
,
OFFSET
(
a_expr
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"1"
},
.
flags
=
FLAGS
},
{
"fix_bounds"
,
"
if true, check and fix text coords to avoid clipping"
,
OFFSET
(
fix_bounds
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
"fix_bounds"
,
"
check and fix text coords to avoid clipping"
,
OFFSET
(
fix_bounds
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
"start_number"
,
"start frame number for n/frame_num variable"
,
OFFSET
(
start_number
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
FLAGS
},
#if CONFIG_LIBFRIBIDI
{
"text_shaping"
,
"attempt to shape text before drawing"
,
OFFSET
(
text_shaping
),
AV_OPT_TYPE_
INT
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
{
"text_shaping"
,
"attempt to shape text before drawing"
,
OFFSET
(
text_shaping
),
AV_OPT_TYPE_
BOOL
,
{.
i64
=
1
},
0
,
1
,
FLAGS
},
#endif
/* FT_LOAD_* flags */
...
...
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