Skip to content

Expose gamut information for displays #11127

Description

@bablokb

For a generic program I would like to take the gamut of the display into account. Neither BusDisplay (having color_depth) nor EPaperDisplay (having grayscale, spectra6, advanced_color_epaper and attributes like highlight-color(s)) expose these attributes though.

For external displays, one can guess the gamut using type() and having some internal logic to map the driver to a gamut. For internal displays this is not possible - I would need to maintain a mapping table of board.board_id to the respective gamut of the display.

So my suggestion is to expose an uniform attribute with the gamut information across all display types (something like a color type code). Color-depth itself is not sufficient since we have e.g. black-white-red and black-white-yellow displays with the same color-depth.

Use case: optimized pre-rendering of content on a server for the respective device - the device would send the gamut of the display when requesting the content and the server would render accordingly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions