| 18 | #endif |
| 19 | |
| 20 | OIDN_NAMESPACE_USING |
| 21 | |
| 22 | void printUsage() |
| 23 | { |
| 24 | std::cout << "Intel(R) Open Image Denoise" << std::endl; |
| 25 | std::cout << "usage: oidnDenoise [-d/--device [0-9]+|default|cpu|sycl|cuda|hip|metal]" << std::endl |
| 26 | << " [-f/--filter RT|RTLightmap]" << std::endl |
| 27 | << " [--hdr color.pfm] [--ldr color.pfm] [--srgb] [--dir directional.pfm]" << std::endl |
| 28 | << " [--alb albedo.pfm] [--nrm normal.pfm] [--clean_aux]" << std::endl |
| 29 | << " [--is/--input_scale value]" << std::endl |
| 30 | << " [-o/--output output.pfm]" << std::endl |
| 31 | << " [-r/--ref reference_output.pfm] [--maxerror e]" << std::endl |
| 32 | << " [-t/--type float|half]" << std::endl |
| 33 | << " [-q/--quality default|h|high|b|balanced|f|fast]" << std::endl |
| 34 | << " [-w/--weights weights.tza]" << std::endl |
| 35 | << " [--threads n] [--affinity 0|1] [--maxmem MB] [--inplace]" << std::endl |
| 36 | << " [--buffer host|device|managed]" << std::endl |
| 37 | << " [-n times_to_run] [-v/--verbose 0-3]" << std::endl |
| 38 | << " [--ld|--list_devices] [-h/--help]" << std::endl; |
| 39 | } |
| 40 | |
| 41 | void errorCallback(void* userPtr, Error error, const char* message) |
| 42 | { |