mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
feat(win/video): support native YUV 4:4:4 encoding (#2533)
This commit is contained in:
@@ -720,17 +720,32 @@ namespace nvhttp {
|
||||
}
|
||||
|
||||
uint32_t codec_mode_flags = SCM_H264;
|
||||
if (video::last_encoder_probe_supported_yuv444_for_codec[0]) {
|
||||
codec_mode_flags |= SCM_H264_HIGH8_444;
|
||||
}
|
||||
if (video::active_hevc_mode >= 2) {
|
||||
codec_mode_flags |= SCM_HEVC;
|
||||
if (video::last_encoder_probe_supported_yuv444_for_codec[1]) {
|
||||
codec_mode_flags |= SCM_HEVC_REXT8_444;
|
||||
}
|
||||
}
|
||||
if (video::active_hevc_mode >= 3) {
|
||||
codec_mode_flags |= SCM_HEVC_MAIN10;
|
||||
if (video::last_encoder_probe_supported_yuv444_for_codec[1]) {
|
||||
codec_mode_flags |= SCM_HEVC_REXT10_444;
|
||||
}
|
||||
}
|
||||
if (video::active_av1_mode >= 2) {
|
||||
codec_mode_flags |= SCM_AV1_MAIN8;
|
||||
if (video::last_encoder_probe_supported_yuv444_for_codec[2]) {
|
||||
codec_mode_flags |= SCM_AV1_HIGH8_444;
|
||||
}
|
||||
}
|
||||
if (video::active_av1_mode >= 3) {
|
||||
codec_mode_flags |= SCM_AV1_MAIN10;
|
||||
if (video::last_encoder_probe_supported_yuv444_for_codec[2]) {
|
||||
codec_mode_flags |= SCM_AV1_HIGH10_444;
|
||||
}
|
||||
}
|
||||
tree.put("root.ServerCodecModeSupport", codec_mode_flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user