aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-18 13:57:11 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-18 13:57:11 +0000
commitff0652e5036fd30cf518891d2158acbafea191fc (patch)
tree24a25a1e2590b68d096ebb2312aa1d8291be87e8 /cmdutils.h
parent16b2691346fa9c3d85af3162deef3db50b1eecc5 (diff)
downloadffmpeg-ff0652e5036fd30cf518891d2158acbafea191fc.tar.gz
Implement a common get_filtered_video_frame(), shared between ffplay.c
and ffmpeg.c. Originally committed as revision 25520 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index 00f914cc9b..b431b2ef99 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -270,6 +270,15 @@ typedef struct {
extern AVFilter ffsink;
+/**
+ * Extract a frame from sink.
+ *
+ * @return a negative error in case of failure, 1 if one frame has
+ * been extracted successfully.
+ */
+int get_filtered_video_frame(AVFilterContext *sink, AVFrame *frame,
+ AVFilterBufferRef **picref, AVRational *pts_tb);
+
#endif /* CONFIG_AVFILTER */
#endif /* FFMPEG_CMDUTILS_H */