aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-16 15:54:54 +0100
committerAnton Khirnov <anton@khirnov.net>2023-02-12 10:16:41 +0100
commit80cf509e7315bd77aad4a0cce8dd15a85e6e6ed4 (patch)
tree4c5f8c10a0d283af7b698b4666fa253d704ed252 /libavfilter/internal.h
parent926059dbf36c00807720a9160a43b4fa13f0d6ae (diff)
downloadffmpeg-80cf509e7315bd77aad4a0cce8dd15a85e6e6ed4.tar.gz
lavfi/avfilter: export process_options()
Also, replace an AVFilterContext argument with a logging context+private class, as those are the only things needed in this function. Will be useful in future commits.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index aaf2c6c584..2ec41917f7 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -405,4 +405,17 @@ int ff_filter_process_command(AVFilterContext *ctx, const char *cmd,
int ff_filter_init_hw_frames(AVFilterContext *avctx, AVFilterLink *link,
int default_pool_size);
+/**
+ * Parse filter options into a dictionary.
+ *
+ * @param logctx context for logging
+ * @param priv_class a filter's private class for shorthand options or NULL
+ * @param options dictionary to store parsed options in
+ * @param args options string to parse
+ *
+ * @return a non-negative number on success, a negative error code on failure
+ */
+int ff_filter_opt_parse(void *logctx, const AVClass *priv_class,
+ AVDictionary **options, const char *args);
+
#endif /* AVFILTER_INTERNAL_H */