()
| 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"))?; |
nothing calls this directly
no test coverage detected