Toaplan palette - do endian swap only once outside instead of 3 times
inside color palette conversion function