mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vd_lavc: Add hwdec wrapper for crystalhd
This hardware decodes to system memory so it only requires a wrapper.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user