Converts Windows HRESULT error to CameraError # Arguments `e` - The HResult error from Windows API # Returns A CameraError wrapping the error message
(e: HResultError)
| 35 | /// # Returns |
| 36 | /// A CameraError wrapping the error message |
| 37 | fn hresult_to_camera_error(e: HResultError) -> CameraError { |
| 38 | CameraError::Io(std::io::Error::other(e.to_string())) |
| 39 | } |
| 40 | |
| 41 | /// Initializes the Media Foundation and COM subsystem |
| 42 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected