[−][src]Function lab::simd::rgbs_to_labs
pub fn rgbs_to_labs(rgbs: &[[u8; 3]]) -> Vec<Lab>
Converts a slice of [u8; 3]
RGB triples to Lab
s using 256-bit SIMD operations.
Panics
This function will panic if executed on a non-x86_64 CPU or one without AVX and SSE 4.1 support.
ⓘThis example is not tested
if is_x86_feature_detected!("avx") && is_x86_feature_detected!("sse4.1") { lab::simd::rgbs_to_labs(&rgbs); }