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/drm_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out/drm_common.h') 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 #include #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); -- cgit v1.2.3