summaryrefslogtreecommitdiffstats
path: root/libavcodec/nvdec.h
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-10-28 19:53:38 +0200
committerJames Almer <jamrial@gmail.com>2017-11-11 20:33:45 -0300
commit7546964f96168cd6ac819ef4c3212ee586619f1a (patch)
tree69c2613e791f6ec03087b01fd43cfae3741465fd /libavcodec/nvdec.h
parent48e4eda11d537c6ed52d1000aaa6ce5cbb641e25 (diff)
downloadffmpeg-streaming-7546964f96168cd6ac819ef4c3212ee586619f1a.zip
ffmpeg-streaming-7546964f96168cd6ac819ef4c3212ee586619f1a.tar.gz
nvdec: add frames_params support
Diffstat (limited to 'libavcodec/nvdec.h')
-rw-r--r--libavcodec/nvdec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/nvdec.h b/libavcodec/nvdec.h
index 18a64cd..14d29ee 100644
--- a/libavcodec/nvdec.h
+++ b/libavcodec/nvdec.h
@@ -54,9 +54,12 @@ typedef struct NVDECContext {
unsigned int slice_offsets_allocated;
} NVDECContext;
-int ff_nvdec_decode_init(AVCodecContext *avctx, unsigned int dpb_size);
+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_end_frame(AVCodecContext *avctx);
+int ff_nvdec_frame_params(AVCodecContext *avctx,
+ AVBufferRef *hw_frames_ctx,
+ int dpb_size);
#endif /* AVCODEC_NVDEC_H */
OpenPOWER on IntegriCloud