Searched refs:ClampToLimit (Results 1 – 1 of 1) sorted by relevance
1013 static inline size_t ClampToLimit(const float value, const size_t limit) in ClampToLimit() function1027 size_t r = ClampToLimit(31.0f*point.x,31); in ColorTo565()1028 size_t g = ClampToLimit(63.0f*point.y,63); in ColorTo565()1029 size_t b = ClampToLimit(31.0f*point.z,31); in ColorTo565()3075 color[0] = (unsigned char) ClampToLimit(255.0f*points->x,255); in WriteSingleColorFit()3076 color[1] = (unsigned char) ClampToLimit(255.0f*points->y,255); in WriteSingleColorFit()3077 color[2] = (unsigned char) ClampToLimit(255.0f*points->z,255); in WriteSingleColorFit()