mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-10 10:18:46 +00:00
Set max BPC property when streaming in 10-bit color modes
This commit is contained in:
parent
45b5136233
commit
755c7c9895
1 changed files with 18 additions and 1 deletions
|
@ -446,6 +446,23 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
||||||
if (!strcmp(prop->name, "HDR_OUTPUT_METADATA")) {
|
if (!strcmp(prop->name, "HDR_OUTPUT_METADATA")) {
|
||||||
m_HdrOutputMetadataProp = prop;
|
m_HdrOutputMetadataProp = prop;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(prop->name, "max bpc") && m_Main10Hdr) {
|
||||||
|
int err = drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR,
|
||||||
|
prop->prop_id, 10);
|
||||||
|
if (err == 0) {
|
||||||
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
"Enabled 30-bit HDMI Deep Color");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
"drmModeObjectSetProperty(%s) failed: %d",
|
||||||
|
prop->name,
|
||||||
|
errno);
|
||||||
|
// Non-fatal
|
||||||
|
}
|
||||||
|
|
||||||
|
drmModeFreeProperty(prop);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
drmModeFreeProperty(prop);
|
drmModeFreeProperty(prop);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue