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
a918b833
Commit
a918b833
authored
Oct 08, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avfilter: add ff_filter_process_command()
parent
f3746d31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
avfilter.c
libavfilter/avfilter.c
+13
-0
internal.h
libavfilter/internal.h
+7
-0
No files found.
libavfilter/avfilter.c
View file @
a918b833
...
...
@@ -884,6 +884,19 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
return
count
;
}
int
ff_filter_process_command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
arg
,
char
*
res
,
int
res_len
,
int
flags
)
{
const
AVOption
*
o
;
if
(
!
ctx
->
filter
->
priv_class
)
return
0
;
o
=
av_opt_find2
(
ctx
->
priv
,
cmd
,
NULL
,
AV_OPT_FLAG_RUNTIME_PARAM
|
AV_OPT_FLAG_FILTERING_PARAM
,
AV_OPT_SEARCH_CHILDREN
,
NULL
);
if
(
!
o
)
return
AVERROR
(
ENOSYS
);
return
av_opt_set
(
ctx
->
priv
,
cmd
,
arg
,
0
);
}
int
avfilter_init_dict
(
AVFilterContext
*
ctx
,
AVDictionary
**
options
)
{
int
ret
=
0
;
...
...
libavfilter/internal.h
View file @
a918b833
...
...
@@ -411,6 +411,13 @@ static inline int ff_norm_qscale(int qscale, int type)
*/
int
ff_filter_get_nb_threads
(
AVFilterContext
*
ctx
);
/**
* Generic processing of user supplied commands that are set
* in the same way as the filter options.
*/
int
ff_filter_process_command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
arg
,
char
*
res
,
int
res_len
,
int
flags
);
/**
* Perform any additional setup required for hardware frames.
*
...
...
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