I have terrain data stored as 16-bit png files. I would like to apply a color table that maps the height to a color to be drawn on the map. (Yes, I realize that the table would have 65536 entries).
Is there support for this in Android, or am I going to have to convert the data to RGB when it's loaded? Or find a version of libpng for Android? Or build my own?
Edit: Correct; there's no color table in the png files; I'm generating it in software when I load the images.
I guess a better way to phrase my question is this: Is there any way to map a bitmap of 16-bit integers through a lookup table in order to generate a new RGB bitmap? Or do I need to roll my own?