mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
rpi: add --hwdec=rpi-copy
This means it can be used with normal video filters. Might help out with #3604.
This commit is contained in:
@@ -141,6 +141,11 @@ static const struct vd_lavc_hwdec mp_vd_lavc_rpi = {
|
||||
.lavc_suffix = "_mmal",
|
||||
.image_format = IMGFMT_MMAL,
|
||||
};
|
||||
static const struct vd_lavc_hwdec mp_vd_lavc_rpi_copy = {
|
||||
.type = HWDEC_RPI_COPY,
|
||||
.lavc_suffix = "_mmal",
|
||||
.copying = true,
|
||||
};
|
||||
#endif
|
||||
|
||||
#if HAVE_ANDROID
|
||||
@@ -162,6 +167,7 @@ static const struct vd_lavc_hwdec mp_vd_lavc_cuda_copy = {
|
||||
static const struct vd_lavc_hwdec *const hwdec_list[] = {
|
||||
#if HAVE_RPI
|
||||
&mp_vd_lavc_rpi,
|
||||
&mp_vd_lavc_rpi_copy,
|
||||
#endif
|
||||
#if HAVE_VDPAU_HWACCEL
|
||||
&mp_vd_lavc_vdpau,
|
||||
|
||||
@@ -20,6 +20,7 @@ enum hwdec_type {
|
||||
HWDEC_D3D11VA,
|
||||
HWDEC_D3D11VA_COPY,
|
||||
HWDEC_RPI,
|
||||
HWDEC_RPI_COPY,
|
||||
HWDEC_MEDIACODEC,
|
||||
HWDEC_CUDA,
|
||||
HWDEC_CUDA_COPY,
|
||||
|
||||
Reference in New Issue
Block a user