summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2018-04-11 14:22:20 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2018-04-11 14:55:28 +0200
commit86e9dba8fa5be26e10a096b675616b9ddb950031 (patch)
tree41a4d90553ffd00b7a47676e5ed8a69c474596f8 /libavcodec/nvenc.h
parent3e9d676192fc6ef719a904f8a2d114efec03d7c1 (diff)
downloadffmpeg-86e9dba8fa5be26e10a096b675616b9ddb950031.tar.gz
avcodec/nvenc: add support for B frames as ref
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 bff25dfc3c..2d6e781739 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -40,6 +40,12 @@ typedef void ID3D11Device;
#define RC_MODE_DEPRECATED 0x800000
#define RCD(rc_mode) ((rc_mode) | RC_MODE_DEPRECATED)
+// SDK 8.1 compile time feature checks
+#if NVENCAPI_VERSION >= 0x01000008
+#define NVENC_HAVE_BFRAME_REF_MODE
+#define NVENC_HAVE_QP_MAP_MODE
+#endif
+
typedef struct NvencSurface
{
NV_ENC_INPUT_PTR input_surface;
@@ -174,6 +180,7 @@ typedef struct NvencContext
int cqp;
int weighted_pred;
int coder;
+ int b_ref_mode;
} NvencContext;
int ff_nvenc_encode_init(AVCodecContext *avctx);