summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_cuda_internal.h
diff options
context:
space:
mode:
authorOleg Dobkin <olegd@anyvision.co>2019-11-18 15:35:49 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2019-11-26 16:24:40 +0100
commit32ba563cfccd41cc9b8c69674495fc1d8d705283 (patch)
treeefa92050c3812a01f4ce59370aa2c0d01d2a7630 /libavutil/hwcontext_cuda_internal.h
parent59d264b0a1218094709d61e30c9056c90859567f (diff)
avutil/hwcontext_cuda: allow using primary CUDA device context
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavutil/hwcontext_cuda_internal.h')
-rw-r--r--libavutil/hwcontext_cuda_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/hwcontext_cuda_internal.h b/libavutil/hwcontext_cuda_internal.h
index e1bc6ff350..d5633c58d5 100644
--- a/libavutil/hwcontext_cuda_internal.h
+++ b/libavutil/hwcontext_cuda_internal.h
@@ -31,6 +31,8 @@
struct AVCUDADeviceContextInternal {
CudaFunctions *cuda_dl;
int is_allocated;
+ CUdevice cuda_device;
+ int flags;
};
#endif /* AVUTIL_HWCONTEXT_CUDA_INTERNAL_H */