diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-10-10 13:52:40 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-11-22 12:34:27 +0300 |
commit | e6464a44eda9503ab87bf8d2d9a878dd953be267 (patch) | |
tree | e061ec560c64c711245471288c8cf62cc6ca5b49 /libavutil/hwcontext_cuda.h | |
parent | 5c02d2827bef81ba3f3582d67ec7693067985f9e (diff) |
avutil/hwcontext_cuda: use dynamically loaded CUDA
Diffstat (limited to 'libavutil/hwcontext_cuda.h')
-rw-r--r-- | libavutil/hwcontext_cuda.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/hwcontext_cuda.h b/libavutil/hwcontext_cuda.h index 23a77cee73..12dae8449e 100644 --- a/libavutil/hwcontext_cuda.h +++ b/libavutil/hwcontext_cuda.h @@ -20,7 +20,9 @@ #ifndef AVUTIL_HWCONTEXT_CUDA_H #define AVUTIL_HWCONTEXT_CUDA_H +#ifndef CUDA_VERSION #include <cuda.h> +#endif #include "pixfmt.h" @@ -32,11 +34,14 @@ * AVBufferRefs whose data pointer is a CUdeviceptr. */ +typedef struct AVCUDADeviceContextInternal AVCUDADeviceContextInternal; + /** * This struct is allocated as AVHWDeviceContext.hwctx */ typedef struct AVCUDADeviceContext { CUcontext cuda_ctx; + AVCUDADeviceContextInternal *internal; } AVCUDADeviceContext; /** |