str2space
FFI
str2space
has an FFI wrapper now, similar toconvert_space
str2space_ffi
generic public function with C types as well- Renamed
convert_space_ffi_NT
->convert_space_NT
Alpha channel "support"
- Most functions can now take 4 channels instead of 3 channels. While the compiler can usually infer which to use, you may have to manually annotate in some scenarios. This lets you directly process images with an alpha channel without splitting the data into separate streams
- The external C functions have all been renamed to monotyped versions of the generics. The naming scheme is
generic_name_NDtype
whereN
is the channel count (3 or 4) and DType is currently eitherf32
orf64
. So the priorxyz_to_oklab
now becomesxyz_to_oklab_3f32
- Many functions are 10-50% faster due to optimized algorithms, particularly fast cube root.
- Fast cube root is only different by an extremely tiny fraction
- Some integer functions are now stable in
const
srgb_to_irgb
now properly rounds before casting