Lines Matching refs:alphas
140 ALWAYS_INLINE static double colordifference_ch(const double x, const double y, const double alphas);
141 inline static double colordifference_ch(const double x, const double y, const double alphas) in colordifference_ch() argument
145 const double black = x-y, white = black+alphas; in colordifference_ch()
165 const double alphas = py.a-px.a; in colordifference_stdc() local
166 return colordifference_ch(px.r, py.r, alphas) + in colordifference_stdc()
167 colordifference_ch(px.g, py.g, alphas) + in colordifference_stdc()
168 colordifference_ch(px.b, py.b, alphas); in colordifference_stdc()
171 …S_INLINE static double min_colordifference_ch(const double x, const double y, const double alphas);
172 inline static double min_colordifference_ch(const double x, const double y, const double alphas) in min_colordifference_ch() argument
174 const double black = x-y, white = black+alphas; in min_colordifference_ch()
182 const double alphas = py.a-px.a; in min_colordifference() local
183 return min_colordifference_ch(px.r, py.r, alphas) + in min_colordifference()
184 min_colordifference_ch(px.g, py.g, alphas) + in min_colordifference()
185 min_colordifference_ch(px.b, py.b, alphas); in min_colordifference()
192 __m128 alphas, onblack, onwhite; in colordifference() local
198 alphas = _mm_sub_ss(vpy, vpx); in colordifference()
199 alphas = _mm_shuffle_ps(alphas,alphas,0); // copy first to all four in colordifference()
202 onwhite = _mm_add_ps(onblack, alphas); // x - y + (y.a - x.a) in colordifference()