summaryrefslogtreecommitdiff
path: root/libavcodec/nvdec.h
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2020-10-17 18:16:36 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2020-11-11 18:36:09 +0100
commit72982f8cb5dad6252a14226d28128313eed4a5ff (patch)
tree61d3e7a99416aa071b0ad19d8fec2ade52f5e286 /libavcodec/nvdec.h
parent5868f1c66bfc4854b0a176047e8553398c3dadb1 (diff)
avcodec/nvdec: add support for separate reference frame
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvdec.h')
-rw-r--r--libavcodec/nvdec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/nvdec.h b/libavcodec/nvdec.h
index 09ae8c37e6..22b66d0bc8 100644
--- a/libavcodec/nvdec.h
+++ b/libavcodec/nvdec.h
@@ -43,7 +43,9 @@
typedef struct NVDECFrame {
unsigned int idx;
+ unsigned int ref_idx;
AVBufferRef *idx_ref;
+ AVBufferRef *ref_idx_ref;
AVBufferRef *decoder_ref;
} NVDECFrame;
@@ -68,6 +70,7 @@ typedef struct NVDECContext {
int ff_nvdec_decode_init(AVCodecContext *avctx);
int ff_nvdec_decode_uninit(AVCodecContext *avctx);
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame);
+int ff_nvdec_start_frame_sep_ref(AVCodecContext *avctx, AVFrame *frame, int has_sep_ref);
int ff_nvdec_end_frame(AVCodecContext *avctx);
int ff_nvdec_simple_end_frame(AVCodecContext *avctx);
int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,