()
| 369 | impl VRamDecoderImage<'_> {} |
| 370 | |
| 371 | fn get_available_config() -> ResultType<Available> { |
| 372 | let available = hbb_common::config::HwCodecConfig::load().vram; |
| 373 | match Available::deserialize(&available) { |
| 374 | Ok(v) => Ok(v), |
| 375 | Err(_) => Err(anyhow!("Failed to deserialize:{}", available)), |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | pub(crate) fn check_available_vram() -> String { |
| 380 | let d = DynamicContext { |
no test coverage detected