summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-30 11:35:25 +0200
committerwm4 <wm4@nowhere>2016-09-30 13:05:30 +0200
commit7e6456f43ad87df538efa979007c4125a8a33cf0 (patch)
tree6ba010b070d4111a90b6b8cefea5b8f417924180 /video
parentb6920372c23fe79a61855c65511c4807b96a7f2e (diff)
downloadmpv-7e6456f43ad87df538efa979007c4125a8a33cf0.tar.bz2
mpv-7e6456f43ad87df538efa979007c4125a8a33cf0.tar.xz
rpi: add --hwdec=rpi-copy
This means it can be used with normal video filters. Might help out with #3604.
Diffstat (limited to 'video')
-rw-r--r--video/decode/vd_lavc.c6
-rw-r--r--video/hwdec.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 6328f5fe49..147b1d664d 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -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,
diff --git a/video/hwdec.h b/video/hwdec.h
index b69e3fc309..fd99043c10 100644
--- a/video/hwdec.h
+++ b/video/hwdec.h
@@ -20,6 +20,7 @@ enum hwdec_type {
HWDEC_D3D11VA,
HWDEC_D3D11VA_COPY,
HWDEC_RPI,
+ HWDEC_RPI_COPY,
HWDEC_MEDIACODEC,
HWDEC_CUDA,
HWDEC_CUDA_COPY,