Searched refs:MAX_Y_T (Results 1 – 1 of 1) sorted by relevance
168 #define MAX_Y_T ((256 << SFIX) - 1) macro178 static uint32_t kGammaToLinearTabS[MAX_Y_T + 1]; // size scales with Y_FIX185 const double norm = 1. / MAX_Y_T; in InitGammaTablesS()190 for (v = 0; v <= MAX_Y_T; ++v) { in InitGammaTablesS()211 (uint32_t)(MAX_Y_T * value) + (1 << GAMMA_TO_LINEAR_BITS >> 1); in InitGammaTablesS()243 return (v << GAMMA_TO_LINEAR_BITS) / MAX_Y_T; in GammaToLinearS()246 return (MAX_Y_T * value) >> GAMMA_TO_LINEAR_BITS; in LinearToGammaS()258 return (!(y & ~MAX_Y_T)) ? (fixed_y_t)y : (y < 0) ? 0 : MAX_Y_T; in clip_y()