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
42c6f2a6
Commit
42c6f2a6
authored
Jan 17, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_drawtext: default to expansion=normal.
parent
5361f495
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
filters.texi
doc/filters.texi
+6
-6
version.h
libavfilter/version.h
+1
-1
vf_drawtext.c
libavfilter/vf_drawtext.c
+1
-1
No files found.
doc/filters.texi
View file @
42c6f2a6
...
@@ -2017,8 +2017,8 @@ See below for the list of accepted constants and functions.
...
@@ -2017,8 +2017,8 @@ See below for the list of accepted constants and functions.
@item expansion
@item expansion
Select how the @var{text} is expanded. Can be either @code{none},
Select how the @var{text} is expanded. Can be either @code{none},
@code{strftime} (de
fault for compatibity reasons but de
precated) or
@code{strftime} (deprecated) or
@code{normal}. See the @ref{drawtext_expansion, Text expansion} section
@code{normal}
(default)
. See the @ref{drawtext_expansion, Text expansion} section
below for details.
below for details.
@item fix_bounds
@item fix_bounds
...
@@ -2192,14 +2192,14 @@ If libavfilter was built with @code{--enable-fontconfig}, then
...
@@ -2192,14 +2192,14 @@ If libavfilter was built with @code{--enable-fontconfig}, then
@anchor{drawtext_expansion}
@anchor{drawtext_expansion}
@subsection Text expansion
@subsection Text expansion
If @option{expansion} is set to @code{strftime}
(which is the default for
If @option{expansion} is set to @code{strftime}
,
now),
the filter recognizes strftime() sequences in the provided text and
the filter recognizes strftime() sequences in the provided text and
expands them accordingly. Check the documentation of strftime(). This
expands them accordingly. Check the documentation of strftime(). This
feature is deprecated.
feature is deprecated.
If @option{expansion} is set to @code{none}, the text is printed verbatim.
If @option{expansion} is set to @code{none}, the text is printed verbatim.
If @option{expansion} is set to @code{normal} (which
will be
the default),
If @option{expansion} is set to @code{normal} (which
is
the default),
the following expansion mechanism is used.
the following expansion mechanism is used.
The backslash character '\', followed by any character, always expands to
The backslash character '\', followed by any character, always expands to
...
@@ -2316,7 +2316,7 @@ drawtext='fontfile=Linux Libertine O-40\:style=Semibold:text=FFmpeg'
...
@@ -2316,7 +2316,7 @@ drawtext='fontfile=Linux Libertine O-40\:style=Semibold:text=FFmpeg'
@item
@item
Print the date of a real-time encoding (see strftime(3)):
Print the date of a real-time encoding (see strftime(3)):
@example
@example
drawtext='fontfile=FreeSans.ttf:
expansion=normal:
text=%@{localtime:%a %b %d %Y@}'
drawtext='fontfile=FreeSans.ttf:text=%@{localtime:%a %b %d %Y@}'
@end example
@end example
@end itemize
@end itemize
...
...
libavfilter/version.h
View file @
42c6f2a6
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 34
#define LIBAVFILTER_VERSION_MINOR 34
#define LIBAVFILTER_VERSION_MICRO 10
0
#define LIBAVFILTER_VERSION_MICRO 10
1
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
libavfilter/vf_drawtext.c
View file @
42c6f2a6
...
@@ -188,7 +188,7 @@ static const AVOption drawtext_options[]= {
...
@@ -188,7 +188,7 @@ static const AVOption drawtext_options[]= {
{
"basetime"
,
"set base time"
,
OFFSET
(
basetime
),
AV_OPT_TYPE_INT64
,
{.
i64
=
AV_NOPTS_VALUE
},
INT64_MIN
,
INT64_MAX
,
FLAGS
},
{
"basetime"
,
"set base time"
,
OFFSET
(
basetime
),
AV_OPT_TYPE_INT64
,
{.
i64
=
AV_NOPTS_VALUE
},
INT64_MIN
,
INT64_MAX
,
FLAGS
},
{
"draw"
,
"if false do not draw"
,
OFFSET
(
draw_expr
),
AV_OPT_TYPE_STRING
,
{.
str
=
"1"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"draw"
,
"if false do not draw"
,
OFFSET
(
draw_expr
),
AV_OPT_TYPE_STRING
,
{.
str
=
"1"
},
CHAR_MIN
,
CHAR_MAX
,
FLAGS
},
{
"expansion"
,
"set the expansion mode"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_INT
,
{.
i64
=
EXP_
STRFTIME
},
0
,
2
,
FLAGS
,
"expansion"
},
{
"expansion"
,
"set the expansion mode"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_INT
,
{.
i64
=
EXP_
NORMAL
},
0
,
2
,
FLAGS
,
"expansion"
},
{
"none"
,
"set no expansion"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_NONE
},
0
,
0
,
FLAGS
,
"expansion"
},
{
"none"
,
"set no expansion"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_NONE
},
0
,
0
,
FLAGS
,
"expansion"
},
{
"normal"
,
"set normal expansion"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_NORMAL
},
0
,
0
,
FLAGS
,
"expansion"
},
{
"normal"
,
"set normal expansion"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_NORMAL
},
0
,
0
,
FLAGS
,
"expansion"
},
{
"strftime"
,
"set strftime expansion (deprecated)"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_STRFTIME
},
0
,
0
,
FLAGS
,
"expansion"
},
{
"strftime"
,
"set strftime expansion (deprecated)"
,
OFFSET
(
exp_mode
),
AV_OPT_TYPE_CONST
,
{.
i64
=
EXP_STRFTIME
},
0
,
0
,
FLAGS
,
"expansion"
},
...
...
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