Workaround HDR being captured as SDR issue

This commit is contained in:
Yukino Song
2024-09-03 17:31:56 +08:00
parent d332f1dadb
commit 49adbd098f
4 changed files with 117 additions and 17 deletions

View File

@@ -24,6 +24,8 @@ namespace video {
/* See video::config_t declaration for details */
BOOST_LOG(info) << "Client dynamicRange: " << config.dynamicRange << ", Display is HDR: " << hdr_display;
if (config.dynamicRange > 0 && hdr_display) {
// Rec. 2020 with ST 2084 perceptual quantizer
colorspace.colorspace = colorspace_e::bt2020;