summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-09-02 18:38:58 +0800
committerTimo Rothenpieler <timo@rothenpieler.org>2021-09-06 14:25:26 +0200
commit75001ae8440d819d23443709091fca4c39e395a1 (patch)
tree4c21f37c98190d5c31e25a5f0b4a7d6717f6101f /libavcodec/nvenc.h
parent3756525a59cc63db431fc301ea3748958964af16 (diff)
avcodec/nvenc: add constrainedFrame encoding 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 1e756a6f72..08531e1be3 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -68,6 +68,7 @@ typedef void ID3D11Device;
#define NVENC_HAVE_MULTIPASS
#define NVENC_HAVE_LDKFS
#define NVENC_HAVE_H264_LVL6
+#define NVENC_HAVE_HEVC_CONSTRAINED_ENCODING
#endif
// SDK 11.1 compile time feature checks
@@ -233,6 +234,7 @@ typedef struct NvencContext
int extra_sei;
int intra_refresh;
int single_slice_intra_refresh;
+ int constrained_encoding;
} NvencContext;
int ff_nvenc_encode_init(AVCodecContext *avctx);