Add codec and 10-bit config in headset

This commit is contained in:
Sapphire
2025-12-11 13:42:16 +01:00
committed by Patrick Nicolas
parent 9b4a26b5a8
commit 6f32f049d7
14 changed files with 117 additions and 11 deletions
+16 -1
View File
@@ -306,7 +306,22 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (not(config.check_feature(feature::microphone)))
info.microphone = {};
info.supported_codecs = decoder::supported_codecs();
if (config.codec)
{
info.supported_codecs = {*config.codec};
switch (*config.codec)
{
case h264:
case raw:
break;
case h265:
case av1:
info.bit_depth = config.bit_depth;
}
}
else
info.supported_codecs = decoder::supported_codecs();
return info;
}());