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

/haiku/src/add-ons/translators/wonderbrush/support/
H A Dlab_convert.cpp16 #define GAMMA_ZERO_ENTRIES 256 macro
19 #define GAMMA_TOTAL_ENTRIES GAMMA_ZERO_ENTRIES + GAMMA_ENTRIES + GAMMA_MAX_ENTRIES
26 for (int32 i = 0; i < GAMMA_ZERO_ENTRIES; i++)
29 table[i + GAMMA_ZERO_ENTRIES] = (uint8)(pow((float)i / (float)(GAMMA_ENTRIES - 1), 0.4) * 255.0 + 0.5);
31 table[i + GAMMA_ZERO_ENTRIES + GAMMA_ENTRIES] = 255;
157 R = gammaTable[(uint32)(linearR * (GAMMA_ENTRIES - 1) + 0.5) + GAMMA_ZERO_ENTRIES];
158 G = gammaTable[(uint32)(linearG * (GAMMA_ENTRIES - 1) + 0.5) + GAMMA_ZERO_ENTRIES];
159 B = gammaTable[(uint32)(linearB * (GAMMA_ENTRIES - 1) + 0.5) + GAMMA_ZERO_ENTRIES];*/

Completed in 17 milliseconds