summaryrefslogtreecommitdiff
path: root/libavcodec/decode.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-10-13 18:59:17 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2017-11-10 16:56:54 +0100
commit9f1cfd88af88a7d7d5c56a368a46639dfdfdef75 (patch)
tree3577d988bb3635da5ee09bb506591205577026c2 /libavcodec/decode.h
parent1fa3a9a31de11a2dee0efc75b89862e80ab3c90f (diff)
decode: add a method for attaching lavc-internal data to frames
Use the AVFrame.private_ref field. This new struct will be useful in the following commits. Merges Libav commit 359a8a3e2d1194b52b6c386f94fd0929567dfb67.
Diffstat (limited to 'libavcodec/decode.h')
-rw-r--r--libavcodec/decode.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h
index c9630228dc..519f875c98 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -21,9 +21,18 @@
#ifndef AVCODEC_DECODE_H
#define AVCODEC_DECODE_H
+#include "libavutil/buffer.h"
+
#include "avcodec.h"
/**
+ * This struct stores per-frame lavc-internal data and is attached to it via
+ * private_ref.
+ */
+typedef struct FrameDecodeData {
+} FrameDecodeData;
+
+/**
* Called by decoders to get the next packet for decoding.
*
* @param pkt An empty packet to be filled with data.
@@ -36,4 +45,6 @@ int ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt);
void ff_decode_bsfs_uninit(AVCodecContext *avctx);
+int ff_attach_decode_data(AVFrame *frame);
+
#endif /* AVCODEC_DECODE_H */