libdisplay-info/include/info.h
Pekka Paalanen f2c1b01bd2 info: add di_info_get_hdr_static_metadata()
The low-level struct di_cta_hdr_static_metadata_block is essentially
duplicated in struct di_hdr_static_metadata to make the high-level API
independent of low-level API headers. It's also simpler in form, while
new fields can still be added in the end while maintaining ABI backward
compatibility.

If new sources for HDR static metadata appear, they can be parsed into
this same structure in the future when compatible.

Wayland compositors will be interested in this.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2024-06-12 16:26:33 +03:00

27 lines
496 B
C

#ifndef INFO_H
#define INFO_H
/**
* Private header for the high-level API.
*/
#include <libdisplay-info/info.h>
/**
* All information here is derived from low-level information contained in
* struct di_info. These are exposed by the high-level API only.
*/
struct di_derived_info {
struct di_hdr_static_metadata hdr_static_metadata;
struct di_color_primaries color_primaries;
};
struct di_info {
struct di_edid *edid;
char *failure_msg;
struct di_derived_info derived;
};
#endif