diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2018-04-11 14:22:20 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2018-04-11 14:55:28 +0200 |
commit | 86e9dba8fa5be26e10a096b675616b9ddb950031 (patch) | |
tree | 41a4d90553ffd00b7a47676e5ed8a69c474596f8 /libavcodec/nvenc.h | |
parent | 3e9d676192fc6ef719a904f8a2d114efec03d7c1 (diff) | |
download | ffmpeg-86e9dba8fa5be26e10a096b675616b9ddb950031.tar.gz |
avcodec/nvenc: add support for B frames as ref
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 7 |
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); |