(p: &str)
| 158 | static BUNDLE_PATH: Mutex<String> = Mutex::new(String::new()); |
| 159 | |
| 160 | pub fn set_bundle_path(p: &str) { |
| 161 | let mut b = BUNDLE_PATH.lock().unwrap(); |
| 162 | b.clear(); |
| 163 | b.push_str(p); |
| 164 | } |
| 165 | |
| 166 | /// Read a PNG file's IHDR chunk and return (width, height). Returns None for |
| 167 | /// any parse failure (wrong magic, truncated, etc.). |
no test coverage detected