Home
last modified time | relevance | path

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

12345678910>>...18

/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);
/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 …]
/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/rs/java/tests/RsTest/src/com/android/rs/test/
Dfp16.rs43 _RS_ASSERT_EQU(x.g, y.g);
44 if (x.r != y.r || x.g != y.g) {
45 rsDebug("Different half vectors v1: ", x.r, x.g);
46 rsDebug(" v2: ", y.r, y.g);
52 _RS_ASSERT_EQU(x.g, y.g);
54 if (x.r != y.r || x.g != y.g || x.b != y.b) {
55 rsDebug("Different half vectors v1: ", x.r, x.g, x.b);
56 rsDebug(" v2: ", y.r, y.g, y.b);
62 _RS_ASSERT_EQU(x.g, y.g);
65 if (x.r != y.r || x.g != y.g || x.b != y.b || x.a != y.a) {
[all …]
/frameworks/native/services/sensorservice/
DOrientationSensor.cpp52 vec3_t g; in process() local
55 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in process()
56 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in process()
57 g[2] = asinf ( R[2][0]) * rad2deg; in process()
58 if (g[0] < 0) in process()
59 g[0] += 360; in process()
62 outEvent->orientation.azimuth = g.x; in process()
63 outEvent->orientation.pitch = g.y; in process()
64 outEvent->orientation.roll = g.z; in process()
DGravitySensor.cpp58 vec3_t g; in process() local
65 g = R[2] * GRAVITY_EARTH; in process()
68 outEvent->data[0] = g.x; in process()
69 outEvent->data[1] = g.y; in process()
70 outEvent->data[2] = g.z; in process()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcolorspace.cpp115 int r, g, b, a, h, s, v, c_max, c_min; in JNI_COLORSPACE_METHOD() local
121 g = color_in.channel[kGreen]; in JNI_COLORSPACE_METHOD()
125 if (r > g) { in JNI_COLORSPACE_METHOD()
126 c_min = (g > b) ? b : g; in JNI_COLORSPACE_METHOD()
130 c_max = (g > b) ? g : b; in JNI_COLORSPACE_METHOD()
136 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) : in JNI_COLORSPACE_METHOD()
137 static_cast<int>(scaler * ((g - b) / delta + 6)); in JNI_COLORSPACE_METHOD()
138 } else if (c_max == g) { in JNI_COLORSPACE_METHOD()
141 h = static_cast<int>(scaler * ((r - g) / delta + 4)); in JNI_COLORSPACE_METHOD()
158 int r, g, b; in JNI_COLORSPACE_METHOD() local
[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/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/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/support/v4/java/android/support/v4/graphics/
DColorUtils.java54 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors() local
59 return Color.argb(a, r, g, b); in compositeColors()
171 @IntRange(from = 0x0, to = 0xFF) int g, @IntRange(from = 0x0, to = 0xFF) int b, in RGBToHSL()
174 final float gf = g / 255f; in RGBToHSL()
248 int r = 0, g = 0, b = 0; in HSLToColor() local
253 g = Math.round(255 * (x + m)); in HSLToColor()
258 g = Math.round(255 * (c + m)); in HSLToColor()
263 g = Math.round(255 * (c + m)); in HSLToColor()
268 g = Math.round(255 * (x + m)); in HSLToColor()
273 g = Math.round(255 * m); in HSLToColor()
[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/base/libs/hwui/
DFloatColor.h31 g = a * ((color >> 8) & 0xff) / 255.0f; in set()
38 || g > 0.0f in isNotBlack()
44 && MathUtils::areEqual(g, other.g)
54 float g; member
/frameworks/base/docs/html-intl/intl/vi/guide/components/
Dbound-services.jd14 <li><a href="#Binder">Mở rộng lớp Trình gắn kết</a></li>
44 <p>Dịch vụ gắn kết là máy chủ trong một giao diện máy khách-máy chủ. Dịch vụ gắn kết cho phép các t…
45 (chẳng hạn như các hoạt động) gắn kết với dịch vụ, gửi yêu cầu, nhận phản hồi, và thậm chí thực hiện
46 truyền thông liên tiến trình (IPC). Dịch vụ gắn kết thường chỉ hoạt động khi nó phục vụ một thành p…
49 <p>Tài liệu này cho bạn biết cách tạo một dịch vụ gắn kết, bao gồm cách gắn kết
51 về các dịch vụ nói chung, chẳng hạn như cách gửi thông báo từ một dịch vụ, đặt
57 <p>Dịch vụ gắn kết là một sự triển khai lớp {@link android.app.Service} cho phép
58 các ứng dụng khác gắn kết và tương tác với nó. Để thực hiện gắn kết cho một
59 dịch vụ, bạn phải triển khai phương pháp gọi lại {@link android.app.Service#onBind onBind()}. Phươn…
68 , bạn có thể tạo một dịch vụ được bắt đầu và gắn kết. Cụ thể, dịch vụ có thể được
[all …]
/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/Refocus/src/com/android/rs/test/
Dlayered_filter_fast_d1new.rs98 sharp_RGBA.g =
99 ApplyLUT_Float(in.g * g_kOneOver255, g_camera_response.lut_remove_crf_float);
356 float4 this_value = {weight * sharp_RGBA.r, weight * sharp_RGBA.g,
387 float4 this_value = {weight * sharp_RGBA.r, weight * sharp_RGBA.g,
517 fuzzy_RGBA.g += factor * result.g;
570 fuzzy_RGBA.g += factor * result.g;
619 sharp_RGBA.g += factor * (fuzzy_RGBA.g - sharp_RGBA.g);
622 fuzzy_RGBA.g = 0;
666 sharp_RGBA.g += factor * (fuzzy_RGBA.g - sharp_RGBA.g);
669 fuzzy_RGBA.g = 0;
[all …]
/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>>...18