|
| static OGRE_FORCE_INLINE uint16 | bswap16 (uint16 arg) |
| | Returns value with reversed bytes order. More...
|
| |
| static OGRE_FORCE_INLINE uint32 | bswap32 (uint32 arg) |
| | Returns value with reversed bytes order. More...
|
| |
| static OGRE_FORCE_INLINE uint64 | bswap64 (uint64 arg) |
| | Returns value with reversed bytes order. More...
|
| |
| static void | bswapBuffer (void *pData, size_t size) |
| | Reverses byte order of buffer. More...
|
| |
| static void | bswapChunks (void *pData, size_t size, size_t count) |
| | Reverses byte order of chunks in buffer, where 'size' is size of one chunk. More...
|
| |
| template<typename SrcT , typename DestT > |
| static DestT | convertBitPattern (SrcT srcValue, SrcT srcBitMask, DestT destBitMask) |
| | Takes a value with a given src bit mask, and produces another value with a desired bit mask. More...
|
| |
| static OGRE_FORCE_INLINE uint32 | firstPO2From (uint32 n) |
| | Returns the closest power-of-two number greater or equal to value. More...
|
| |
| static unsigned int | fixedToFixed (uint32 value, unsigned int n, unsigned int p) |
| | Convert N bit colour channel value to P bits. More...
|
| |
| static float | fixedToFloat (unsigned value, unsigned int bits) |
| | Fixed point to float. More...
|
| |
| static unsigned int | floatToFixed (const float value, const unsigned int bits) |
| | Convert floating point colour channel value between 0.0 and 1.0 (otherwise clamped) to integer of a certain number of bits. More...
|
| |
| static uint16 | floatToHalf (float i) |
| | Convert a float32 to a float16 (NV_half_float) Courtesy of OpenEXR. More...
|
| |
| static uint16 | floatToHalfI (uint32 i) |
| | Converts float in uint32 format to a a half in uint16 format. More...
|
| |
| template<typename T > |
| static OGRE_FORCE_INLINE unsigned int | getBitShift (T mask) |
| | Returns the number of bits a pattern must be shifted right by to remove right-hand zeros. More...
|
| |
| static float | halfToFloat (uint16 y) |
| | Convert a float16 (NV_half_float) to a float32 Courtesy of OpenEXR. More...
|
| |
| static uint32 | halfToFloatI (uint16 y) |
| | Converts a half in uint16 format to a float in uint32 format. More...
|
| |
| static unsigned int | intRead (const void *src, int n) |
| | Read a n*8 bits integer value to memory in native endian. More...
|
| |
| static void | intWrite (void *dest, const int n, const unsigned int value) |
| | Write a n*8 bits integer value to memory in native endian. More...
|
| |
| template<typename T > |
| static OGRE_FORCE_INLINE bool | isPO2 (T n) |
| | Determines whether the number is power-of-two or not. More...
|
| |
| static OGRE_FORCE_INLINE unsigned int | mostSignificantBitSet (unsigned int value) |
| | Returns the most significant bit set in a value. More...
|
| |
Class for manipulating bit patterns.