summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-09-02 18:38:57 +0800
committerTimo Rothenpieler <timo@rothenpieler.org>2021-09-06 14:13:00 +0200
commit3756525a59cc63db431fc301ea3748958964af16 (patch)
treea06c6c1b165b44d35fb189f0d821fd1d65cf74db /libavcodec/nvenc.h
parente6bd5171ac47c6858889b483ddd77f8c49e1fba0 (diff)
avcodec/nvenc: add single slice intra refresh support
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r--libavcodec/nvenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index e7cc0e6ba0..1e756a6f72 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -73,6 +73,7 @@ typedef void ID3D11Device;
// SDK 11.1 compile time feature checks
#if NVENCAPI_CHECK_VERSION(11, 1)
#define NVENC_HAVE_QP_CHROMA_OFFSETS
+#define NVENC_HAVE_SINGLE_SLICE_INTRA_REFRESH
#endif
typedef struct NvencSurface
@@ -231,6 +232,7 @@ typedef struct NvencContext
int ldkfs;
int extra_sei;
int intra_refresh;
+ int single_slice_intra_refresh;
} NvencContext;
int ff_nvenc_encode_init(AVCodecContext *avctx);