summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.com>2023-08-28 14:47:10 +0300
committerPekka Paalanen <pq@iki.fi>2024-05-06 10:39:42 +0000
commit161cc8643c0a04b8ce11adf6d8d2bf63feb5a8dd (patch)
tree2aaaf16f4a1c7d1ca648233053aa485c7330bf2d /include
parent4193bd660f5e1f1ae61e2a9d2f95afa97d48719c (diff)
libweston: move weston_output_color_outcome to private
Turns out these structures do not need to be in the public header, so move them into a private header. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/libweston/libweston.h81
1 files changed, 1 insertions, 80 deletions
diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h
index 3570d21c..dc0f9ccb 100644
--- a/include/libweston/libweston.h
+++ b/include/libweston/libweston.h
@@ -88,6 +88,7 @@ struct weston_color_profile;
struct weston_color_transform;
struct pixel_format_info;
struct weston_output_capture_info;
+struct weston_output_color_outcome;
struct weston_tearing_control;
enum weston_keyboard_modifier {
@@ -261,63 +262,6 @@ struct weston_CIExy {
float y;
};
-enum weston_hdr_metadata_type1_groups {
- /** weston_hdr_metadata_type1::primary is set */
- WESTON_HDR_METADATA_TYPE1_GROUP_PRIMARIES = 0x01,
-
- /** weston_hdr_metadata_type1::white is set */
- WESTON_HDR_METADATA_TYPE1_GROUP_WHITE = 0x02,
-
- /** weston_hdr_metadata_type1::maxDML is set */
- WESTON_HDR_METADATA_TYPE1_GROUP_MAXDML = 0x04,
-
- /** weston_hdr_metadata_type1::minDML is set */
- WESTON_HDR_METADATA_TYPE1_GROUP_MINDML = 0x08,
-
- /** weston_hdr_metadata_type1::maxCLL is set */
- WESTON_HDR_METADATA_TYPE1_GROUP_MAXCLL = 0x10,
-
- /** weston_hdr_metadata_type1::maxFALL is set */
- WESTON_HDR_METADATA_TYPE1_GROUP_MAXFALL = 0x20,
-
- /** all valid bits */
- WESTON_HDR_METADATA_TYPE1_GROUP_ALL_MASK = 0x3f
-};
-
-/** HDR static metadata type 1
- *
- * The fields are defined by CTA-861-G except here they use float encoding.
- *
- * In Weston used only with HDR display modes.
- */
-struct weston_hdr_metadata_type1 {
- /** Which fields are valid
- *
- * A bitmask of values from enum weston_hdr_metadata_type1_groups.
- */
- uint32_t group_mask;
-
- /* EOTF is tracked externally with enum weston_eotf_mode */
-
- /** Chromaticities of the primaries, in any order */
- struct weston_CIExy primary[3];
-
- /** White point chromaticity */
- struct weston_CIExy white;
-
- /** Maximum display mastering luminance, 1 - 65535 cd/m² */
- float maxDML;
-
- /** Minimum display mastering luminance, 0.0001 - 6.5535 cd/m² */
- float minDML;
-
- /** Maximum content light level, 1 - 65535 cd/m² */
- float maxCLL;
-
- /** Maximum frame-average light level, 1 - 65535 cd/m² */
- float maxFALL;
-};
-
enum weston_color_characteristics_groups {
/** weston_color_characteristics::primary is set */
WESTON_COLOR_CHARACTERISTICS_GROUP_PRIMARIES = 0x01,
@@ -418,29 +362,6 @@ struct weston_head {
struct wl_list cm_output_resource_list;
};
-/** Output properties derived from its color characteristics and profile
- *
- * These are constructed by a color manager.
- *
- * A weston_output_color_outcome owns (a reference to) everything it contains.
- *
- * \ingroup output
- * \internal
- */
-struct weston_output_color_outcome {
- /** sRGB to output color space transformation */
- struct weston_color_transform *from_sRGB_to_output;
-
- /** sRGB to blending color space transformation */
- struct weston_color_transform *from_sRGB_to_blend;
-
- /** Blending to output color space transformation */
- struct weston_color_transform *from_blend_to_output;
-
- /** HDR Static Metadata Type 1 for WESTON_EOTF_MODE_ST2084 */
- struct weston_hdr_metadata_type1 hdr_meta;
-};
-
enum weston_output_power_state {
/** No rendering and dpms off */
WESTON_OUTPUT_POWER_FORCED_OFF = 0,