(codec: &str)
| 1006 | } |
| 1007 | |
| 1008 | fn normalize_video_codec(codec: &str) -> Option<&'static str> { |
| 1009 | match codec.trim().to_ascii_lowercase().as_str() { |
| 1010 | "auto" => Some("auto"), |
| 1011 | "hardware" => Some("hardware"), |
| 1012 | "software" => Some("software"), |
| 1013 | _ => None, |
| 1014 | } |
| 1015 | } |
| 1016 | |
| 1017 | fn normalize_android_gpu(mode: &str) -> Option<&'static str> { |
| 1018 | match mode.trim().to_ascii_lowercase().replace('-', "_").as_str() { |
no test coverage detected