Skip to content
  • Pekka Paalanen's avatar
    libweston: add weston_head_get_display_info() · 39b577e3
    Pekka Paalanen authored and Daniel Stone's avatar Daniel Stone committed
    
    
    This new public API is intended to deliver EDID etc. information to the
    frontend. The use case here is display colorimetry, to help the frontend
    craft output image descriptions (color profiles).
    
    The frontend will need to link to and use libdisplay-info to make use of
    this. This avoids having to replicate in libweston the high-level API
    that libdisplay-info already has. The libdisplay-info API is also likely
    to be extended, and it is not nice to play catch-up with it.
    
    As a di_info can only be destroyed by calling into libdisplay-info,
    libweston core can only ensure it has already been freed. There is not
    enough reason to make libweston core depend on libdisplay-info, only the
    DRM-backend is.
    
    It will be up to DRM-backend to ensure display_info is updated and
    device_changed is set only when necessary.
    
    Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
    39b577e3