/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
D | CrossProcess.java | 41 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()
|
D | wbalance.rs | 40 histG[in.g]++; 51 int g = histG[i]; 54 sum_g += g; 61 if (g>0){ 77 int g = histG[i]; 80 tmp_g += g; 88 sum15g += g*i; 89 count15g += g; 102 out.g = sum15g/count15g; 105 out.r = out.g = out.b = 255; [all …]
|
D | vibrance.rs | 37 int g = in->g; 39 float red = (r-max(g, b))/256.f; 46 int t = (r + g) / 2; 48 G = g; 56 out->g = rsClamp(Gc, 0, 255);
|
D | bwfilter.rs | 43 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);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | CrossProcess.java | 44 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()
|
D | wbalance.rs | 38 histG[in.g]++; 49 int g = histG[i]; 52 sum_g += g; 59 if (g>0){ 75 int g = histG[i]; 78 tmp_g += g; 86 sum15g += g*i; 87 count15g += g; 100 out.g = sum15g/count15g; 103 out.r = out.g = out.b = 255; [all …]
|
D | vibrance.rs | 30 int g = in.g; 32 float red = (r-max(g, b)) * (1.f / 256.f); 38 int t = (r + g) >> 1; 41 float G = g; 50 o.g = rsClamp(Gc, 0, 255);
|
D | bwfilter.rs | 43 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);
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
D | CrossProcess.java | 44 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()
|
D | wbalance.rs | 31 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 …]
|
D | vibrance.rs | 30 int g = in.g; 32 float red = (r-max(g, b)) * (1.f / 256.f); 38 int t = (r + g) >> 1; 41 float G = g; 50 o.g = rsClamp(Gc, 0, 255);
|
D | bwfilter.rs | 43 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);
|
/frameworks/native/services/sensorservice/ |
D | OrientationSensor.cpp | 46 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()
|
D | GravitySensor.cpp | 49 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/ |
D | colorspace.cpp | 118 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/arm_neon/api/ |
D | armCOMM.h | 561 …define DEBUG_PRINTF_6(a, b, c, d, e, f, g) fprintf(DEBUG_STREAM, a, b,… argument 562 …define DEBUG_PRINTF_7(a, b, c, d, e, f, g, h) fprintf(DEBUG_STREAM, a, b,… argument 563 …define DEBUG_PRINTF_8(a, b, c, d, e, f, g, h, i) fprintf(DEBUG_STREAM, a, b,… argument 564 …define DEBUG_PRINTF_9(a, b, c, d, e, f, g, h, i, j) fprintf(DEBUG_STREAM, a, b,… argument 565 …define DEBUG_PRINTF_10(a, b, c, d, e, f, g, h, i, j, k) fprintf(DEBUG_STREAM, a, b,… argument 566 …define DEBUG_PRINTF_11(a, b, c, d, e, f, g, h, i, j, k, l) fprintf(DEBUG_STREAM, a, b,… argument 567 …define DEBUG_PRINTF_12(a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(DEBUG_STREAM, a, b,… argument 568 …define DEBUG_PRINTF_13(a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(DEBUG_STREAM, a, b,… argument 569 …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 577 #define DEBUG_PRINTF_6(a, b, c, d, e, f, g) argument [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/api/ |
D | armCOMM.h | 561 …define DEBUG_PRINTF_6(a, b, c, d, e, f, g) fprintf(DEBUG_STREAM, a, b,… argument 562 …define DEBUG_PRINTF_7(a, b, c, d, e, f, g, h) fprintf(DEBUG_STREAM, a, b,… argument 563 …define DEBUG_PRINTF_8(a, b, c, d, e, f, g, h, i) fprintf(DEBUG_STREAM, a, b,… argument 564 …define DEBUG_PRINTF_9(a, b, c, d, e, f, g, h, i, j) fprintf(DEBUG_STREAM, a, b,… argument 565 …define DEBUG_PRINTF_10(a, b, c, d, e, f, g, h, i, j, k) fprintf(DEBUG_STREAM, a, b,… argument 566 …define DEBUG_PRINTF_11(a, b, c, d, e, f, g, h, i, j, k, l) fprintf(DEBUG_STREAM, a, b,… argument 567 …define DEBUG_PRINTF_12(a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(DEBUG_STREAM, a, b,… argument 568 …define DEBUG_PRINTF_13(a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(DEBUG_STREAM, a, b,… argument 569 …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 577 #define DEBUG_PRINTF_6(a, b, c, d, e, f, g) argument [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/api/ |
D | armCOMM.h | 561 …define DEBUG_PRINTF_6(a, b, c, d, e, f, g) fprintf(DEBUG_STREAM, a, b,… argument 562 …define DEBUG_PRINTF_7(a, b, c, d, e, f, g, h) fprintf(DEBUG_STREAM, a, b,… argument 563 …define DEBUG_PRINTF_8(a, b, c, d, e, f, g, h, i) fprintf(DEBUG_STREAM, a, b,… argument 564 …define DEBUG_PRINTF_9(a, b, c, d, e, f, g, h, i, j) fprintf(DEBUG_STREAM, a, b,… argument 565 …define DEBUG_PRINTF_10(a, b, c, d, e, f, g, h, i, j, k) fprintf(DEBUG_STREAM, a, b,… argument 566 …define DEBUG_PRINTF_11(a, b, c, d, e, f, g, h, i, j, k, l) fprintf(DEBUG_STREAM, a, b,… argument 567 …define DEBUG_PRINTF_12(a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(DEBUG_STREAM, a, b,… argument 568 …define DEBUG_PRINTF_13(a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(DEBUG_STREAM, a, b,… argument 569 …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 577 #define DEBUG_PRINTF_6(a, b, c, d, e, f, g) argument [all …]
|
/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
D | ColorUtils.java | 37 float g = (Color.green(fg) * alpha1) + (Color.green(bg) * alpha2 * (1f - alpha1)); in compositeColors() local 40 return Color.argb((int) a, (int) r, (int) g, (int) b); in compositeColors() 148 static void RGBtoHSL(int r, int g, int b, float[] hsl) { 150 final float gf = g / 255f; 191 int r = 0, g = 0, b = 0; 196 g = Math.round(255 * (x + m)); 201 g = Math.round(255 * (c + m)); 206 g = Math.round(255 * (c + m)); 211 g = Math.round(255 * (x + m)); 216 g = Math.round(255 * m); [all …]
|
/frameworks/base/libs/hwui/font/ |
D | FontUtil.h | 42 #define TO_GLYPH(g) g argument 49 glyph_t g = *src++; in nextGlyph() local 51 return g; in nextGlyph() 55 #define TO_GLYPH(g) ((SkUnichar) g) argument
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | yuv.rs | 26 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 651 private void drawOnGraphics(Graphics2D g, Drawable drawable, Paint_Delegate paint, in drawOnGraphics() argument 654 drawable.draw(g, paint); in drawOnGraphics() 657 g.dispose(); in drawOnGraphics() 715 Graphics2D g = (Graphics2D) baseGfx.create(); in restoreLayer() local 716 g.setComposite(AlphaComposite.Src); in restoreLayer() 718 g.drawImage(originalCopy, in restoreLayer() 722 g.dispose(); in restoreLayer() 727 Graphics2D g = createCustomGraphics(baseGfx, mLocalLayerPaint, in restoreLayer() local 730 g.drawImage(mLocalLayer.getImage(), in restoreLayer() 734 g.dispose(); in restoreLayer() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
D | ColorFilterCache.java | 42 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/base/graphics/java/android/graphics/ |
D | Color.java | 120 int g = (color >> 8) & 0xFF; in hue() local 123 int V = Math.max(b, Math.max(r, g)); in hue() 124 int temp = Math.min(b, Math.min(r, g)); in hue() 133 final float cg = (V - g) / vtemp; in hue() 138 } else if (g == V) { in hue() 162 int g = (color >> 8) & 0xFF; in saturation() local 166 int V = Math.max(b, Math.max(r, g)); in saturation() 167 int temp = Math.min(b, Math.min(r, g)); in saturation() 189 int g = (color >> 8) & 0xFF; in brightness() local 192 int V = Math.max(b, Math.max(r, g)); in brightness()
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | quantize.c | 111 Word32 g = (gain >> 2) + 4; in quantizeLines() local 118 g += 16; in quantizeLines() 120 if(g >= 0) in quantizeLines() 134 saShft = sa >> g; in quantizeLines() 181 saShft = sa << g; in quantizeLines() 334 Word32 g = (gain >> 2) + 4; in calcSfbDist() local 335 Word32 g2 = (g << 1) + 1; in calcSfbDist() 343 g += 16; in calcSfbDist() 344 if(g2 < 0 && g >= 0) in calcSfbDist() 356 saShft = sa >> g; in calcSfbDist() [all …]
|