MCPcopy Create free account
hub / github.com/Recordscript/recordscript / check_available_vram

Function check_available_vram

libs/scrap/src/common/vram.rs:379–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377}
378
379pub(crate) fn check_available_vram() -> String {
380 let d = DynamicContext {
381 device: None,
382 width: 1280,
383 height: 720,
384 kbitrate: 5000,
385 framerate: 60,
386 gop: MAX_GOP as _,
387 };
388 let encoders = encode::available(d);
389 let decoders = decode::available();
390 let available = Available {
391 e: encoders,
392 d: decoders,
393 };
394 available.serialize().unwrap_or_default()
395}

Callers 1

check_available_hwcodecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected