pub unsafe fn color24_luminance(c: *const u8) -> Result<u8>
This function is unsafe because it may dereference raw pointers.