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

Function active_video_codec

packages/server/src/api/routes.rs:987–992  ·  view source on GitHub ↗
(config: &Config)

Source from the content-addressed store, hash-verified

985}
986
987fn active_video_codec(config: &Config) -> String {
988 std::env::var("SIMDECK_VIDEO_CODEC")
989 .ok()
990 .and_then(|value| normalize_video_codec(&value).map(ToOwned::to_owned))
991 .unwrap_or_else(|| config.video_codec.clone())
992}
993
994fn active_android_gpu() -> String {
995 std::env::var("SIMDECK_ANDROID_GPU")

Callers 3

healthFunction · 0.85
stream_quality_responseFunction · 0.85

Calls 2

normalize_video_codecFunction · 0.85
cloneMethod · 0.65

Tested by

no test coverage detected