Aller au contenu

Enumeration HrzProtocol.ImageFormat

Defined in hrz/protocol/image.proto.


SRGBA_8 (0)

Nonlinear sRGB encoding + linear alpha channel, 8 bits per channel.

The usual format for images.


R_F32 (1)

IEEE 754 single precision floating point, little-endian, one 32-bit channel.


SIRADEL_LEGACY_F32 (2)

Legacy float32 encoding used at Siradel, one 32-bit channel. Same as R_F32, but with the exponent and sign bits swapped.

eeeeeeee smmmmmmm mmmmmmmm mmmmmmmm with e = exponent bits, s = sign bit, and m = mantissa bits.

Originally created for WebGL 1, where uintBitsToFloat() is not available in shaders. This bit order allowed for a faster decoding.

For new data, use R_F32 instead.


SIGNED_FIXED_24_8 (3)

Signed fixed-point value with 1 sign bit, 23 integer bits, and 8 fractional bits.


R_8 (4)

Greyscale, linear encoding, 8-bit.


TERRARIUM (5)

24-bit values in [-32768, 32768] range, with 8 fractional bits. See Mapzen’s documentation.


TERRAIN_RGB (6)

24-bit values in [-10000, 1667721.5] range, with a 0.1 metre resolution. See Mapbox’s documentation.