How to create data samples for each of the paletted texture formats supported by Opengl-es?

Thank you.