diff options
author | Lionel CHAZALLON <LongChair@hotmail.com> | 2017-10-23 08:51:49 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-23 21:07:24 +0200 |
commit | cfcee4cfe70536faeb9f2aaa87257d067e902b70 (patch) | |
tree | b6dfc61144a7394974657b5dfdfc34d9fcf1576a /video/out/gpu | |
parent | 762b8cc30007480f06d338ac77d6e91cc04cd320 (diff) | |
download | mpv-cfcee4cfe70536faeb9f2aaa87257d067e902b70.tar.bz2 mpv-cfcee4cfe70536faeb9f2aaa87257d067e902b70.tar.xz |
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.
Diffstat (limited to 'video/out/gpu')
-rw-r--r-- | video/out/gpu/hwdec.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 }; |