summaryrefslogtreecommitdiff
path: root/libavfilter/avcodec.h
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2012-02-14 17:00:53 +0100
committerClément Bœsch <ubitux@gmail.com>2012-03-26 22:46:40 +0200
commita67d9cfa58c61c8da7f8fdf4285db6ec208a8766 (patch)
tree07d4145627d25c158bcf2362acabe934b7214499 /libavfilter/avcodec.h
parenta84851bef8b7c99708ac5c7d0cddd6f8a7ee4d9e (diff)
lavfi: add avfilter_fill_frame_from_{audio_,}buffer_ref().
Diffstat (limited to 'libavfilter/avcodec.h')
-rw-r--r--libavfilter/avcodec.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h
index 22dd1a263e..64773a670b 100644
--- a/libavfilter/avcodec.h
+++ b/libavfilter/avcodec.h
@@ -47,6 +47,17 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src);
AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms);
/**
+ * Fill an AVFrame with the information stored in samplesref.
+ *
+ * @param frame an already allocated AVFrame
+ * @param samplesref an audio buffer reference
+ * @return 0 in case of success, a negative AVERROR code in case of
+ * failure
+ */
+int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
+ const AVFilterBufferRef *samplesref);
+
+/**
* Fill an AVFrame with the information stored in picref.
*
* @param frame an already allocated AVFrame
@@ -58,6 +69,17 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
const AVFilterBufferRef *picref);
/**
+ * Fill an AVFrame with information stored in ref.
+ *
+ * @param frame an already allocated AVFrame
+ * @param ref a video or audio buffer reference
+ * @return 0 in case of success, a negative AVERROR code in case of
+ * failure
+ */
+int avfilter_fill_frame_from_buffer_ref(AVFrame *frame,
+ const AVFilterBufferRef *ref);
+
+/**
* Add frame data to buffer_src.
*
* @param buffer_src pointer to a buffer source context