(&mut self)
| 65 | } |
| 66 | |
| 67 | pub fn validate(&mut self) { |
| 68 | standard_cli_check( |
| 69 | self.list_supported_encoders, |
| 70 | &self.encoder, |
| 71 | &self.source_file, |
| 72 | &self.files_directory, |
| 73 | self.was_ui_opened, |
| 74 | ); |
| 75 | |
| 76 | // if you did not provide a source file, we'll be running on all expected files |
| 77 | if self.source_file.is_empty() && !are_all_source_files_present(&self.files_directory) { |
| 78 | println!("You're missing some video source files to run the standard benchmark; you should have the following: \n{:?}", get_supported_inputs()); |
| 79 | println!( |
| 80 | "Please download the ones you are missing from the project's readme section: {}", |
| 81 | get_repo_url() |
| 82 | ); |
| 83 | println!("If you want to run the tool against a specific resolution/fps, download just that source file and specify it with '-s'"); |
| 84 | error_with_ack(self.was_ui_opened); |
| 85 | } |
| 86 | |
| 87 | if self.source_file.is_empty() && !self.files_directory.is_empty() { |
| 88 | // internally map the source_file and source_files_directory together |
| 89 | self.source_file = format!("{}/{}", self.files_directory, self.source_file); |
| 90 | } |
| 91 | } |
| 92 | } |
no test coverage detected