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

/packages/apps/Gallery2/jni/filters/
H A Dhsv.c43 int gi = rgb[rgbOff+1]; local
47 if (ri > gi) {
49 iMin = MIN (gi, bi);
51 iMax = MAX (gi, bi);
70 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma));
72 } else if (gi == iMax)
75 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma));
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A Dsaturation.rs109 int gi = rgb.g;
113 if (ri > gi) {
115 iMin = min (gi, bi);
117 iMax = max (gi, bi);
134 rh = (short) ((k2 * (6 * chroma + gi - bi))/(6 * chroma));
141 if (gi == iMax) {
145 return (short) ((k2 * (4 * chroma + ri - gi)) / (6 * chroma));

Completed in 114 milliseconds