History

avfilter: Add command passing support

Michael Niedermayer committed 15 years ago

Commit 1e5014c1 parent 4becc864 files · +83 −1Browse files

Showing the changes to libavfilter/avfiltergraph.h (1 of 4 files). Show all

Unified · Split

libavfilter/avfiltergraph.h+17−0
@@ -136,4 +136,21 @@ int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, · 135 unmodified lines
136136 AVFilterInOut **inputs, AVFilterInOut **outputs,
137137 void *log_ctx);
138138
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+
139156 #endif /* AVFILTER_AVFILTERGRAPH_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t