summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
authorRicardo Monteiro <rmonteiro@nvidia.com>2021-08-03 17:02:26 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2021-08-08 01:56:32 +0200
commite56f6e59b6cbb2ebfa49bee8a21e6f4f09e7ade0 (patch)
tree2474f8b930cb6294a5e4c71c615adc30a7a8901c /libavcodec/nvenc.h
parent5ad436fcb91a538343e2798ce29630ad4aa71b3c (diff)
avcodec/nvenc: add chroma qp offset support
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r--libavcodec/nvenc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index 85d3a33601..7c284fbbd8 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -70,6 +70,11 @@ typedef void ID3D11Device;
#define NVENC_HAVE_H264_LVL6
#endif
+// SDK 11.1 compile time feature checks
+#if NVENCAPI_CHECK_VERSION(11, 1)
+#define NVENC_HAVE_QP_CHROMA_OFFSETS
+#endif
+
typedef struct NvencSurface
{
NV_ENC_INPUT_PTR input_surface;
@@ -213,6 +218,8 @@ typedef struct NvencContext
int init_qp_b;
int init_qp_i;
int cqp;
+ int qp_cb_offset;
+ int qp_cr_offset;
int weighted_pred;
int coder;
int b_ref_mode;