diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-08-29 00:06:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-08-29 20:16:10 +0200 |
commit | 3d8176d2f5766eb6c10f9c99ffd9efc1f682459e (patch) | |
tree | fa18c69718307589fb841a1f47cc8e7345642ab1 /libavfilter/avfiltergraph.h | |
parent | f782ce3b4d832372000f33e816758ac7aa3af429 (diff) |
avfilter: Add avfilter_graph_que_command()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avfiltergraph.h')
-rw-r--r-- | libavfilter/avfiltergraph.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index 5724e5717d..3062b04fd8 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -153,4 +153,22 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, */ int avfilter_graph_send_command(AVFilterGraph *graph, const char *target, const char *cmd, const char *arg, char *res, int res_len, int flags); +/** + * Queue a command for one or more filter instances. + * + * @param graph the filter graph + * @param target the filter(s) to which the command should be sent + * "all" sends to all filters + * otherwise it can be a filter or filter instance name + * which will send the command to all matching filters. + * @param cmd the command to sent, for handling simplicity all commands must be alphanummeric only + * @param arg the argument for the command + * @param ts time at which the command should be sent to the filter + * + * @note As this executes commands after this function returns, no return code + * from the filter is provided, also AVFILTER_CMD_FLAG_ONE is not supported. + */ +int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const char *cmd, const char *arg, int flags, double ts); + + #endif /* AVFILTER_AVFILTERGRAPH_H */ |