Home | History | Annotate | Download | only in core

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. */
202 * If APPLY_LUT is false, returns component unchanged.
203 * If APPLY_LUT is true, returns lut[component].
204 * @param APPLY_LUT whether or not the look-up table should be applied to component.
205 * @component the initial component.
206 * @lut a look-up table which transforms the component.
208 template<bool APPLY_LUT> static inline U8CPU sk_apply_lut_if(U8CPU component, const uint8_t*) {
209 return component;
211 template<> /*static*/ inline U8CPU sk_apply_lut_if<true>(U8CPU component, const uint8_t* lut) {
212 return lut[component];