Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 80) sorted by relevance

1234

/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_matching.cpp40 float f,g,fgsum,f2sum,g2sum,fsum,gsum,fg_corr,den; in db_SignedSquareNormCorr7x7_u() local
48 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
49 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
50 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
51 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
52 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
53 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
54 f= *pf; g= *pg; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
57 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
58 f= *pf++; g= *pg++; fgsum+=f*g; f2sum+=f*f; g2sum+=g*g; fsum+=f; gsum+=g; in db_SignedSquareNormCorr7x7_u()
[all …]
Ddb_utilities_linalg.h257 inline int db_ScalarProduct512_s(const short *f,const short *g) in db_ScalarProduct512_s() argument
263 back+=(*f++)*(*g++); in db_ScalarProduct512_s()
270 inline int db_ScalarProduct32_s(const short *f,const short *g) in db_ScalarProduct32_s() argument
275 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
276 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
277 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
278 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
279 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
280 …back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(*g++); back+=(*f++)*(… in db_ScalarProduct32_s()
281 back+=(*f++)*(*g++); back+=(*f++)*(*g++); in db_ScalarProduct32_s()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DImageUtils.cpp30 int r,g,b, a; in rgba2yvu() local
39 g = (*image++); in rgba2yvu()
45 if (g < 0) g = 0; in rgba2yvu()
46 if (g > 255) g = 255; in rgba2yvu()
50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu()
55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu()
60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu()
75 int r,g,b; in rgb2yvu() local
84 g = (*image++); in rgb2yvu()
89 if (g < 0) g = 0; in rgb2yvu()
[all …]
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c20 int value(int r, int g, int b) { in value() argument
21 return MAX(r, MAX(g, b)); in value()
26 int g = src[p + 1]; in isRed() local
28 int max = MAX(g, b); in isRed()
44 int g = src[p + 1]; in findPossible() local
47 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible()
104 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument
106 img[off + 1] = g; in stuff()
143 int g = src[p + 1]; in filterRedEye() local
147 int m = MAX(g,b); in filterRedEye()
[all …]
Dwbalance.c42 int g = histG[i]; in estmateWhite() local
45 sum_g += g; in estmateWhite()
52 if (g>0){ in estmateWhite()
68 int g = histG[i]; in estmateWhite() local
71 tmp_g += g; in estmateWhite()
79 sum15g += g*i; in estmateWhite()
80 count15g += g; in estmateWhite()
103 int g = 0; in estmateWhiteBox() local
121 g += src[GREEN]; in estmateWhiteBox()
127 *wg = g/sum; in estmateWhiteBox()
[all …]
Dhue.c31 int g = rgb[GREEN]; in JNIFUNCF() local
34 float rf = r*mat[0] + g*mat[4] + b*mat[8] + mat[12]; in JNIFUNCF()
35 float gf = r*mat[1] + g*mat[5] + b*mat[9] + mat[13]; in JNIFUNCF()
36 float bf = r*mat[2] + g*mat[6] + b*mat[10] + mat[14]; in JNIFUNCF()
Dgradient.c46 int g = destination[GREEN]; in JNIFUNCF() local
47 g = greenGradientArray[g]; in JNIFUNCF()
48 destination[GREEN] = g; in JNIFUNCF()
Dvibrance.c39 int g = destination[GREEN]; in JNIFUNCF() local
41 float red = (r-MAX(g, b))/256.f; in JNIFUNCF()
48 int t = (r + g) / 2; in JNIFUNCF()
50 G = g; in JNIFUNCF()
Dsaturated.c37 int g = destination[GREEN]; in JNIFUNCF() local
39 int t = (r + g) / 2; in JNIFUNCF()
41 G = g; in JNIFUNCF()
Dbwfilter.c43 float g = sg *rgb[GREEN]; in JNIFUNCF() local
45 min = MIN(g,b); in JNIFUNCF()
47 max = MAX(g,b); in JNIFUNCF()
Dfilters.h27 #define SetColor(a, r, g, b) ((a << 24) | (b << 16) | (g << 8) | (r << 0)); argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java185 public float getRed(int r, int g, int b) { in getRed() argument
186 return r * mMatrix[0] + g * mMatrix[4] + b * mMatrix[8] + mMatrix[12]; in getRed()
197 public float getGreen(int r, int g, int b) { in getGreen() argument
198 return r * mMatrix[1] + g * mMatrix[5] + b * mMatrix[9] + mMatrix[13]; in getGreen()
209 public float getBlue(int r, int g, int b) { in getBlue() argument
210 return r * mMatrix[2] + g * mMatrix[6] + b * mMatrix[10] + mMatrix[14]; in getBlue()
213 private float getRedf(float r, float g, float b) { in getRedf() argument
214 return r * mMatrix[0] + g * mMatrix[4] + b * mMatrix[8] + mMatrix[12]; in getRedf()
217 private float getGreenf(float r, float g, float b) { in getGreenf() argument
218 return r * mMatrix[1] + g * mMatrix[5] + b * mMatrix[9] + mMatrix[13]; in getGreenf()
[all …]
DImageFilterBwFilter.java45 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, int r, int g, int b); in nativeApplyFilter() argument
59 int g = 0xFF & (rgb >> 8); in apply() local
61 nativeApplyFilter(bitmap, w, h, r, g, b); in apply()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ditoatest.cpp58 static void VerifyValue(T value, void(*f)(T, char*), char* (*g)(T, char*)) { in VerifyValue()
63 *g(value, buffer2) = '\0'; in VerifyValue()
70 static void Verify(void(*f)(T, char*), char* (*g)(T, char*)) { in Verify()
72 VerifyValue<T>(0, f, g); in Verify()
73 VerifyValue<T>(std::numeric_limits<T>::min(), f, g); in Verify()
74 VerifyValue<T>(std::numeric_limits<T>::max(), f, g); in Verify()
80 VerifyValue<T>(i - 1, f, g); in Verify()
81 VerifyValue<T>(i, f, g); in Verify()
83 VerifyValue<T>(Traits<T>::Negate(i), f, g); in Verify()
84 VerifyValue<T>(Traits<T>::Negate(i + 1), f, g); in Verify()
/packages/apps/Camera2/src/com/android/camera/
DPanoUtil.java62 int g = (y1192 - 833 * v - 400 * u); in decodeYUV420SPQuarterRes() local
70 if (g < 0) { in decodeYUV420SPQuarterRes()
71 g = 0; in decodeYUV420SPQuarterRes()
72 } else if (g > 262143) { in decodeYUV420SPQuarterRes()
73 g = 262143; in decodeYUV420SPQuarterRes()
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoUtil.java62 int g = (y1192 - 833 * v - 400 * u); in decodeYUV420SPQuarterRes() local
70 if (g < 0) { in decodeYUV420SPQuarterRes()
71 g = 0; in decodeYUV420SPQuarterRes()
72 } else if (g > 262143) { in decodeYUV420SPQuarterRes()
73 g = 262143; in decodeYUV420SPQuarterRes()
81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
DMosaicRendererSurfaceView.java126 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument
128 mGreenSize = g; in ConfigChooser()
190 int g = findConfigAttrib(egl, display, config, in chooseConfig() local
197 if (r == mRedSize && g == mGreenSize && b == mBlueSize && a == mAlphaSize) in chooseConfig()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java361 Gap g = mGaps.get(i); in startOpeningAnimationIfNeeded() local
362 g.mCurrentGap = mViewW; in startOpeningAnimationIfNeeded()
363 g.doAnimation(g.mDefaultSize, ANIM_KIND_OPENING); in startOpeningAnimationIfNeeded()
398 Gap g = mGaps.get(i); in updateScaleAndGapLimit() local
399 g.mDefaultSize = getDefaultGapSize(i); in updateScaleAndGapLimit()
453 Gap g = mGaps.get(i); in skipAnimation() local
454 if (g.mAnimationStartTime == NO_ANIMATION) continue; in skipAnimation()
455 g.mCurrentGap = g.mToGap; in skipAnimation()
456 g.mAnimationStartTime = NO_ANIMATION; in skipAnimation()
553 Gap g = mGaps.get(offset); // the gap between the two boxes in startCaptureAnimationSlide() local
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_reader.cpp186 int r, g, b, c, m, y, k; in formatPixels() local
195 g = (k * m) / 255; in formatPixels()
199 g = (255 - k) * (255 - m) / 255; in formatPixels()
203 *iter++ = g; in formatPixels()
228 int r, g, b; in formatPixels() local
231 g = *--iter; in formatPixels()
234 buf[i - 1] = g; in formatPixels()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DMaterialColorMapUtils.java148 int g = (color >> 8) & 0xFF; in hue() local
151 int V = Math.max(b, Math.max(r, g)); in hue()
152 int temp = Math.min(b, Math.min(r, g)); in hue()
161 final float cg = (V - g) / vtemp; in hue()
166 } else if (g == V) { in hue()
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp138 SyncEventGuard g (sReadEvent); in nativeNfcTag_abortWaits() local
144 SyncEventGuard g (sTransceiveEvent); in nativeNfcTag_abortWaits() local
148 SyncEventGuard g (sReconnectEvent); in nativeNfcTag_abortWaits() local
188 SyncEventGuard g (sReadEvent); in nativeNfcTag_doReadCompleted() local
276 SyncEventGuard g (sReadEvent); in nativeNfcTag_doRead() local
518 SyncEventGuard g (sReconnectEvent); in nativeNfcTag_doConnectStatus() local
544 SyncEventGuard g (sReconnectEvent); in nativeNfcTag_doDeactivateStatus() local
648 SyncEventGuard g (sReconnectEvent); in reSelect() local
863 SyncEventGuard g (sTransceiveEvent); in nativeNfcTag_doTransceiveStatus() local
891 SyncEventGuard g (sTransceiveEvent); in nativeNfcTag_notifyRfTimeout() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGradControl.java190 RadialGradient g = new RadialGradient(x, y, mCenterDotSize, mGrayPointColorPatern, in paintGrayPoint() local
192 paint.setShader(g); in paintGrayPoint()
203 RadialGradient g = new RadialGradient(x, y, mCenterDotSize, mPointColorPatern, in paintPoint() local
205 paint.setShader(g); in paintPoint()
DEclipseControl.java202 RadialGradient g = new RadialGradient(x, y, mCenterDotSize, colors3, new float[]{ in paintGrayPoint() local
204 paint.setShader(g); in paintGrayPoint()
219 RadialGradient g = new RadialGradient(x, y, mCenterDotSize, colors3, new float[]{ in paintPoint() local
221 paint.setShader(g); in paintPoint()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dinsituparsing.dot14 …oldjson [label="\{|\"|m|s|g|\"|:|\"|H|e|l|l|o|\\|n|W|o|r|l|d|!|\"|,|\"|\\|u|0|0|7|3|t|a|r|s|\"|:|1…
15 …//newjson [label="\{|\"|<a>m|s|g|\\0|:|\"|<b>H|e|l|l|o|\\n|W|o|r|l|d|!|\\0|\"|,|\"|<c>s|t|a|r|s|\\…
19 <td>"</td><td port="a">m</td><td>s</td><td>g</td><td bgcolor="yellow">\\0</td>
/packages/apps/LegacyCamera/jni/
Dfeature_mos_jni.cpp329 int g = (y1192 - 833 * v - 400 * u); in decodeYUV444SP() local
333 if (g < 0) g = 0; else if (g > 262143) g = 262143; in decodeYUV444SP()
339 rgb[p+1] = (g>>2 & 0xFF00)>>8; in decodeYUV444SP()

1234