Inline functions to offer additional C primitives. More...
#include <math.h>Functions | |
| INLINE u8 | GRRLIB_ClampVar8 (f32 Value) |
| A helper function for the YCbCr -> RGB conversion. | |
Inline functions to offer additional C primitives.
| INLINE u8 GRRLIB_ClampVar8 | ( | f32 | Value | ) |
A helper function for the YCbCr -> RGB conversion.
Clamps the given value into a range of 0 - 255 and thus preventing an overflow.
| Value | The value to clamp. Using float to increase the precision. This makes a full spectrum (0 - 255) possible. |
1.6.1