Searched refs:rh (Results 1 - 5 of 5) sorted by relevance

/packages/apps/Gallery2/jni/filters/
H A Dhsv.c45 short rv,rs,rh; local
67 rh = 0;
70 rh = (short)( (k2*(6*chroma+gi - bi))/(6*chroma));
71 if (rh >= k2) rh -= k2;
73 rh = (short)( (k2*(2*chroma+bi - ri ))/(6*chroma));
75 rh = (short)( (k2*(4*chroma+ri - gi ))/(6*chroma));
79 hsv[hsvOff+2] = rh;
/packages/apps/Camera2/src/com/android/camera/ui/
H A DFaceView.java174 int rw, rh;
176 rh = (int) mPreviewArea.height();
178 if (((rh > rw) && ((mDisplayOrientation == 0) || (mDisplayOrientation == 180)))
179 || ((rw > rh) && ((mDisplayOrientation == 90) || (mDisplayOrientation == 270)))) {
181 rw = rh;
182 rh = temp;
184 CameraUtil.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A Dsaturation.rs111 short rv,rs,rh;
134 rh = (short) ((k2 * (6 * chroma + gi - bi))/(6 * chroma));
135 if (rh >= k2) {
136 rh -= k2;
138 return rh;
/packages/apps/Camera/src/com/android/camera/ui/
H A DFaceView.java183 int rh = sn.getUncroppedRenderHeight();
185 if (((rh > rw) && ((mDisplayOrientation == 0) || (mDisplayOrientation == 180)))
186 || ((rw > rh) && ((mDisplayOrientation == 90) || (mDisplayOrientation == 270)))) {
188 rw = rh;
189 rh = temp;
191 Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh);
193 int dy = (getHeight() - rh) / 2;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageStraighten.java194 double rh = outRect.height();
195 double h1 = rh * rh / (rw * sina + rh * cosa);
196 double h2 = rh * rw / (rw * cosa + rh * sina);
198 double ww = hh * rw / rh;
200 float top = (float) ((rh - hh) * 0.5f);

Completed in 279 milliseconds