diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2019-09-27 18:30:10 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2019-09-27 20:00:59 +0200 |
commit | 51a23343d9c736217d8845b7442fafc373726433 (patch) | |
tree | 2604b423e4c5b4acf0c503c32f67bf0b1c7fe9f9 /libavcodec/nvenc.h | |
parent | 567b5e33d9d77919ee920c091f4273c5b38fc821 (diff) |
avcodec/nvenc: pass CUstream to nvenc when available
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index 46ad7972bc..cdba998ffd 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -57,6 +57,7 @@ typedef void ID3D11Device; // SDK 9.1 compile time feature checks #if NVENCAPI_CHECK_VERSION(9, 1) #define NVENC_HAVE_MULTIPLE_REF_FRAMES +#define NVENC_HAVE_CUSTREAM_PTR #endif typedef struct NvencSurface @@ -132,6 +133,7 @@ typedef struct NvencContext NV_ENC_CONFIG encode_config; CUcontext cu_context; CUcontext cu_context_internal; + CUstream cu_stream; ID3D11Device *d3d11_device; int nb_surfaces; |