summaryrefslogtreecommitdiff
path: root/libavcodec/decode.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-24 21:28:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-27 14:14:56 +0200
commit66b691f99f77ebb59d5c192aab4eefec4d200be8 (patch)
treeed008b92aa702300b16757f05d90dec0b09aab79 /libavcodec/decode.h
parente2c24e6a299b7e0e5387bdc50c11d16857b950a0 (diff)
avcodec/internal: Move ff_get_buffer() to decode.h
Only used by decoders (encoders have ff_encode_alloc_frame()). Also clean up the other headers a bit while removing now redundant internal.h inclusions. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/decode.h')
-rw-r--r--libavcodec/decode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h
index d9014d3e0f..25db4a9e4d 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -112,6 +112,13 @@ int ff_decode_preinit(AVCodecContext *avctx);
*/
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);
+/**
+ * Get a buffer for a frame. This is a wrapper around
+ * AVCodecContext.get_buffer() and should be used instead calling get_buffer()
+ * directly.
+ */
+int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags);
+
#define FF_REGET_BUFFER_FLAG_READONLY 1 ///< the returned buffer does not need to be writable
/**
* Identical in function to ff_get_buffer(), except it reuses the existing buffer