Lines Matching refs:component
27 /** Converts a color component luminance in the color space to a linear luma. */
29 /** Converts a linear luma to a color component luminance in the color space. */
218 * If APPLY_LUT is false, returns component unchanged.
219 * If APPLY_LUT is true, returns lut[component].
220 * @param APPLY_LUT whether or not the look-up table should be applied to component.
221 * @component the initial component.
222 * @lut a look-up table which transforms the component.
224 template<bool APPLY_LUT> static inline U8CPU sk_apply_lut_if(U8CPU component, const uint8_t*) {
225 return component;
227 template<> /*static*/ inline U8CPU sk_apply_lut_if<true>(U8CPU component, const uint8_t* lut) {
228 return lut[component];