Searched refs:GAMMA_TO_LINEAR_BITS (Results 1 – 1 of 1) sorted by relevance
177 #define GAMMA_TO_LINEAR_BITS 14 macro182 assert(2 * GAMMA_TO_LINEAR_BITS < 32); // we use uint32_t intermediate values in InitGammaTablesS()189 const double final_scale = 1 << GAMMA_TO_LINEAR_BITS; in InitGammaTablesS()211 (uint32_t)(MAX_Y_T * value) + (1 << GAMMA_TO_LINEAR_BITS >> 1); in InitGammaTablesS()227 const uint32_t tab_pos = v >> GAMMA_TO_LINEAR_BITS; in LinearToGammaS()229 const uint32_t x = v - (tab_pos << GAMMA_TO_LINEAR_BITS); // fractional part in LinearToGammaS()235 const uint32_t result = v0 + (v2 >> GAMMA_TO_LINEAR_BITS); in LinearToGammaS()243 return (v << GAMMA_TO_LINEAR_BITS) / MAX_Y_T; in GammaToLinearS()246 return (MAX_Y_T * value) >> GAMMA_TO_LINEAR_BITS; in LinearToGammaS()