Showing the changes to libavfilter/avfiltergraph.h (1 of 4 files). Show all
Unified · Split
| @@ -136,4 +136,21 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, · 135 unmodified lines | ||
| 136 | 136 | AVFilterInOut **inputs, AVFilterInOut **outputs, |
| 137 | 137 | void *log_ctx); |
| 138 | 138 | |
| 139 | +/** | |
| 140 | + * Send a command to one or more filter instances. | |
| 141 | + * | |
| 142 | + * @param graph the filter graph | |
| 143 | + * @param target the filter(s) to which the command should be sent | |
| 144 | + * "all" sends to all filters | |
| 145 | + * otherwise it can be a filter or filter instance name | |
| 146 | + * which will send the command to all matching filters. | |
| 147 | + * @param cmd the command to sent, for handling simplicity all commands must be alphanumeric only | |
| 148 | + * @param arg the argument for the command | |
| 149 | + * @param res a buffer with size res_size where the filter(s) can return a response. | |
| 150 | + * | |
| 151 | + * @returns >=0 on success otherwise an error code. | |
| 152 | + * AVERROR(ENOSYS) on unsupported commands | |
| 153 | + */ | |
| 154 | +int avfilter_graph_send_command(AVFilterGraph *graph, const char *target, const char *cmd, const char *arg, char *res, int res_len, int flags); | |
| 155 | + | |
| 139 | 156 | #endif /* AVFILTER_AVFILTERGRAPH_H */ |