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

Function local_stream_quality_profile

packages/server/src/main.rs:1096–1103  ·  view source on GitHub ↗
(
    low_latency: bool,
    requested: Option<StreamQualityProfileArg>,
)

Source from the content-addressed store, hash-verified

1094const DEFAULT_LOCAL_STREAM_QUALITY_PROFILE: &str = "full";
1095
1096fn local_stream_quality_profile(
1097 low_latency: bool,
1098 requested: Option<StreamQualityProfileArg>,
1099) -> Option<String> {
1100 requested
1101 .map(|profile| profile.as_profile_id().to_owned())
1102 .or_else(|| (!low_latency).then_some(DEFAULT_LOCAL_STREAM_QUALITY_PROFILE.to_owned()))
1103}
1104
1105fn stream_quality_env_for_profile(profile: &str) -> anyhow::Result<StreamQualityEnvironment> {
1106 match profile {

Callers 3

run_default_serviceFunction · 0.85
pair_global_serviceFunction · 0.85
mainFunction · 0.85

Calls 1

as_profile_idMethod · 0.80

Tested by

no test coverage detected