[PATCH 11/13] Extend documentation for parse_filter().

Stefano Sabatini stefano.sabatini-lala
Sat Nov 6 02:09:28 CET 2010


---
 libavfilter/graphparser.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 89daa96..a2b765d 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -139,7 +139,18 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
 }
 
 /**
- * Parse "filter=params"
+ * Parse a string of the form FILTER_NAME[=PARAMS], and create a
+ * corresponding filter instance which is added to graph.
+ *
+ * @param filt_ctx put here a pointer to the created filter context in
+ * case of success, NULL otherwise.
+ * @param buf pointer to the buffer to parse, *buf will be updated to
+ * point to the char next after the parsed string
+ * @param index an index which is assigned to the created filter
+ * instance, and which is supposed to be unique for each filter
+ * instance added to the filtergraph
+ * @return 0 in case of success, a negative AVERROR code otherwise
+ * @see create_filter()
  */
 static int parse_filter(AVFilterContext **filt_ctx, const char **buf, AVFilterGraph *graph,
                         int index, AVClass *log_ctx)
-- 
1.7.1


--8P1HSweYDcXXzwPJ--



More information about the ffmpeg-devel mailing list