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/drm_common.h | |
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/drm_common.h')
-rw-r--r-- | video/out/drm_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/drm_common.h b/video/out/drm_common.h index 6796472cfc..0e6e76d03e 100644 --- a/video/out/drm_common.h +++ b/video/out/drm_common.h @@ -22,6 +22,7 @@ #include <xf86drm.h> #include <xf86drmMode.h> #include "options/m_option.h" +#include "drm_atomic.h" struct kms { struct mp_log *log; @@ -31,6 +32,7 @@ struct kms { drmModeModeInfo mode; uint32_t crtc_id; int card_no; + struct drm_atomic_context *atomic_context; }; struct vt_switcher { @@ -51,7 +53,7 @@ void vt_switcher_release(struct vt_switcher *s, void (*handler)(void*), void *user_data); struct kms *kms_create(struct mp_log *log, const char *connector_spec, - int mode_id); + int mode_id, int overlay_id); void kms_destroy(struct kms *kms); double kms_get_display_fps(const struct kms *kms); |