aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-03-04 23:57:47 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-22 23:02:29 +0000
commitb25d8ef0a7a880443fb713603d7f4259e30b84dd (patch)
tree0f75b610b2495ad89aaff0b38984cc9ef70f2160 /libavutil/hwcontext.c
parenta050f56c0903c718d8ef0b14dc09195785fdf564 (diff)
downloadffmpeg-b25d8ef0a7a880443fb713603d7f4259e30b84dd.tar.gz
lavu: OpenCL hwcontext implementation
Diffstat (limited to 'libavutil/hwcontext.c')
-rw-r--r--libavutil/hwcontext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c
index 7f8e22736c..b26e68fe77 100644
--- a/libavutil/hwcontext.c
+++ b/libavutil/hwcontext.c
@@ -41,6 +41,9 @@ static const HWContextType * const hw_table[] = {
#if CONFIG_DXVA2
&ff_hwcontext_type_dxva2,
#endif
+#if CONFIG_OPENCL
+ &ff_hwcontext_type_opencl,
+#endif
#if CONFIG_QSV
&ff_hwcontext_type_qsv,
#endif
@@ -61,6 +64,7 @@ static const char *const hw_type_names[] = {
[AV_HWDEVICE_TYPE_DRM] = "drm",
[AV_HWDEVICE_TYPE_DXVA2] = "dxva2",
[AV_HWDEVICE_TYPE_D3D11VA] = "d3d11va",
+ [AV_HWDEVICE_TYPE_OPENCL] = "opencl",
[AV_HWDEVICE_TYPE_QSV] = "qsv",
[AV_HWDEVICE_TYPE_VAAPI] = "vaapi",
[AV_HWDEVICE_TYPE_VDPAU] = "vdpau",