Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DCrossProcess.java41 float g = f; in createTest() local
42 if (g < 0.5f) { in createTest()
43 g = 2.0f * g * g; in createTest()
45 g = 1.0f - g; in createTest()
46 g = 1.0f - (2.0f * g * g); in createTest()
48 mIntrinsic.setGreen(ct, (int)(g * 255.f + 0.5f)); in createTest()
Dwbalance.rs31 int g = hv.g;
34 sum_g += g;
41 if (g>0){
58 int g = hv.g;
61 tmp_g += g;
69 sum15g += g*i;
70 count15g += g;
83 out.g = sum15g/count15g;
86 out.r = out.g = out.b = 255;
95 int minimum = min(estimation.r, min(estimation.g, estimation.b));
[all …]
Dbwfilter.rs43 float g = in->g * sg;
46 localMin = fmin(g,b);
48 localMax = fmax(g,b);
51 out->r = out->g = out->b = rsClamp(avg, 0, 255);
Dvibrance.rs30 int g = in.g;
32 float red = (r-max(g, b)) * (1.f / 256.f);
40 float G = g;
49 o.g = rsClamp(Gc, 0, 255);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DCrossProcess.java44 float g = f; in createTest() local
45 if (g < 0.5f) { in createTest()
46 g = 2.0f * g * g; in createTest()
48 g = 1.0f - g; in createTest()
49 g = 1.0f - (2.0f * g * g); in createTest()
51 mIntrinsic.setGreen(ct, (int)(g * 255.f + 0.5f)); in createTest()
Dwbalance.rs31 int g = hv.g;
34 sum_g += g;
41 if (g>0){
58 int g = hv.g;
61 tmp_g += g;
69 sum15g += g*i;
70 count15g += g;
83 out.g = sum15g/count15g;
86 out.r = out.g = out.b = 255;
95 int minimum = min(estimation.r, min(estimation.g, estimation.b));
[all …]
Dbwfilter.rs43 float g = in->g * sg;
46 localMin = fmin(g,b);
48 localMax = fmax(g,b);
51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DCrossProcess.java44 float g = f; in createTest() local
45 if (g < 0.5f) { in createTest()
46 g = 2.0f * g * g; in createTest()
48 g = 1.0f - g; in createTest()
49 g = 1.0f - (2.0f * g * g); in createTest()
51 mIntrinsic.setGreen(ct, (int)(g * 255.f + 0.5f)); in createTest()
Dwbalance.rs31 int g = hv.g;
34 sum_g += g;
41 if (g>0){
58 int g = hv.g;
61 tmp_g += g;
69 sum15g += g*i;
70 count15g += g;
83 out.g = sum15g/count15g;
86 out.r = out.g = out.b = 255;
95 int minimum = min(estimation.r, min(estimation.g, estimation.b));
[all …]
Dbwfilter.rs43 float g = in->g * sg;
46 localMin = fmin(g,b);
48 localMax = fmax(g,b);
51 out->r = out->g = out->b = clamp((int) avg, 0, 255);
Dvibrance.rs30 int g = in.g;
32 float red = (r-max(g, b)) * (1.f / 256.f);
40 float G = g;
49 o.g = clamp((int) Gc, 0, 255);
/frameworks/av/media/libstagefright/filters/
DColorConvert.cpp30 int32_t* r, int32_t* g, int32_t* b) { in YUVToRGB() argument
36 *g = 1192 * y - 833 * v - 400 * u; in YUVToRGB()
40 *g = min(262143, max(0, *g)); in YUVToRGB()
44 *g >>= 10; in YUVToRGB()
59 int32_t r, g, b; in convertYUV420spToARGB() local
60 YUVToRGB(y, u, v, &r, &g, &b); in convertYUV420spToARGB()
64 *dest++ = g; in convertYUV420spToARGB()
81 int32_t r, g, b; in convertYUV420spToRGB888() local
82 YUVToRGB(y, u, v, &r, &g, &b); in convertYUV420spToRGB888()
85 *dest++ = g; in convertYUV420spToRGB888()
[all …]
/frameworks/native/services/sensorservice/
DOrientationSensor.cpp46 vec3_t g; in process() local
49 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in process()
50 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in process()
51 g[2] = asinf ( R[2][0]) * rad2deg; in process()
52 if (g[0] < 0) in process()
53 g[0] += 360; in process()
56 outEvent->orientation.azimuth = g.x; in process()
57 outEvent->orientation.pitch = g.y; in process()
58 outEvent->orientation.roll = g.z; in process()
DGravitySensor.cpp49 vec3_t g; in process() local
56 g = R[2] * GRAVITY_EARTH; in process()
59 outEvent->data[0] = g.x; in process()
60 outEvent->data[1] = g.y; in process()
61 outEvent->data[2] = g.z; in process()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcolorspace.cpp118 int r, g, b, a, h, s, v, c_max, c_min; in JNI_COLORSPACE_METHOD() local
124 g = color_in.channel[kGreen]; in JNI_COLORSPACE_METHOD()
128 if (r > g) { in JNI_COLORSPACE_METHOD()
129 c_min = (g > b) ? b : g; in JNI_COLORSPACE_METHOD()
133 c_max = (g > b) ? g : b; in JNI_COLORSPACE_METHOD()
139 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) : in JNI_COLORSPACE_METHOD()
140 static_cast<int>(scaler * ((g - b) / delta + 6)); in JNI_COLORSPACE_METHOD()
141 } else if (c_max == g) { in JNI_COLORSPACE_METHOD()
144 h = static_cast<int>(scaler * ((r - g) / delta + 4)); in JNI_COLORSPACE_METHOD()
161 int r, g, b; in JNI_COLORSPACE_METHOD() local
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/api/
DarmCOMM.h576 …define DEBUG_PRINTF_6(a, b, c, d, e, f, g) fprintf(DEBUG_STREAM, a, b,… argument
577 …define DEBUG_PRINTF_7(a, b, c, d, e, f, g, h) fprintf(DEBUG_STREAM, a, b,… argument
578 …define DEBUG_PRINTF_8(a, b, c, d, e, f, g, h, i) fprintf(DEBUG_STREAM, a, b,… argument
579 …define DEBUG_PRINTF_9(a, b, c, d, e, f, g, h, i, j) fprintf(DEBUG_STREAM, a, b,… argument
580 …define DEBUG_PRINTF_10(a, b, c, d, e, f, g, h, i, j, k) fprintf(DEBUG_STREAM, a, b,… argument
581 …define DEBUG_PRINTF_11(a, b, c, d, e, f, g, h, i, j, k, l) fprintf(DEBUG_STREAM, a, b,… argument
582 …define DEBUG_PRINTF_12(a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(DEBUG_STREAM, a, b,… argument
583 …define DEBUG_PRINTF_13(a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(DEBUG_STREAM, a, b,… argument
584 …define DEBUG_PRINTF_14(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) fprintf(DEBUG_STREAM, a, b,… argument
592 #define DEBUG_PRINTF_6(a, b, c, d, e, f, g) argument
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/api/
DarmCOMM.h576 …define DEBUG_PRINTF_6(a, b, c, d, e, f, g) fprintf(DEBUG_STREAM, a, b,… argument
577 …define DEBUG_PRINTF_7(a, b, c, d, e, f, g, h) fprintf(DEBUG_STREAM, a, b,… argument
578 …define DEBUG_PRINTF_8(a, b, c, d, e, f, g, h, i) fprintf(DEBUG_STREAM, a, b,… argument
579 …define DEBUG_PRINTF_9(a, b, c, d, e, f, g, h, i, j) fprintf(DEBUG_STREAM, a, b,… argument
580 …define DEBUG_PRINTF_10(a, b, c, d, e, f, g, h, i, j, k) fprintf(DEBUG_STREAM, a, b,… argument
581 …define DEBUG_PRINTF_11(a, b, c, d, e, f, g, h, i, j, k, l) fprintf(DEBUG_STREAM, a, b,… argument
582 …define DEBUG_PRINTF_12(a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(DEBUG_STREAM, a, b,… argument
583 …define DEBUG_PRINTF_13(a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(DEBUG_STREAM, a, b,… argument
584 …define DEBUG_PRINTF_14(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) fprintf(DEBUG_STREAM, a, b,… argument
592 #define DEBUG_PRINTF_6(a, b, c, d, e, f, g) argument
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/
DarmCOMM.h576 …define DEBUG_PRINTF_6(a, b, c, d, e, f, g) fprintf(DEBUG_STREAM, a, b,… argument
577 …define DEBUG_PRINTF_7(a, b, c, d, e, f, g, h) fprintf(DEBUG_STREAM, a, b,… argument
578 …define DEBUG_PRINTF_8(a, b, c, d, e, f, g, h, i) fprintf(DEBUG_STREAM, a, b,… argument
579 …define DEBUG_PRINTF_9(a, b, c, d, e, f, g, h, i, j) fprintf(DEBUG_STREAM, a, b,… argument
580 …define DEBUG_PRINTF_10(a, b, c, d, e, f, g, h, i, j, k) fprintf(DEBUG_STREAM, a, b,… argument
581 …define DEBUG_PRINTF_11(a, b, c, d, e, f, g, h, i, j, k, l) fprintf(DEBUG_STREAM, a, b,… argument
582 …define DEBUG_PRINTF_12(a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(DEBUG_STREAM, a, b,… argument
583 …define DEBUG_PRINTF_13(a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(DEBUG_STREAM, a, b,… argument
584 …define DEBUG_PRINTF_14(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) fprintf(DEBUG_STREAM, a, b,… argument
592 #define DEBUG_PRINTF_6(a, b, c, d, e, f, g) argument
[all …]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
Dyuv.rs26 if (color.g < 0.5f) {
27 v = color.g;
28 ncolor.g = 2.0f * v * v;
30 v = 1.0f - color.g;
31 ncolor.g = 1.0f - (2.0f * v * v);
42 ncolor.g = crossProcess_tableG[color.g];
56 color.g = color.g + t.g * 0.25f;
58 float max_value = max(new_color.r, max(new_color.g, new_color.b));
99 crossProcess_tableG[i] = (uchar)(res.g * 255.f);
/frameworks/support/v4/java/android/support/v4/graphics/
DColorUtils.java41 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors() local
46 return Color.argb(a, r, g, b); in compositeColors()
161 public static void RGBToHSL(int r, int g, int b, float[] hsl) {
163 final float gf = g / 255f;
236 int r = 0, g = 0, b = 0;
241 g = Math.round(255 * (x + m));
246 g = Math.round(255 * (c + m));
251 g = Math.round(255 * (c + m));
256 g = Math.round(255 * (x + m));
261 g = Math.round(255 * m);
[all …]
/frameworks/base/libs/hwui/font/
DFontUtil.h45 #define TO_GLYPH(g) g argument
52 glyph_t g = *src++; in nextGlyph() local
54 return g; in nextGlyph()
58 #define TO_GLYPH(g) ((SkUnichar) g) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java677 private void drawOnGraphics(Graphics2D g, Drawable drawable, Paint_Delegate paint, in drawOnGraphics() argument
680 drawable.draw(g, paint); in drawOnGraphics()
683 g.dispose(); in drawOnGraphics()
741 Graphics2D g = (Graphics2D) baseGfx.create(); in restoreLayer() local
742 g.setComposite(AlphaComposite.Src); in restoreLayer()
744 g.drawImage(originalCopy, in restoreLayer()
748 g.dispose(); in restoreLayer()
753 Graphics2D g = createCustomGraphics(baseGfx, mLocalLayerPaint, in restoreLayer() local
756 g.drawImage(mLocalLayer.getImage(), in restoreLayer()
760 g.dispose(); in restoreLayer()
[all …]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
Dfocus_peak.rs27 curPixel.g = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, y);
36 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, dx, y) - curPixel.g;
45 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, dy) - curPixel.g;
60 rgb.g = mergedPixel.r -
61 mergedPixel.g * 46549 / 131072 + 44 -
64 mergedPixel.g * 1814 / 1024 - 227;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DColorFilterCache.java42 final int g = Color.green(color); in getColorFilterCache() local
44 color = Color.rgb(r, g, b); in getColorFilterCache()
47 filters = new ColorFilterCache(r, g, b); in getColorFilterCache()
53 private ColorFilterCache(int r, int g, int b) { in ColorFilterCache() argument
56 int color = Color.argb(i, r, g, b); in ColorFilterCache()
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/
Dvibrance_f.rs30 int g = in.g;
32 float red = (r-max(g, b)) * (1.f / 256.f);
40 float G = g;
49 o.g = Gc;

12345678910>>...15