From cfcee4cfe70536faeb9f2aaa87257d067e902b70 Mon Sep 17 00:00:00 2001 From: Lionel CHAZALLON Date: Mon, 23 Oct 2017 08:51:49 -0700 Subject: Add DRM_PRIME Format Handling and Display for RockChip MPP decoders This commit allows to use the AV_PIX_FMT_DRM_PRIME newly introduced format in ffmpeg that allows decoders to provide an AVDRMFrameDescriptor struct. That struct holds dmabuf fds and information allowing zerocopy rendering using KMS / DRM Atomic. This has been tested on RockChip ROCK64 device. --- video/out/gpu/hwdec.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video/out/gpu') diff --git a/video/out/gpu/hwdec.c b/video/out/gpu/hwdec.c index 5fbc1aa4a9..9eefe3e287 100644 --- a/video/out/gpu/hwdec.c +++ b/video/out/gpu/hwdec.c @@ -36,6 +36,9 @@ extern const struct ra_hwdec_driver ra_hwdec_dxva2gldx; extern const struct ra_hwdec_driver ra_hwdec_dxva2; extern const struct ra_hwdec_driver ra_hwdec_cuda; extern const struct ra_hwdec_driver ra_hwdec_rpi_overlay; +#if HAVE_DRMPRIME && HAVE_DRM +extern const struct ra_hwdec_driver ra_hwdec_drmprime_drm; +#endif static const struct ra_hwdec_driver *const mpgl_hwdec_drivers[] = { #if HAVE_VAAPI_EGL @@ -66,6 +69,10 @@ static const struct ra_hwdec_driver *const mpgl_hwdec_drivers[] = { #if HAVE_RPI &ra_hwdec_rpi_overlay, #endif +#if HAVE_DRMPRIME && HAVE_DRM + &ra_hwdec_drmprime_drm, +#endif + NULL }; -- cgit v1.2.3