diff options
author | Philip Langdale <philipl@overt.org> | 2016-10-09 09:18:14 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-15 17:44:23 +0200 |
commit | 0a81fe1cf9e62c26ebda1c209b3b69467991b252 (patch) | |
tree | 01eb15fdfe5500b0c384f62fffb5966b2e8c1e2d /video | |
parent | 8956229ee46c187a5a1eb63c834219d0e9b84b83 (diff) | |
download | mpv-0a81fe1cf9e62c26ebda1c209b3b69467991b252.tar.bz2 mpv-0a81fe1cf9e62c26ebda1c209b3b69467991b252.tar.xz |
vd_lavc: Add hwdec wrapper for crystalhd
This hardware decodes to system memory so it only requires a wrapper.
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vd_lavc.c | 7 | ||||
-rw-r--r-- | video/hwdec.h | 1 |
2 files changed, 8 insertions, 0 deletions
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 }; diff --git a/video/hwdec.h b/video/hwdec.h index fd99043c10..34b65fe15c 100644 --- a/video/hwdec.h +++ b/video/hwdec.h @@ -24,6 +24,7 @@ enum hwdec_type { HWDEC_MEDIACODEC, HWDEC_CUDA, HWDEC_CUDA_COPY, + HWDEC_CRYSTALHD, }; #define HWDEC_IS_AUTO(x) ((x) == HWDEC_AUTO || (x) == HWDEC_AUTO_COPY) |