mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +01:00
f2c1b01bd2
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>
27 lines
496 B
C
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
|