diff options
author | Oleg Dobkin <olegd@anyvision.co> | 2019-11-18 15:35:49 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2019-11-26 16:24:40 +0100 |
commit | 32ba563cfccd41cc9b8c69674495fc1d8d705283 (patch) | |
tree | efa92050c3812a01f4ce59370aa2c0d01d2a7630 /libavutil/hwcontext_cuda.h | |
parent | 59d264b0a1218094709d61e30c9056c90859567f (diff) | |
download | ffmpeg-32ba563cfccd41cc9b8c69674495fc1d8d705283.tar.gz |
avutil/hwcontext_cuda: allow using primary CUDA device context
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavutil/hwcontext_cuda.h')
-rw-r--r-- | libavutil/hwcontext_cuda.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavutil/hwcontext_cuda.h b/libavutil/hwcontext_cuda.h index 81a0552cab..cefbe0ceab 100644 --- a/libavutil/hwcontext_cuda.h +++ b/libavutil/hwcontext_cuda.h @@ -49,4 +49,21 @@ typedef struct AVCUDADeviceContext { * AVHWFramesContext.hwctx is currently not used */ +/** + * @defgroup hwcontext_cuda Device context creation flags + * + * Flags for av_hwdevice_ctx_create. + * + * @{ + */ + +/** + * Use primary device context instead of creating a new one. + */ +#define AV_CUDA_USE_PRIMARY_CONTEXT (1 << 0) + +/** + * @} + */ + #endif /* AVUTIL_HWCONTEXT_CUDA_H */ |