Before optimizing from float * to unsigned char *