mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 22:31:21 +00:00
HDR is a Gen7 feature
This commit is contained in:
+2
-2
@@ -284,7 +284,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
|||||||
// Disable slicing on HEVC
|
// Disable slicing on HEVC
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].videoEncoderSlicesPerFrame", "1");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].videoEncoderSlicesPerFrame", "1");
|
||||||
|
|
||||||
if (AppVersionQuad[0] >= 5) {
|
if (AppVersionQuad[0] >= 7) {
|
||||||
// Enable HDR if requested
|
// Enable HDR if requested
|
||||||
if (StreamConfig.enableHdr) {
|
if (StreamConfig.enableHdr) {
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].dynamicRangeMode", "1");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].dynamicRangeMode", "1");
|
||||||
@@ -304,7 +304,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
|||||||
err |= addAttributeString(&optionHead, "x-nv-clientSupportHevc", "0");
|
err |= addAttributeString(&optionHead, "x-nv-clientSupportHevc", "0");
|
||||||
err |= addAttributeString(&optionHead, "x-nv-vqos[0].bitStreamFormat", "0");
|
err |= addAttributeString(&optionHead, "x-nv-vqos[0].bitStreamFormat", "0");
|
||||||
|
|
||||||
if (AppVersionQuad[0] >= 5) {
|
if (AppVersionQuad[0] >= 7) {
|
||||||
// HDR is not supported on H.264
|
// HDR is not supported on H.264
|
||||||
err |= addAttributeString(&optionHead, "x-nv-video[0].dynamicRangeMode", "0");
|
err |= addAttributeString(&optionHead, "x-nv-video[0].dynamicRangeMode", "0");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user