Home | History | Annotate | Download | only in enc

Lines Matching full:sfix

161 // We could use SFIX=0 and only uint8_t for fixed_y_t, but it produces some
163 #define SFIX 2 // fixed-point precision of RGB and Y/W
164 typedef int16_t fixed_t; // signed type with extra SFIX precision for UV
165 typedef uint16_t fixed_y_t; // unsigned type with extra SFIX precision for W
167 #define SHALF (1 << SFIX >> 1)
168 #define MAX_Y_T ((256 << SFIX) - 1)
169 #define SROUNDER (1 << (YUV_FIX + SFIX - 1))
316 static WEBP_INLINE fixed_y_t UpLift(uint8_t a) { // 8bit -> SFIX
317 return ((fixed_y_t)a << SFIX) | SHALF;
376 return clip_8b(16 + (luma >> (YUV_FIX + SFIX)));
381 return clip_8b(128 + (u >> (YUV_FIX + SFIX)));
386 return clip_8b(128 + (v >> (YUV_FIX + SFIX)));