summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-07-06 00:41:27 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-07-10 01:29:17 +0200
commit21d56098265656b9b7e97a3ae385ca08bb93f729 (patch)
tree30d1f7bce55ff5b9ea0d843e360436cef2becaec /libavfilter/avfilter.h
parentaef9e94f73b9e5e21f7a790343e0b4ffb9e2acee (diff)
lavfi: add init_opaque callback
This will be used by filters which require an opaque field to be passed in input. Should be required only for filters which imply a programmatic use. This is possibly a temporary solution, to be removed when we'll have a clearer and better agreememnt of how/if to pass binary data for initializing a filter. See thread: Subject: [FFmpeg-devel][PATCH] lavfi: add init2 callback Date: Fri, 6 Jul 2012 01:22:17 +0200
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 52de7405e3..f039c1e228 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -447,6 +447,13 @@ typedef struct AVFilter {
* AVERROR(ENOSYS) on unsupported commands
*/
int (*process_command)(AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags);
+
+ /**
+ * Filter initialization function, alternative to the init()
+ * callback. Args contains the user-supplied parameters, opaque is
+ * used for providing binary data.
+ */
+ int (*init_opaque)(AVFilterContext *ctx, const char *args, void *opaque);
} AVFilter;
/** An instance of a filter */