vd_lavc: Add hwdec wrapper for crystalhd

This hardware decodes to system memory so it only requires a wrapper.
This commit is contained in:
Philip Langdale
2016-10-09 09:18:14 -07:00
committed by wm4
parent 8956229ee4
commit 0a81fe1cf9
4 changed files with 15 additions and 0 deletions

View File

@@ -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
};

View File

@@ -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)