Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 184) sorted by relevance

12345678

/development/perftests/panorama/feature_mos/src/mosaic/
DtrsMatrix.cpp24 void mult33d(double a[3][3], double b[3][3], double c[3][3]) in mult33d()
26 a[0][0] = b[0][0]*c[0][0] + b[0][1]*c[1][0] + b[0][2]*c[2][0]; in mult33d()
27 a[0][1] = b[0][0]*c[0][1] + b[0][1]*c[1][1] + b[0][2]*c[2][1]; in mult33d()
28 a[0][2] = b[0][0]*c[0][2] + b[0][1]*c[1][2] + b[0][2]*c[2][2]; in mult33d()
29 a[1][0] = b[1][0]*c[0][0] + b[1][1]*c[1][0] + b[1][2]*c[2][0]; in mult33d()
30 a[1][1] = b[1][0]*c[0][1] + b[1][1]*c[1][1] + b[1][2]*c[2][1]; in mult33d()
31 a[1][2] = b[1][0]*c[0][2] + b[1][1]*c[1][2] + b[1][2]*c[2][2]; in mult33d()
32 a[2][0] = b[2][0]*c[0][0] + b[2][1]*c[1][0] + b[2][2]*c[2][0]; in mult33d()
33 a[2][1] = b[2][0]*c[0][1] + b[2][1]*c[1][1] + b[2][2]*c[2][1]; in mult33d()
34 a[2][2] = b[2][0]*c[0][2] + b[2][1]*c[1][2] + b[2][2]*c[2][2]; in mult33d()
DImageUtils.cpp30 int r,g,b, a; in rgba2yvu() local
40 b = (*image++); in rgba2yvu()
47 if (b < 0) b = 0; in rgba2yvu()
48 if (b > 255) b = 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
85 b = (*image++); in rgb2yvu()
91 if (b < 0) b = 0; in rgb2yvu()
[all …]
/development/ndk/sources/android/ndk_helper/
Dinterpolator.cpp95 float b = start_value_; in Update() local
97 p = GetFormula( type_, t, b, d, c ); in Update()
106 const float b, in GetFormula() argument
115 return (c * t / d + b); in GetFormula()
120 return (c * t1 * t1 + b); in GetFormula()
125 return (-c * t1 * (t1 - 2) + b); in GetFormula()
131 return (c / 2 * t1 * t1 + b); in GetFormula()
135 return (-c / 2 * (t1 * (t1 - 2) - 1) + b); in GetFormula()
140 return (c * t1 * t1 * t1 + b); in GetFormula()
145 return (c * (t1 * t1 * t1 + 1) + b); in GetFormula()
[all …]
/development/ndk/platforms/android-3/include/sys/
Dtime.h51 #define timercmp(a, b, op) \ argument
52 ((a)->tv_sec == (b)->tv_sec \
53 ? (a)->tv_usec op (b)->tv_usec \
54 : (a)->tv_sec op (b)->tv_sec)
56 #define timeradd(a, b, res) \ argument
58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
66 #define timersub(a, b, res) \ argument
68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
/development/ndk/platforms/android-L/include/sys/
Dtime.h51 #define timercmp(a, b, op) \ argument
52 ((a)->tv_sec == (b)->tv_sec \
53 ? (a)->tv_usec op (b)->tv_usec \
54 : (a)->tv_sec op (b)->tv_sec)
56 #define timeradd(a, b, res) \ argument
58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
66 #define timersub(a, b, res) \ argument
68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
Dparam.h45 #define MIN(a,b) (((a)<(b))?(a):(b)) argument
46 #define MAX(a,b) (((a)>(b))?(a):(b)) argument
/development/perftests/panorama/feature_stab/db_vlvm/
Ddb_utilities_poly.h39 inline void db_SolveQuadratic(double *roots,int *nr_roots,double a,double b,double c) in db_SolveQuadratic() argument
47 if(b==0.0) *nr_roots=0; in db_SolveQuadratic()
50 roots[0]= -c/b; in db_SolveQuadratic()
56 rs=b*b-4.0*a*c; in db_SolveQuadratic()
61 q= -0.5*(b+db_sign(b)*srs); in db_SolveQuadratic()
79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d);
84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double …
89 DB_API void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,d…
96 inline void db_MultiplyPoly1_1(double *d,const double *a,const double *b) in db_MultiplyPoly1_1() argument
101 b0=b[0];b1=b[1]; in db_MultiplyPoly1_1()
[all …]
Ddb_utilities.h102 inline double db_maxd(double a,double b) in db_maxd() argument
104 if(b>a) return(b); in db_maxd()
110 inline double db_mind(double a,double b) in db_mind() argument
112 if(b<a) return(b); in db_mind()
120 inline int db_maxi(int a,int b) in db_maxi() argument
122 if(b>a) return(b); in db_maxi()
129 inline int db_mini(int a,int b) in db_mini() argument
131 if(b<a) return(b); in db_mini()
137 inline long db_maxl(long a,long b) in db_maxl() argument
139 if(b>a) return(b); in db_maxl()
[all …]
Ddb_utilities_poly.cpp28 void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d) in db_SolveCubic() argument
40 if(a==0.0) db_SolveQuadratic(roots,nr_roots,b,c,d); in db_SolveCubic()
43 bp=b/a; in db_SolveCubic()
94 void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuartic() argument
111 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuartic()
114 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuartic()
121 c3=b/a; in db_SolveQuartic()
166 void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuarticForced() argument
183 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuarticForced()
186 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuarticForced()
[all …]
/development/ndk/platforms/android-L/include/linux/
Duuid.h25 __u8 b[16]; member
29 __u8 b[16]; member
31 …E(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) ((uuid_le) {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> … argument
32 …, b, c, d0, d1, d2, d3, d4, d5, d6, d7) ((uuid_be) {{ ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((… argument
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java170 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap() local
171 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap()
173 c.drawBitmap(b, 0, 0, null); in loadBitmap()
174 b.recycle(); in loadBitmap()
186 float b = (float)((mInPixels[i] >> 16) & 0xff); in filter() local
188 float tr = r * m[0] + g * m[3] + b * m[6]; in filter()
189 float tg = r * m[1] + g * m[4] + b * m[7]; in filter()
190 float tb = r * m[2] + g * m[5] + b * m[8]; in filter()
193 b = tb; in filter()
199 if (b < 0.f) b = 0.f; in filter()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapPixels.java53 private static int pack8888(int r, int g, int b, int a) { in pack8888() argument
54 return (r << 0) | ( g << 8) | (b << 16) | (a << 24); in pack8888()
57 private static short pack565(int r, int g, int b) { in pack565() argument
58 return (short)((r << 11) | ( g << 5) | (b << 0)); in pack565()
61 private static short pack4444(int r, int g, int b, int a) { in pack4444() argument
62 return (short)((a << 0) | ( b << 4) | (g << 8) | (r << 12)); in pack4444()
76 int b = Color.blue(c); in premultiplyColor() local
81 b = mul255(b, a); in premultiplyColor()
83 return pack8888(r, g, b, a); in premultiplyColor()
91 int b = getB32(from) << 23; in makeRamp() local
[all …]
/development/ndk/platforms/android-L/include/
Dstrings.h49 #define bzero(b, len) \ argument
50 (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
53 #define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
/development/ndk/platforms/android-3/include/linux/
Djiffies.h64 #define time_after(a,b) (typecheck(unsigned long, a) && typecheck(unsigned long, b) && ((long… argument
65 #define time_before(a,b) time_after(b,a) argument
66 #define time_after_eq(a,b) (typecheck(unsigned long, a) && typecheck(unsigned long, b) && ((l… argument
67 #define time_before_eq(a,b) time_after_eq(b,a) argument
/development/ndk/platforms/android-9/arch-x86/include/asm/
Dbyteorder.h40 struct { __u32 a,b; } s; in ___arch__swab64() member
46 v.s.b = ___arch__swab32(v.s.b); in ___arch__swab64()
47 __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b)); in ___arch__swab64()
Ddesc_32.h64 #define write_ldt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
65 #define write_gdt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
66 #define write_idt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java355 Bundle b = new Bundle();
358 b.putParcelable("gv_super_state", s);
360 b.putBoolean("gv_en", isEnabled());
366 b.putIntArray("gv_data", data);
368 b.putInt("gv_sel_cell", mSelectedCell);
369 b.putInt("gv_sel_val", mSelectedValue.getValue());
370 b.putInt("gv_curr_play", mCurrentPlayer.getValue());
371 b.putInt("gv_winner", mWinner.getValue());
373 b.putInt("gv_win_col", mWinCol);
374 b.putInt("gv_win_row", mWinRow);
[all …]
/development/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java93 Bitmap b = mText.getDrawingCache(); in run() local
94 savedBitmaps.put(thisLocale, b.copy(Bitmap.Config.ARGB_8888, false)); in run()
162 Button b = (Button) findViewById(R.id.go); in onCreate() local
163 b.setOnClickListener(new View.OnClickListener() { in onCreate()
189 private void saveBitmap(Bitmap b, String filename) {
192 b.compress(Bitmap.CompressFormat.PNG, 100, fos);
199 private int colorFor(byte b) {
200 return 0xff000000 | (b<<16) | (b<<8) | b;
203 private int colorFor(int b) {
204 return 0xff000000 | (b<<16) | (b<<8) | b;
[all …]
/development/ndk/platforms/android-3/header-patches/
Dheaders.patch1 diff -Naur a/include/asm/a.out.h b/include/asm/a.out.h
3 +++ b/include/asm/a.out.h 2013-09-06 14:13:28.366275000 +0800
13 diff -Naur a/include/asm/byteorder.h b/include/asm/byteorder.h
15 +++ b/include/asm/byteorder.h 2013-08-30 17:41:09.234265000 +0800
29 diff -Naur a/include/asm/stat.h b/include/asm/stat.h
31 +++ b/include/asm/stat.h 2013-08-30 17:41:09.431302000 +0800
56 diff -Naur a/include/asm/types.h b/include/asm/types.h
58 +++ b/include/asm/types.h 2013-08-30 17:41:09.467274000 +0800
68 diff -Naur a/include/asm/unaligned.h b/include/asm/unaligned.h
70 +++ b/include/asm/unaligned.h 2013-08-30 17:41:09.500316000 +0800
[all …]
/development/tools/yuv420sp2rgb/
Ddebug.c7 int dump_hex_buffer(FILE *s, void *b, size_t len, size_t elsize) { in dump_hex_buffer() argument
10 char *pchr = (char *)b; in dump_hex_buffer()
12 fprintf(s, "%p: ", b); in dump_hex_buffer()
31 fprintf(s, " (%d)\n%p: ", i, b); in dump_hex_buffer()
Dyuv420sp2rgb.c13 #define max(a,b) ({typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; }) argument
14 #define min(a,b) ({typeof(a) _a = (a); typeof(b) _b = (b); _a < _b ? _a : _b; }) argument
45 unsigned char b,
122 unsigned char b, in rgb16_cb() argument
126 *(rgb16 + ctx->i * ctx->width + ctx->j) = b | (g << 5) | (r << 11); in rgb16_cb()
132 unsigned char b, in common_rgb_cb() argument
170 out[i] = b; in common_rgb_cb()
176 unsigned char b, in rgb24_cb() argument
179 return common_rgb_cb(r,g,b,ctx,0); in rgb24_cb()
185 unsigned char b, in argb_cb() argument
[all …]
/development/perftests/panorama/feature_stab/src/dbreg/
Dvp_motionmodel.h244 #define VP_PRINT_TRANS(msg,b) do { \ argument
248 MXX(b),MXY(b),MXZ(b),MXW(b), \
249 MYX(b),MYY(b),MYZ(b),MYW(b), \
250 MZX(b),MZY(b),MZZ(b),MZW(b), \
251 MWX(b),MWY(b),MWZ(b),MWW(b)); \
/development/ide/xcode/ports/
DSkBitmap_Mac.cpp33 unsigned b = SkPacked16ToB32(c); in convert565_to_32() local
35 *dst++ = (b << 24) | (g << 16) | (r << 8) | 0xFF; in convert565_to_32()
50 unsigned b = SkGetPackedB4444(c); in convert4444_to_555() local
54 b = (b << 1) | (b >> 3); in convert4444_to_555()
56 c = (r << 10) | (g << 5) | b; in convert4444_to_555()
/development/ide/xcode/jpeg.xcodeproj/
Dproject.pbxproj64 …nownFileType = sourcecode.c.h; name = jerror.h; path = "../../extlibs/jpeg-6b/jerror.h"; sourceTre…
66 …ownFileType = sourcecode.c.h; name = jconfig.h; path = "../../extlibs/jpeg-6b/jconfig.h"; sourceTr…
67 …ownFileType = sourcecode.c.h; name = jpeglib.h; path = "../../extlibs/jpeg-6b/jpeglib.h"; sourceTr…
68 …wnFileType = sourcecode.c.c; name = jcapimin.c; path = "../../extlibs/jpeg-6b/jcapimin.c"; sourceT…
69 …wnFileType = sourcecode.c.c; name = jcapistd.c; path = "../../extlibs/jpeg-6b/jcapistd.c"; sourceT…
70 …wnFileType = sourcecode.c.c; name = jccoefct.c; path = "../../extlibs/jpeg-6b/jccoefct.c"; sourceT…
71 …ownFileType = sourcecode.c.c; name = jccolor.c; path = "../../extlibs/jpeg-6b/jccolor.c"; sourceTr…
72 …wnFileType = sourcecode.c.c; name = jcdctmgr.c; path = "../../extlibs/jpeg-6b/jcdctmgr.c"; sourceT…
73 …nownFileType = sourcecode.c.c; name = jchuff.c; path = "../../extlibs/jpeg-6b/jchuff.c"; sourceTre…
74 …nownFileType = sourcecode.c.c; name = jcinit.c; path = "../../extlibs/jpeg-6b/jcinit.c"; sourceTre…
[all …]
/development/samples/browseable/HdrViewfinder/src/rs/
Dhdr_merge.rs34 curPixel.b = rsGetElementAtYuv_uchar_V(gCurrentFrame, x, y);
66 mergedPixel.b * 1436 / 1024 - 179;
69 mergedPixel.b * 93604 / 131072 + 91;
70 rgb.b = mergedPixel.r +

12345678