Home
last modified time | relevance | path

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

12345

/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 …]
Ddb_feature_detection.cpp264 inline void db_gxx_gxy_gyy_row_s(int *g,int *d0,int *d1,int *d2,int *d3,int *d4,int nc) in db_gxx_gxy_gyy_row_s() argument
277 mov esi,g in db_gxx_gxy_gyy_row_s()
351 g[c]=d0[c]+(d1[c]<<2)+(dd<<2)+(dd<<1)+(d3[c]<<2)+d4[c]; in db_gxx_gxy_gyy_row_s()
354 g[c+128]=d0[c+128]+(d1[c+128]<<2)+(dd<<2)+(dd<<1)+(d3[c+128]<<2)+d4[c+128]; in db_gxx_gxy_gyy_row_s()
357 g[c+256]=d0[c+256]+(d1[c+256]<<2)+(dd<<2)+(dd<<1)+(d3[c+256]<<2)+d4[c+256]; in db_gxx_gxy_gyy_row_s()
384 inline void db_Filter14641_128_i(int *g,int nc) in db_Filter14641_128_i() argument
393 mov eax,g in db_Filter14641_128_i()
486 g[c]=g[c]+(g[c+1]<<2)+(g[c+2]<<2)+(g[c+2]<<1)+(g[c+3]<<2)+g[c+4]; in db_Filter14641_128_i()
/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.c22 int value(int r, int g, int b) { in value() argument
23 return MAX(r, MAX(g, b)); in value()
28 int g = src[p + 1]; in isRed() local
30 int max = MAX(g, b); in isRed()
46 int g = src[p + 1]; in findPossible() local
49 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible()
106 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument
108 img[off + 1] = g; in stuff()
145 int g = src[p + 1]; in filterRedEye() local
149 int m = MAX(g,b); in filterRedEye()
[all …]
Dwbalance.c44 int g = histG[i]; in estmateWhite() local
47 sum_g += g; in estmateWhite()
54 if (g>0){ in estmateWhite()
70 int g = histG[i]; in estmateWhite() local
73 tmp_g += g; in estmateWhite()
81 sum15g += g*i; in estmateWhite()
82 count15g += g; in estmateWhite()
105 int g = 0; in estmateWhiteBox() local
123 g += src[GREEN]; in estmateWhiteBox()
129 *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()
/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/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/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()
/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/Test/connectivity/PMC/
Dbuild_pmc.sh19 g='\e[0;32m'
26 echo -e "Welcome to ${r}U${brn}N${y}I${g}C${lb}O${cy}R${p}N${NC} build system for ${g}PMC${NC}"
112 echo -e " ${r}U${brn}N${y}I${g}C${cy}O${lb}R${p}N ${r}P${brn}O${y}W${g}E${cy}R${lb}!${p}!${NC}"
/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/Dialer/java/com/android/contacts/common/util/
DMaterialColorMapUtils.java52 int g = (color >> 8) & 0xFF; in hue() local
55 int V = Math.max(b, Math.max(r, g)); in hue()
56 int temp = Math.min(b, Math.min(r, g)); in hue()
65 final float cg = (V - g) / vtemp; in hue()
70 } else if (g == V) { in hue()
/packages/apps/Contacts/src/com/android/contacts/util/
DMaterialColorMapUtils.java151 int g = (color >> 8) & 0xFF; in hue() local
154 int V = Math.max(b, Math.max(r, g)); in hue()
155 int temp = Math.min(b, Math.min(r, g)); in hue()
164 final float cg = (V - g) / vtemp; in hue()
169 } else if (g == V) { in hue()
/packages/apps/ManagedProvisioning/tools/java/com/android/managedprovisioning/tools/anim/
DSwiperThemeGenerator.java41 for (int g = 0; g <= 0xff; g++) { in main()
43 int color = Color.argb(0xff, r, g, b); in main()
/packages/inputmethods/LatinIME/dictionaries/
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
/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()
/packages/services/Car/evs/app/
DEvsVehicleListener.h31 std::lock_guard<std::mutex> g(mLock); in onPropertyEvent()
50 std::unique_lock<std::mutex> g(mLock); in waitForEvents()
51 std::cv_status result = mEventCond.wait_for(g, std::chrono::milliseconds(timeout_ms)); in waitForEvents()

12345