wayland/xx color management: fall back to the min. luminance of the transfer function instead of zero

Assuming zero as the minimum luminance makes black point compensation not work correctly
wilder/Plasma/6.2
Xaver Hugl 2 years ago
parent ed16a957d3
commit 1f799dfbdc
  1. 2
      src/wayland/xx_colormanagement_v4.cpp

@ -223,7 +223,7 @@ void XXColorParametricCreatorV4::xx_image_description_creator_params_v4_create(R
func.maxLuminance = m_transferFunctionLuminances->max; func.maxLuminance = m_transferFunctionLuminances->max;
referenceLuminance = m_transferFunctionLuminances->reference; referenceLuminance = m_transferFunctionLuminances->reference;
} }
new XXImageDescriptionV4(resource->client(), image_description, resource->version(), ColorDescription(*m_colorimetry, func, referenceLuminance, m_minMasteringLuminance.value_or(0), maxFrameAverageLuminance, maxHdrLuminance, m_masteringColorimetry, Colorimetry::fromName(NamedColorimetry::BT709))); new XXImageDescriptionV4(resource->client(), image_description, resource->version(), ColorDescription(*m_colorimetry, func, referenceLuminance, m_minMasteringLuminance.value_or(func.minLuminance), maxFrameAverageLuminance, maxHdrLuminance, m_masteringColorimetry, Colorimetry::fromName(NamedColorimetry::BT709)));
wl_resource_destroy(resource->handle); wl_resource_destroy(resource->handle);
} }

Loading…
Cancel
Save