diff options
author | LongChair <longchair@hotmail.com> | 2018-04-29 17:46:23 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-05-01 20:48:02 +0300 |
commit | ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef (patch) | |
tree | a7464c8db4f154423ee148c2c6e08f047b41a762 /video/out/drm_common.h | |
parent | 49bc07faea5f3c621eed437fadf68653b4b2498b (diff) | |
download | mpv-ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef.tar.bz2 mpv-ed94f8dc00dd75bf5d88bdf73b9d69a579c0f8ef.tar.xz |
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
Diffstat (limited to 'video/out/drm_common.h')
-rw-r--r-- | video/out/drm_common.h | 5 |
1 files changed, 3 insertions, 2 deletions
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); |