mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
enables H265 HDR option and adds PQ transforeFunction to render HDR stream on macOS 10.13+
This commit is contained in:
@@ -1313,10 +1313,10 @@ Flickable {
|
|||||||
text: qsTr("HEVC (H.265)")
|
text: qsTr("HEVC (H.265)")
|
||||||
val: StreamingPreferences.VCC_FORCE_HEVC
|
val: StreamingPreferences.VCC_FORCE_HEVC
|
||||||
}
|
}
|
||||||
/*ListElement {
|
ListElement {
|
||||||
text: qsTr("HEVC HDR (Experimental)")
|
text: qsTr("HEVC HDR (Experimental)")
|
||||||
val: StreamingPreferences.VCC_FORCE_HEVC_HDR
|
val: StreamingPreferences.VCC_FORCE_HEVC_HDR
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
// ::onActivated must be used, as it only listens for when the index is changed by a human
|
// ::onActivated must be used, as it only listens for when the index is changed by a human
|
||||||
onActivated : {
|
onActivated : {
|
||||||
|
|||||||
@@ -222,6 +222,12 @@ public:
|
|||||||
kCVImageBufferTransferFunction_ITU_R_2020,
|
kCVImageBufferTransferFunction_ITU_R_2020,
|
||||||
kCVAttachmentMode_ShouldPropagate);
|
kCVAttachmentMode_ShouldPropagate);
|
||||||
break;
|
break;
|
||||||
|
case AVCOL_TRC_SMPTE2084:
|
||||||
|
CVBufferSetAttachment(pixBuf,
|
||||||
|
kCVImageBufferTransferFunctionKey,
|
||||||
|
kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ,
|
||||||
|
kCVAttachmentMode_ShouldPropagate);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user