Add codec and 10-bit config in headset
This commit is contained in:
committed by
Patrick Nicolas
parent
9b4a26b5a8
commit
6f32f049d7
@@ -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;
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user