Support YUV 4:4:4 formats

This commit is contained in:
ns6089 authored and Cameron Gutman committed 2024-06-06 02:31:32 -05:00
1 parent c245fe599d
commit 907110c4ec
3 files changed
+58 -21

No files matched your search

+8
View File
@@ -301,6 +301,14 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
snprintf(payloadStr, sizeof(payloadStr), "%u", EncryptionFeaturesEnabled);
err |= addAttributeString(&optionHead, "x-ss-general.encryptionEnabled", payloadStr);
// Enable YUV444 if requested
if (NegotiatedVideoFormat & VIDEO_FORMAT_MASK_YUV444) {
err |= addAttributeString(&optionHead, "x-ss-video[0].chromaSamplingType", "1");
}
else {
err |= addAttributeString(&optionHead, "x-ss-video[0].chromaSamplingType", "0");
}
}
snprintf(payloadStr, sizeof(payloadStr), "%d", StreamConfig.width);