decodeTerrariumTile

Decodes a Terrarium-encoded WebP tile (Mapterhorn's format) into meters-above-sea-level.

Every platform actual must decode with straight, not premultiplied, alpha: elevation lives entirely in the RGB channels, and both Android's android.graphics.BitmapFactory and Skia default to alpha-premultiplied output, which would silently scale RGB by alpha and corrupt every partially-transparent pixel's decoded elevation.

Decodes a Terrarium-encoded WebP tile (Mapterhorn's format) into meters-above-sea-level.

Every platform actual must decode with straight, not premultiplied, alpha: elevation lives entirely in the RGB channels, and both Android's android.graphics.BitmapFactory and Skia default to alpha-premultiplied output, which would silently scale RGB by alpha and corrupt every partially-transparent pixel's decoded elevation.

Decodes a Terrarium-encoded WebP tile (Mapterhorn's format) into meters-above-sea-level.

Every platform actual must decode with straight, not premultiplied, alpha: elevation lives entirely in the RGB channels, and both Android's android.graphics.BitmapFactory and Skia default to alpha-premultiplied output, which would silently scale RGB by alpha and corrupt every partially-transparent pixel's decoded elevation.