Searched refs:SFIX (Results 1 - 1 of 1) sorted by relevance

/external/webp/src/enc/
H A Dpicture_csp_enc.c161 // 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 macro
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)));
[all...]

Completed in 105 milliseconds