|
cesium-native 0.52.0
|
Functions to handle compressed attributes in different formats. More...
#include <CesiumUtility/AttributeCompression.h>
Static Public Member Functions | |
| template<typename T, class = typename std::enable_if<std::is_unsigned<T>::value>::type> | |
| static glm::dvec3 | octDecodeInRange (T x, T y, T rangeMax) |
| Decodes a unit-length vector in 'oct' encoding to a normalized 3-component vector. | |
| static glm::dvec3 | octDecode (uint8_t x, uint8_t y) |
| Decodes a unit-length vector in 2 byte 'oct' encoding to a normalized 3-component vector. | |
| static glm::dvec3 | decodeRGB565 (const uint16_t value) |
| Decodes a RGB565-encoded color to a 3-component vector containing the normalized RGB values. | |
Functions to handle compressed attributes in different formats.
Definition at line 12 of file AttributeCompression.h.
|
inlinestatic |
Decodes a RGB565-encoded color to a 3-component vector containing the normalized RGB values.
| value | The RGB565-encoded value. |
Definition at line 68 of file AttributeCompression.h.
|
inlinestatic |
Decodes a unit-length vector in 2 byte 'oct' encoding to a normalized 3-component vector.
| x | The x component of the oct-encoded unit length vector. |
| y | The y component of the oct-encoded unit length vector. |
Definition at line 56 of file AttributeCompression.h.
|
inlinestatic |
Decodes a unit-length vector in 'oct' encoding to a normalized 3-component vector.
| x | The x component of the oct-encoded unit length vector. |
| y | The y component of the oct-encoded unit length vector. |
| rangeMax | The maximum value of the SNORM range. The encoded vector is stored in log2(rangeMax+1) bits. |
Definition at line 28 of file AttributeCompression.h.