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

Method possible_available_without_check

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

Source from the content-addressed store, hash-verified

330 }
331
332 pub fn possible_available_without_check() -> (bool, bool) {
333 if !enable_vram_option() {
334 return (false, false);
335 }
336 let v = get_available_config().map(|c| c.d).unwrap_or_default();
337 (
338 v.iter().any(|d| d.data_format == DataFormat::H264),
339 v.iter().any(|d| d.data_format == DataFormat::H265),
340 )
341 }
342
343 pub fn new(format: CodecFormat, luid: Option<i64>) -> ResultType<Self> {
344 let ctx = Self::try_get(format, luid).ok_or(anyhow!("Failed to get decode context"))?;

Callers

nothing calls this directly

Calls 3

enable_vram_optionFunction · 0.85
get_available_configFunction · 0.85
iterMethod · 0.80

Tested by

no test coverage detected