From a88449ffb2f249e31ecf98f84e7f8c338308e7e4 Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 28 Aug 2019 21:58:10 +0100 Subject: lavu: add Vulkan hwcontext code This commit adds the necessary code to initialize and use a Vulkan device within the hwcontext libavutil framework. Currently direct mapping to VAAPI and DRM frames is functional, and transfers to CUDA and native frames are supported. Lets hope the future Vulkan video decode extension fits well within this framework. --- libavutil/hwcontext.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavutil/hwcontext.h') diff --git a/libavutil/hwcontext.h b/libavutil/hwcontext.h index f5a4b62387..f874af9f8f 100644 --- a/libavutil/hwcontext.h +++ b/libavutil/hwcontext.h @@ -36,6 +36,7 @@ enum AVHWDeviceType { AV_HWDEVICE_TYPE_DRM, AV_HWDEVICE_TYPE_OPENCL, AV_HWDEVICE_TYPE_MEDIACODEC, + AV_HWDEVICE_TYPE_VULKAN, }; typedef struct AVHWDeviceInternal AVHWDeviceInternal; -- cgit v1.2.3