Add C versions of Layer RGB32 functions