[FFmpeg-cvslog] lavfi/avcodec: deprecate remainders of the avcodec glue code
Hendrik Leppkes
git at videolan.org
Sat Mar 16 17:20:01 CET 2013
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Wed Mar 13 21:01:27 2013 +0100| [a77f453703680fc197489730c2655c8273f23164] | committer: Michael Niedermayer
lavfi/avcodec: deprecate remainders of the avcodec glue code
Since lavfi works natively with AVFrame now, these functions are no longer
necessary and can be removed in a future bump.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a77f453703680fc197489730c2655c8273f23164
---
libavfilter/avcodec.c | 2 ++
libavfilter/avcodec.h | 8 ++++++++
2 files changed, 10 insertions(+)
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index 27963f5..605e5d2 100644
--- a/libavfilter/avcodec.c
+++ b/libavfilter/avcodec.c
@@ -28,6 +28,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
+#if FF_API_AVFILTERBUFFER
AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame,
int perms)
{
@@ -133,6 +134,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
return 0;
}
+#endif
#if FF_API_FILL_FRAME
int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h
index 4c66035..ae55df7 100644
--- a/libavfilter/avcodec.h
+++ b/libavfilter/avcodec.h
@@ -30,12 +30,15 @@
#include "avfilter.h"
+#if FF_API_AVFILTERBUFFER
/**
* Create and return a picref reference from the data and properties
* contained in frame.
*
* @param perms permissions to assign to the new buffer reference
+ * @deprecated avfilter APIs work natively with AVFrame instead.
*/
+attribute_deprecated
AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms);
@@ -44,7 +47,9 @@ AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame
* contained in frame.
*
* @param perms permissions to assign to the new buffer reference
+ * @deprecated avfilter APIs work natively with AVFrame instead.
*/
+attribute_deprecated
AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame,
int perms);
@@ -53,10 +58,13 @@ AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame
* contained in frame.
*
* @param perms permissions to assign to the new buffer reference
+ * @deprecated avfilter APIs work natively with AVFrame instead.
*/
+attribute_deprecated
AVFilterBufferRef *avfilter_get_buffer_ref_from_frame(enum AVMediaType type,
const AVFrame *frame,
int perms);
+#endif
#if FF_API_FILL_FRAME
/**
More information about the ffmpeg-cvslog
mailing list