MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_stream_quality_profile

Function parse_stream_quality_profile

packages/server/src/main.rs:1071–1084  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

1069}
1070
1071fn parse_stream_quality_profile(value: &str) -> Option<StreamQualityProfileArg> {
1072 match value {
1073 "quality" => Some(StreamQualityProfileArg::Quality),
1074 "full" => Some(StreamQualityProfileArg::Full),
1075 "balanced" => Some(StreamQualityProfileArg::Balanced),
1076 "fast" => Some(StreamQualityProfileArg::Fast),
1077 "smooth" => Some(StreamQualityProfileArg::Smooth),
1078 "economy" => Some(StreamQualityProfileArg::Economy),
1079 "low" => Some(StreamQualityProfileArg::Low),
1080 "tiny" => Some(StreamQualityProfileArg::Tiny),
1081 "ci-software" => Some(StreamQualityProfileArg::CiSoftware),
1082 _ => None,
1083 }
1084}
1085
1086struct StreamQualityEnvironment {
1087 profile: &'static str,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected