Optimize RGB24<->32 conversion C code