Home | History | Annotate | Download | only in core

Lines Matching refs:Cmax

216 static inline void setSaturationComponents(float* Cmin, float* Cmid, float* Cmax, float s) {
217 if(*Cmax > *Cmin) {
218 *Cmid = (*Cmid - *Cmin) * s / (*Cmax - *Cmin);
219 *Cmax = s;
221 *Cmax = 0;
728 static inline void setSaturationComponents(int* Cmin, int* Cmid, int* Cmax, int s) {
729 if(*Cmax > *Cmin) {
730 *Cmid = SkMulDiv(*Cmid - *Cmin, s, *Cmax - *Cmin);
731 *Cmax = s;
733 *Cmax = 0;