]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hwcontext_cuda.h
avfilter/avfilter: Remove deprecated avfilter_link_set_closed()
[ffmpeg] / libavutil / hwcontext_cuda.h
index 12dae8449ec3261fb53dedc3ac1c60609af4cc4c..cefbe0ceab616afe5c125537e138019e5fabc676 100644 (file)
@@ -41,6 +41,7 @@ typedef struct AVCUDADeviceContextInternal AVCUDADeviceContextInternal;
  */
 typedef struct AVCUDADeviceContext {
     CUcontext cuda_ctx;
+    CUstream stream;
     AVCUDADeviceContextInternal *internal;
 } AVCUDADeviceContext;
 
@@ -48,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 */