[FFmpeg-cvslog] lavfi: add avfilter_get_class().
Anton Khirnov
git at videolan.org
Thu Apr 11 11:09:47 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Mar 13 09:09:36 2013 +0100| [8114c101607843a86960bd3e0e9c40487dc2a961] | committer: Anton Khirnov
lavfi: add avfilter_get_class().
Useful for examining options, the same as the corresponding functions
for the other libs.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8114c101607843a86960bd3e0e9c40487dc2a961
---
libavfilter/avfilter.c | 5 +++++
libavfilter/avfilter.h | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 2fe8dfb..ccf4950 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -693,3 +693,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
return filter_frame(link, out);
}
+
+const AVClass *avfilter_get_class(void)
+{
+ return &avfilter_class;
+}
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 28d3684..f0b79f5 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -690,4 +690,11 @@ attribute_deprecated
int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src);
#endif
+/**
+ * @return AVClass for AVFilterContext.
+ *
+ * @see av_opt_find().
+ */
+const AVClass *avfilter_get_class(void);
+
#endif /* AVFILTER_AVFILTER_H */
More information about the ffmpeg-cvslog
mailing list