From 7e6456f43ad87df538efa979007c4125a8a33cf0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 30 Sep 2016 11:35:25 +0200 Subject: rpi: add --hwdec=rpi-copy This means it can be used with normal video filters. Might help out with #3604. --- video/decode/vd_lavc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video/decode') 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, -- cgit v1.2.3