()
| 839 | |
| 840 | #[cfg(any(feature = "hwcodec", feature = "mediacodec"))] |
| 841 | pub fn enable_hwcodec_option() -> bool { |
| 842 | if cfg!(windows) || cfg!(target_os = "linux") || cfg!(target_os = "android") { |
| 843 | if let Some(v) = Config2::get().options.get("enable-hwcodec") { |
| 844 | return v != "N"; |
| 845 | } |
| 846 | return true; // default is true |
| 847 | } |
| 848 | false |
| 849 | } |
| 850 | #[cfg(feature = "vram")] |
| 851 | pub fn enable_vram_option() -> bool { |
| 852 | if let Some(v) = Config2::get().options.get("enable-hwcodec") { |
no test coverage detected