#define NVENC_HAVE_QP_MAP_MODE
#endif
+// SDK 9.0 compile time feature checks
+#if NVENCAPI_CHECK_VERSION(9, 0)
+#define NVENC_HAVE_HEVC_BFRAME_REF_MODE
+#endif
+
+// SDK 9.1 compile time feature checks
+#if NVENCAPI_CHECK_VERSION(9, 1)
+#define NVENC_HAVE_MULTIPLE_REF_FRAMES
+#define NVENC_HAVE_CUSTREAM_PTR
+#define NVENC_HAVE_GETLASTERRORSTRING
+#endif
+
typedef struct NvencSurface
{
NV_ENC_INPUT_PTR input_surface;
NV_ENC_CONFIG encode_config;
CUcontext cu_context;
CUcontext cu_context_internal;
+ CUstream cu_stream;
ID3D11Device *d3d11_device;
int nb_surfaces;
int coder;
int b_ref_mode;
int a53_cc;
+ int dpb_size;
} NvencContext;
int ff_nvenc_encode_init(AVCodecContext *avctx);