From 0a81fe1cf9e62c26ebda1c209b3b69467991b252 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 9 Oct 2016 09:18:14 -0700 Subject: vd_lavc: Add hwdec wrapper for crystalhd This hardware decodes to system memory so it only requires a wrapper. --- video/decode/vd_lavc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index ed1ba6b6dc..86cf815320 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -164,6 +164,12 @@ static const struct vd_lavc_hwdec mp_vd_lavc_cuda_copy = { }; #endif +static const struct vd_lavc_hwdec mp_vd_lavc_crystalhd = { + .type = HWDEC_CRYSTALHD, + .lavc_suffix = "_crystalhd", + .copying = true, +}; + static const struct vd_lavc_hwdec *const hwdec_list[] = { #if HAVE_RPI &mp_vd_lavc_rpi, @@ -193,6 +199,7 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = { &mp_vd_lavc_cuda, &mp_vd_lavc_cuda_copy, #endif + &mp_vd_lavc_crystalhd, NULL }; -- cgit v1.2.3