[−][src]Function dcv_color_primitives::describe_acceleration
pub fn describe_acceleration() -> Result<String, ErrorKind>
Returns a description of the algorithms that are best for the running cpu and available instruction sets
Errors
NotInitialized
if the library was not initialized before
Examples
use dcv_color_primitives as dcp; dcp::initialize(); match dcp::describe_acceleration() { Ok(description) => println!("{}", description), Err(error) => println!("Unable to describe the acceleration: {}", error), } // => {cpu-manufacturer:Intel,instruction-set:Avx2}
When initialize
is not called:
use dcv_color_primitives as dcp; match dcp::describe_acceleration() { Ok(description) => println!("{}", description), Err(error) => println!("Unable to describe the acceleration: {}", error), } // => Unable to describe the acceleration: NotInitialized