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
f782ce3b
Commit
f782ce3b
authored
Aug 28, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drawtext: Support changing parameters through reinit command at runtime.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bb22f39f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
vf_drawtext.c
libavfilter/vf_drawtext.c
+11
-0
No files found.
libavfilter/vf_drawtext.c
View file @
f782ce3b
...
@@ -401,6 +401,16 @@ static int config_input(AVFilterLink *inlink)
...
@@ -401,6 +401,16 @@ static int config_input(AVFilterLink *inlink)
return
0
;
return
0
;
}
}
static
int
command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
arg
,
char
*
res
,
int
res_len
,
int
flags
)
{
if
(
!
strcmp
(
cmd
,
"reinit"
)){
uninit
(
ctx
);
return
init
(
ctx
,
arg
,
NULL
);
}
return
AVERROR
(
ENOSYS
);
}
#define GET_BITMAP_VAL(r, c) \
#define GET_BITMAP_VAL(r, c) \
bitmap->pixel_mode == FT_PIXEL_MODE_MONO ? \
bitmap->pixel_mode == FT_PIXEL_MODE_MONO ? \
(bitmap->buffer[(r) * bitmap->pitch + ((c)>>3)] & (0x80 >> ((c)&7))) * 255 : \
(bitmap->buffer[(r) * bitmap->pitch + ((c)>>3)] & (0x80 >> ((c)&7))) * 255 : \
...
@@ -707,4 +717,5 @@ AVFilter avfilter_vf_drawtext = {
...
@@ -707,4 +717,5 @@ AVFilter avfilter_vf_drawtext = {
.
outputs
=
(
AVFilterPad
[])
{{
.
name
=
"default"
,
.
outputs
=
(
AVFilterPad
[])
{{
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
},
.
type
=
AVMEDIA_TYPE_VIDEO
,
},
{
.
name
=
NULL
}},
{
.
name
=
NULL
}},
.
process_command
=
command
,
};
};
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