Home
last modified time | relevance | path

Searched refs:y1 (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
DLinearGradient.java52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], in LinearGradient() argument
64 mY1 = y1; in LinearGradient()
68 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); in LinearGradient()
69 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions, in LinearGradient()
82 public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, in LinearGradient() argument
88 mY1 = y1; in LinearGradient()
92 native_instance = nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt); in LinearGradient()
93 native_shader = nativePostCreate2(native_instance, x0, y0, x1, y1, color0, color1, in LinearGradient()
119 private native int nativeCreate1(float x0, float y0, float x1, float y1, in nativeCreate1() argument
121 private native int nativeCreate2(float x0, float y0, float x1, float y1, in nativeCreate2() argument
[all …]
DPath.java364 public void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument
366 native_quadTo(mNativePath, x1, y1, x2, y2); in quadTo()
400 public void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument
403 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in cubicTo()
411 public void rCubicTo(float x1, float y1, float x2, float y2, in rCubicTo() argument
414 native_rCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in rCubicTo()
721 private static native void native_quadTo(int nPath, float x1, float y1, in native_quadTo() argument
725 private static native void native_cubicTo(int nPath, float x1, float y1, in native_cubicTo() argument
727 private static native void native_rCubicTo(int nPath, float x1, float y1, in native_rCubicTo() argument
/frameworks/base/libs/hwui/
DPatch.cpp122 float y1 = 0.0f; in createMesh() local
133 y2 = y1 + floorf(segment * stretchY + 0.5f); in createMesh()
135 y2 = y1 + segment * rescaleY; in createMesh()
138 float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1)); in createMesh()
143 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX, in createMesh()
147 y1 = y2; in createMesh()
155 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, in createMesh()
171 float y1, float y2, float v1, float v2, float stretchX, float rescaleX, in generateRow() argument
195 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); in generateRow()
206 generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount); in generateRow()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dg_pitch.c31 Word16 y1[], /* (i) : filtered adaptive codebook. */ in G_pitch() argument
41 xy = extract_h(Dot_product12_asm(xn, y1, L_subfr, &exp_xy)); in G_pitch()
42 yy = extract_h(Dot_product12_asm(y1, y1, L_subfr, &exp_yy)); in G_pitch()
46 xy = extract_h(Dot_product12(xn, y1, L_subfr, &exp_xy)); in G_pitch()
47 yy = extract_h(Dot_product12(y1, y1, L_subfr, &exp_yy)); in G_pitch()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dget_pred_adv_b_add.cpp867 uint32 x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvancedBy1x1() local
897 y1 = *((uint32*)(prev += 4)); /* a7 a6 a5 a4 */ in GetPredAdvancedBy1x1()
908 y1m = (y1 >> 2) & mask; /* zero out last 2 bits */ in GetPredAdvancedBy1x1()
910 y1 = y1 ^(y1m << 2); in GetPredAdvancedBy1x1()
913 y1 += y2; in GetPredAdvancedBy1x1()
936 y2 |= (y1 << 24); in GetPredAdvancedBy1x1()
945 y2 = y1 >> 8; in GetPredAdvancedBy1x1()
949 y1 += y2; in GetPredAdvancedBy1x1()
950 y1 += rnd2; in GetPredAdvancedBy1x1()
951 y1 &= (mask << 2); in GetPredAdvancedBy1x1()
[all …]
Dconceal.cpp142 uint8 *y1, *y2, *u1, *u2, *v1, *v2; in CopyVopMB() local
154 y1 = curr->yChan + lumstart; in CopyVopMB()
162 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
163 y1 += width_Y; in CopyVopMB()
165 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
166 y1 += width_Y; in CopyVopMB()
168 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
169 y1 += width_Y; in CopyVopMB()
171 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
172 y1 += width_Y; in CopyVopMB()
/frameworks/av/services/audioflinger/
DAudioResamplerCubic.h43 int32_t a, b, c, y0, y1, y2, y3; member
51 return (((((p->a * x >> 14) + p->b) * x >> 14) + p->c) * x >> 14) + p->y1; in interp()
54 p->y0 = p->y1; in advance()
55 p->y1 = p->y2; in advance()
58 p->a = (3 * (p->y1 - p->y2) - p->y0 + p->y3) >> 1; in advance()
59 p->b = (p->y2 << 1) + p->y0 - (((5 * p->y1 + p->y3)) >> 1); in advance()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java58 float x0, float y0, float x1, float y1, in nativeCreate1() argument
60 LinearGradient_Delegate newDelegate = new LinearGradient_Delegate(x0, y0, x1, y1, in nativeCreate1()
67 float x0, float y0, float x1, float y1, in nativeCreate2() argument
70 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/, in nativeCreate2()
76 int native_shader, float x0, float y0, float x1, float y1, in nativePostCreate1() argument
84 int native_shader, float x0, float y0, float x1, float y1, in nativePostCreate2() argument
105 private LinearGradient_Delegate(float x0, float y0, float x1, float y1, in LinearGradient_Delegate() argument
108 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
125 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], in LinearGradientPaint() argument
131 mDy = y1 - y0; in LinearGradientPaint()
DPath_Delegate.java251 /*package*/ static void native_quadTo(int nPath, float x1, float y1, float x2, float y2) { in native_quadTo() argument
257 pathDelegate.quadTo(x1, y1, x2, y2); in native_quadTo()
271 /*package*/ static void native_cubicTo(int nPath, float x1, float y1, in native_cubicTo() argument
278 pathDelegate.cubicTo(x1, y1, x2, y2, x3, y3); in native_cubicTo()
282 /*package*/ static void native_rCubicTo(int nPath, float x1, float y1, in native_rCubicTo() argument
289 pathDelegate.rCubicTo(x1, y1, x2, y2, x3, y3); in native_rCubicTo()
638 private void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument
639 mPath.quadTo(x1, y1, mLastX = x2, mLastY = y2); in quadTo()
679 private void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument
681 mPath.curveTo(x1, y1, x2, y2, mLastX = x3, mLastY = y3); in cubicTo()
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp154 audio_sample_t y1 = mDelays[0][2]; in process_normal_mono() local
167 acc = mac_coef_sample(a1, y1, acc); in process_normal_mono()
170 y2 = y1; in process_normal_mono()
171 y1 = y0; in process_normal_mono()
178 mDelays[0][2] = y1; in process_normal_mono()
212 audio_sample_t y1 = mDelays[ch][2]; in process_normal_multi() local
220 acc = mac_coef_sample(a1, y1, acc); in process_normal_multi()
223 y2 = y1; in process_normal_multi()
224 y1 = y0; in process_normal_multi()
233 mDelays[ch][2] = y1; in process_normal_multi()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmotion_comp.cpp1126 ULong x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvBy1x1() local
1153 y1 = *((ULong*)(prev += 4)); /* a7 a6 a5 a4 */ in GetPredAdvBy1x1()
1164 y1m = (y1 >> 2) & mask; /* zero out last 2 bits */ in GetPredAdvBy1x1()
1166 y1 = y1 ^(y1m << 2); in GetPredAdvBy1x1()
1169 y1 += y2; in GetPredAdvBy1x1()
1192 y2 |= (y1 << 24); in GetPredAdvBy1x1()
1201 y2 = y1 >> 8; in GetPredAdvBy1x1()
1205 y1 += y2; in GetPredAdvBy1x1()
1206 y1 += rnd2; in GetPredAdvBy1x1()
1207 y1 &= (mask << 2); in GetPredAdvBy1x1()
[all …]
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dip2_convolve3x3.rs28 uint32_t y1 = min((int32_t)y+1, gHeight-1);
31 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1));
32 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, x, y1));
33 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y1));
Dconvolve5x5.fs33 uint32_t y1 = max((int32_t)y-1, 0);
44 float4 p1 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5]
45 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6]
46 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7]
47 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8]
48 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9];
Dgrain.fs46 uint32_t y1 = (y-1) & gHMask;
49 uint p00 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y1);
50 uint p01 = 114 * rsGetElementAt_uchar(gBlendSource, x, y1);
51 uint p02 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y1);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dconvolve5x5.fs33 uint32_t y1 = max((int32_t)y-1, 0);
44 float4 p1 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5]
45 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6]
46 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7]
47 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8]
48 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9];
Dconvolve3x3.fs28 uint32_t y1 = min((int32_t)y+1, gHeight-1);
31 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1));
32 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, x, y1));
33 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y1));
Dgrain.fs46 uint32_t y1 = (y-1) & gHMask;
49 uint p00 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y1);
50 uint p01 = 114 * rsGetElementAt_uchar(gBlendSource, x, y1);
51 uint p02 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y1);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dconvolve5x5.fs33 uint32_t y1 = max((int32_t)y-1, 0);
44 float4 p1 = convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5]
45 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6]
46 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7]
47 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8]
48 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9];
Dconvolve3x3.fs28 uint32_t y1 = min((int32_t)y+1, gHeight-1);
33 float4 p00 = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1));
34 float4 p01 = convert_float4(rsGetElementAt_uchar4(gIn, x, y1));
35 float4 p02 = convert_float4(rsGetElementAt_uchar4(gIn, x2, y1));
Dgrain.fs46 uint32_t y1 = (y-1) & gHMask;
49 uint p00 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y1);
50 uint p01 = 114 * rsGetElementAt_uchar(gBlendSource, x, y1);
51 uint p02 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y1);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dg_pitch.cpp301 Word16 y1[], /* i : Filtered adaptive codebook. Q12 */ in G_pitch() argument
319 Word16 *p_y1 = &y1[0]; in G_pitch()
350 p_y1 = &y1[0]; in G_pitch()
372 p_y1 = &y1[0]; in G_pitch()
404 p_y1 = &y1[0]; in G_pitch()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp155 signed y1 = (signed)src_ptr[2 * x + 1] - 16; in convertCbYCrY() local
165 signed tmp1 = y1 * 298; in convertCbYCrY()
242 signed y1 = (signed)src_y[x] - 16; in convertYUV420Planar() local
253 signed tmp1 = y1 * 298; in convertYUV420Planar()
315 signed y1 = (signed)src_y[x] - 16; in convertQCOMYUV420SemiPlanar() local
326 signed tmp1 = y1 * 298; in convertQCOMYUV420SemiPlanar()
389 signed y1 = (signed)src_y[x] - 16; in convertYUV420SemiPlanar() local
400 signed tmp1 = y1 * 298; in convertYUV420SemiPlanar()
459 signed y1 = (signed)src_y[x] - 16; in convertTIYUV420PackedSemiPlanar() local
470 signed tmp1 = y1 * 298; in convertTIYUV420PackedSemiPlanar()
/frameworks/base/services/java/com/android/server/power/
DWirelessChargerDetector.java312 private static boolean hasMoved(float x1, float y1, float z1, in hasMoved() argument
314 final double dotProduct = (x1 * x2) + (y1 * y2) + (z1 * z2); in hasMoved()
315 final double mag1 = Math.sqrt((x1 * x1) + (y1 * y1) + (z1 * z1)); in hasMoved()
327 + ", x1=" + x1 + ", y1=" + y1 + ", z1=" + z1 in hasMoved()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicConvolve3x3.cpp87 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, const void *y1,
198 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); in kernelU4() local
202 const uchar4 *py2 = (const uchar4 *)(pin + stride * y1); in kernelU4()
245 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); in kernelU2() local
249 const uchar2 *py2 = (const uchar2 *)(pin + stride * y1); in kernelU2()
290 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); in kernelU1() local
294 const uchar *py2 = (const uchar *)(pin + stride * y1); in kernelU1()
335 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); in kernelF4() local
339 const float4 *py2 = (const float4 *)(pin + stride * y1); in kernelF4()
380 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); in kernelF2() local
[all …]
/frameworks/base/core/java/android/util/
DMathUtils.java94 public static float dist(float x1, float y1, float x2, float y2) { in dist() argument
96 final float y = (y2 - y1); in dist()
100 public static float dist(float x1, float y1, float z1, float x2, float y2, float z2) { in dist() argument
102 final float y = (y2 - y1); in dist()

123