Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/libs/hwui/
DPatch.cpp104 float y2 = 0.0f; in Patch() local
114 y2 = y1 + floorf(segment * stretchY + 0.5f); in Patch()
116 y2 = y1 + segment * rescaleY; in Patch()
119 float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1)); in Patch()
124 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX, in Patch()
128 y1 = y2; in Patch()
135 y2 = height; in Patch()
136 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, in Patch()
148 float y1, float y2, float v1, float v2, float stretchX, float rescaleX, in generateRow() argument
172 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); in generateRow()
[all …]
/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
898 y2 = *((uint32*)(prev + width)); /* b7 b6 b5 b4 */ in GetPredAdvancedBy1x1()
909 y2m = (y2 >> 2) & mask; in GetPredAdvancedBy1x1()
911 y2 = y2 ^(y2m << 2); in GetPredAdvancedBy1x1()
913 y1 += y2; in GetPredAdvancedBy1x1()
918 y2 = *((uint32*)(prev + width)); /* b11 b10 b9 b8 */ in GetPredAdvancedBy1x1()
920 y2m = (y2 >> 2) & mask; in GetPredAdvancedBy1x1()
922 y2 = y2 ^(y2m << 2); in GetPredAdvancedBy1x1()
924 x2 += y2; in GetPredAdvancedBy1x1()
934 y2 = x1 >> 8; in GetPredAdvancedBy1x1()
[all …]
Dconceal.cpp147 uint8 *y1, *y2, *u1, *u2, *v1, *v2; in CopyVopMB() local
162 y2 = prevFrame + lumstart; in CopyVopMB()
167 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
169 y2 += width_Y; in CopyVopMB()
170 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
172 y2 += width_Y; in CopyVopMB()
173 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
175 y2 += width_Y; in CopyVopMB()
176 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
178 y2 += width_Y; in CopyVopMB()
/frameworks/av/services/audioflinger/
DAudioResamplerCubic.h43 int32_t a, b, c, y0, y1, y2, y3; member
55 p->y1 = p->y2; in advance()
56 p->y2 = p->y3; 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()
60 p->c = (p->y2 - p->y0) >> 1; in advance()
/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
1154 y2 = *((ULong*)(prev + lx)); /* b7 b6 b5 b4 */ in GetPredAdvBy1x1()
1165 y2m = (y2 >> 2) & mask; in GetPredAdvBy1x1()
1167 y2 = y2 ^(y2m << 2); in GetPredAdvBy1x1()
1169 y1 += y2; in GetPredAdvBy1x1()
1174 y2 = *((ULong*)(prev + lx)); /* b11 b10 b9 b8 */ in GetPredAdvBy1x1()
1176 y2m = (y2 >> 2) & mask; in GetPredAdvBy1x1()
1178 y2 = y2 ^(y2m << 2); in GetPredAdvBy1x1()
1180 x2 += y2; in GetPredAdvBy1x1()
1190 y2 = x1 >> 8; in GetPredAdvBy1x1()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dq_gain2.c66 Word16 y2[], /* (i) Q9 : Filtered innovative vector. */ in Q_gain2() argument
147 coeff[2] = extract_h(Dot_product12_asm(y2, y2, L_subfr, &exp)); in Q_gain2()
149 coeff[2] = extract_h(Dot_product12(y2, y2, L_subfr, &exp)); in Q_gain2()
155 coeff[3] = extract_h(L_negate(Dot_product12_asm(xn, y2, L_subfr, &exp))); in Q_gain2()
157 coeff[3] = extract_h(L_negate(Dot_product12(xn, y2, L_subfr, &exp))); in Q_gain2()
164 coeff[4] = extract_h(Dot_product12_asm(y1, y2, L_subfr, &exp)); in Q_gain2()
166 coeff[4] = extract_h(Dot_product12(y1, y2, L_subfr, &exp)); in Q_gain2()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DHeadsUpAppearInterpolator.java37 float y2 = 78f; in getAppearPath() local
44 (x1 + x2 * 0.2f) / xTot, y2 / y3, in getAppearPath()
45 (x1 + x2) / xTot, y2 / y3); in getAppearPath()
46 path.cubicTo((x1 + x2 + x3 * 0.4f) / xTot, y2 / y3, in getAppearPath()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dconvolve5x5.rs35 uint32_t y2 = y;
51 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y2)) * gCoeffs[10]
52 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[11]
53 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[12]
54 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y2)) * gCoeffs[13]
55 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y2)) * gCoeffs[14]
Dconvolve3x3.rs30 uint32_t y2 = max((int32_t)y-1, 0);
38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6];
39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7];
40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8];
Dgrain.rs48 uint32_t y2 = (y+1) & gHMask;
56 uint p20 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y2);
57 uint p21 = 114 * rsGetElementAt_uchar(gBlendSource, x, y2);
58 uint p22 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y2);
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dconvolve5x5.rs35 uint32_t y2 = y;
51 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y2)) * gCoeffs[10]
52 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[11]
53 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[12]
54 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y2)) * gCoeffs[13]
55 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y2)) * gCoeffs[14]
Dconvolve3x3.rs30 uint32_t y2 = max((int32_t)y-1, 0);
38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6];
39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7];
40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8];
Dgrain.rs48 uint32_t y2 = (y+1) & gHMask;
56 uint p20 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y2);
57 uint p21 = 114 * rsGetElementAt_uchar(gBlendSource, x, y2);
58 uint p22 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y2);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dconvolve5x5.rs35 uint32_t y2 = y;
51 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y2)) * gCoeffs[10]
52 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[11]
53 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[12]
54 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y2)) * gCoeffs[13]
55 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y2)) * gCoeffs[14]
Dconvolve3x3.rs30 uint32_t y2 = max((int32_t)y-1, 0);
38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6];
39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7];
40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8];
Dgrain.rs48 uint32_t y2 = (y+1) & gHMask;
56 uint p20 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y2);
57 uint p21 = 114 * rsGetElementAt_uchar(gBlendSource, x, y2);
58 uint p22 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y2);
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp155 audio_sample_t y2 = mDelays[0][3]; in process_normal_mono() local
168 acc = mac_coef_sample(a2, y2, acc); in process_normal_mono()
170 y2 = y1; in process_normal_mono()
179 mDelays[0][3] = y2; in process_normal_mono()
213 audio_sample_t y2 = mDelays[ch][3]; in process_normal_multi() local
221 acc = mac_coef_sample(a2, y2, acc); in process_normal_multi()
223 y2 = y1; in process_normal_multi()
234 mDelays[ch][3] = y2; in process_normal_multi()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_x86.cpp80 const void *y1, const void *y2, in rsdIntrinsicConvolve3x3_K() argument
108 p8 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y2)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
109 p9 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y2+1)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
110 p10 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y2+2)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
111 p11 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y2+3)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
137 y2 = (const char *)y2 + 8; in rsdIntrinsicConvolve3x3_K()
154 __m128i x2, y2, z2, w2; in rsdIntrinsicColorMatrix4x4_K() local
171 y2 = _mm_madd_epi16(xy, _mm_shuffle_epi32(c0, 0x55)); in rsdIntrinsicColorMatrix4x4_K()
176 y2 = _mm_add_epi32(y2, _mm_madd_epi16(zw, _mm_shuffle_epi32(c2, 0x55))); in rsdIntrinsicColorMatrix4x4_K()
181 y2 = _mm_srai_epi32(y2, 8); in rsdIntrinsicColorMatrix4x4_K()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp88 const void *y2, const short *coef, uint32_t count);
199 uint32_t y2 = rsMax((int32_t)info->current.y - 1, 0); in kernelU4() local
200 const uchar4 *py0 = (const uchar4 *)(pin + stride * y2); in kernelU4()
246 uint32_t y2 = rsMax((int32_t)info->current.y - 1, 0); in kernelU2() local
247 const uchar2 *py0 = (const uchar2 *)(pin + stride * y2); in kernelU2()
291 uint32_t y2 = rsMax((int32_t)info->current.y - 1, 0); in kernelU1() local
292 const uchar *py0 = (const uchar *)(pin + stride * y2); in kernelU1()
336 uint32_t y2 = rsMax((int32_t)info->current.y - 1, 0); in kernelF4() local
337 const float4 *py0 = (const float4 *)(pin + stride * y2); in kernelF4()
381 uint32_t y2 = rsMax((int32_t)info->current.y - 1, 0); in kernelF2() local
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dg_code.cpp231 Word16 y2[], /* i : filtered innovation vector */ in G_code() argument
240 Word16 *p_y2 = y2; in G_code()
282 p_y2 = y2; in G_code()
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java313 float x2, float y2, float z2) { in hasMoved() argument
314 final double dotProduct = (x1 * x2) + (y1 * y2) + (z1 * z2); in hasMoved()
316 final double mag2 = Math.sqrt((x2 * x2) + (y2 * y2) + (z2 * z2)); in hasMoved()
328 + ", x2=" + x2 + ", y2=" + y2 + ", z2=" + z2 in hasMoved()
/frameworks/base/graphics/java/android/graphics/
DPath.java385 public void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument
387 native_quadTo(mNativePath, x1, y1, x2, y2); in quadTo()
421 public void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument
424 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in cubicTo()
432 public void rCubicTo(float x1, float y1, float x2, float y2, in rCubicTo() argument
435 native_rCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in rCubicTo()
826 float x2, float y2); in native_quadTo() argument
830 float x2, float y2, float x3, float y3); in native_cubicTo() argument
832 float x2, float y2, float x3, float y3); in native_rCubicTo() argument
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp164 signed y2 = (signed)src_ptr[2 * x + 3] - 16; in convertCbYCrY() local
178 signed tmp2 = y2 * 298; in convertCbYCrY()
279 signed y2 = (signed)src_y[x + 1] - 16; in convertYUV420Planar() local
294 signed tmp2 = y2 * 298; in convertYUV420Planar()
352 signed y2 = (signed)src_y[x + 1] - 16; in convertQCOMYUV420SemiPlanar() local
367 signed tmp2 = y2 * 298; in convertQCOMYUV420SemiPlanar()
426 signed y2 = (signed)src_y[x + 1] - 16; in convertYUV420SemiPlanar() local
441 signed tmp2 = y2 * 298; in convertYUV420SemiPlanar()
496 signed y2 = (signed)src_y[x + 1] - 16; in convertTIYUV420PackedSemiPlanar() local
511 signed tmp2 = y2 * 298; in convertTIYUV420PackedSemiPlanar()
/frameworks/base/core/java/android/view/animation/
DPathInterpolator.java137 float y2 = a.getFloat(R.styleable.PathInterpolator_controlY2, 0); in parseInterpolatorFromTypeArray() local
138 initCubic(x1, y1, x2, y2); in parseInterpolatorFromTypeArray()
150 private void initCubic(float x1, float y1, float x2, float y2) { in initCubic() argument
153 path.cubicTo(x1, y1, x2, y2, 1f, 1f); in initCubic()
/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