Skip to content

Commit a1411d2

Browse files
ArianK16a33bca
authored andcommitted
hwc_display: Support Dolby Vision
Change-Id: Ia73b7674d396de434272aeedf28245e417a1e5bb
1 parent 1774ed9 commit a1411d2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

composer/hwc_display.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,22 +1774,18 @@ HWC2::Error HWCDisplay::GetHdrCapabilities(uint32_t *out_num_types, int32_t *out
17741774

17751775
uint32_t num_types = 0;
17761776
if (fixed_info.hdr_plus_supported) {
1777-
num_types = UINT32(Hdr::HDR10_PLUS) - 1;
1777+
num_types = UINT32(Hdr::HDR10_PLUS);
17781778
} else {
1779-
num_types = UINT32(Hdr::HLG) - 1;
1779+
num_types = UINT32(Hdr::HLG);
17801780
}
17811781

1782-
// We support HDR10, HLG and HDR10_PLUS.
1782+
// We support DOLBY_VISION, HDR10, HLG and HDR10_PLUS.
17831783
if (out_types == nullptr) {
17841784
*out_num_types = num_types;
17851785
} else {
17861786
uint32_t max_out_types = std::min(*out_num_types, num_types);
17871787
int32_t type = static_cast<int32_t>(Hdr::DOLBY_VISION);
17881788
for (int32_t i = 0; i < max_out_types; i++) {
1789-
while (type == static_cast<int32_t>(Hdr::DOLBY_VISION) /* Skip list */) {
1790-
// Skip the type
1791-
type++;
1792-
}
17931789
if (type > (num_types + 1)) {
17941790
break;
17951791
}

0 commit comments

Comments
 (0)