From ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef Mon Sep 17 00:00:00 2001 From: LongChair Date: Sun, 29 Apr 2018 17:46:23 +0200 Subject: drm/atomic: refactor planes names We are currently using primary / overlay planes drm objects, assuming that primary plane is osd and overlay plane is video. This commit is doing two things : - replace the primary / overlay planes members with osd and video planes member without the assumption - Add two more options to determine which one of the primary / overlay is associated to osd / video. - It will default osd to overlay and video to primary if unspecified --- video/out/drm_common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'video/out/drm_common.h') diff --git a/video/out/drm_common.h b/video/out/drm_common.h index 16064a47fb..4d1e2a9e3f 100644 --- a/video/out/drm_common.h +++ b/video/out/drm_common.h @@ -48,7 +48,8 @@ struct vt_switcher { struct drm_opts { char *drm_connector_spec; int drm_mode_id; - int drm_overlay_id; + int drm_osd_plane_id; + int drm_video_plane_id; int drm_format; struct m_geometry drm_osd_size; }; @@ -64,7 +65,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 overlay_id); + int mode_id, int osd_plane_id, int video_plane_id); void kms_destroy(struct kms *kms); double kms_get_display_fps(const struct kms *kms); -- cgit v1.2.3