diff options
author | Long Ling <longling@google.com> | 2021-07-27 14:02:09 -0700 |
---|---|---|
committer | Long Ling <longling@google.com> | 2021-08-27 17:30:17 -0700 |
commit | 728079d4dd181dfa5c6a2fdfa8b97ac8411034b2 (patch) | |
tree | 381f78a09d115208217b23478c8d7d49fa24a4b3 /include | |
parent | c0969bdb39f0ec31194ce8057faaad1a5c468026 (diff) |
libhwc2.1 update displaycolor to pass display info
Bug: 194444865
Change-Id: I04731c4199953fd655b0de648297c3821b6314e3
Diffstat (limited to 'include')
-rw-r--r-- | include/displaycolor/displaycolor.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/displaycolor/displaycolor.h b/include/displaycolor/displaycolor.h index 721b679..90ae0a6 100644 --- a/include/displaycolor/displaycolor.h +++ b/include/displaycolor/displaycolor.h @@ -33,6 +33,7 @@ using android::hardware::graphics::common::V1_2::Dataspace; /** * hwc/displaycolor interface history * + * 2.0.0.2021-08-27 pass brightness table for hdr10+ * 1.0.0.2021-08-25 Initial release */ @@ -53,7 +54,7 @@ constexpr struct DisplayColorIntfVer { } } kInterfaceVersion { - 1, + 2, 0, 0, }; @@ -80,6 +81,25 @@ enum BrightnessMode { BM_MAX = 2, }; +struct DisplayBrightnessTable { + float nbm_nits_min; + float nbm_nits_max; + float hbm_nits_min; + float hbm_nits_max; + + uint32_t nbm_dbv_min; + uint32_t nbm_dbv_max; + uint32_t hbm_dbv_min; + uint32_t hbm_dbv_max; +}; + +struct DisplayInfo { + std::string panel_name; + std::string panel_serial; + + DisplayBrightnessTable brightness_table; +}; + struct LayerColorData { bool operator==(const LayerColorData &rhs) const { return dataspace == rhs.dataspace && matrix == rhs.matrix && |