Home
last modified time | relevance | path

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

1234

/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
Dcanny.rs107 int y1 = y - 2;
108 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1);
109 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1);
110 sum += 5 * rsGetElementAt_uchar(edgeImage, x1++, y1);
111 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1);
112 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1);
114 y1++;
115 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1);
116 sum += 9 * rsGetElementAt_uchar(edgeImage, x1++, y1);
117 sum += 12 * rsGetElementAt_uchar(edgeImage, x1++, y1);
[all …]
/frameworks/base/libs/hwui/
DPatch.cpp103 float y1 = 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()
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()
183 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.cpp151 uint8 *y1, *y2, *u1, *u2, *v1, *v2; in CopyVopMB() local
163 y1 = curr->yChan + lumstart; in CopyVopMB()
171 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
172 y1 += width_Y; in CopyVopMB()
174 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
175 y1 += width_Y; in CopyVopMB()
177 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
178 y1 += width_Y; in CopyVopMB()
180 oscl_memcpy(y1, y2, MB_SIZE); in CopyVopMB()
181 y1 += width_Y; in CopyVopMB()
/frameworks/av/media/libaudioprocessing/
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/graphics/java/android/graphics/
DLinearGradient.java58 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int colors[], in LinearGradient() argument
70 mY1 = y1; in LinearGradient()
87 public LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument
94 mY1 = y1; in LinearGradient()
129 private native long nativeCreate1(long matrix, float x0, float y0, float x1, float y1, in nativeCreate1() argument
131 private native long nativeCreate2(long matrix, float x0, float y0, float x1, float y1, in nativeCreate2() argument
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DHeadsUpAppearInterpolator.java36 float y1 = 90f; in getAppearPath() local
41 x1 * 0.8f / xTot, y1 / y3, in getAppearPath()
42 x1 / xTot , y1 / y3); in getAppearPath()
43 path.cubicTo((x1 + x2 * 0.4f) / xTot, y1 / y3, in getAppearPath()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dconvolve5x5.rs34 uint32_t y1 = max((int32_t)y-1, 0);
45 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5]
46 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6]
47 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7]
48 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8]
49 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9]
Dconvolve3x3.rs29 uint32_t y1 = min((int32_t)y+1, gHeight-1);
32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0];
33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1];
34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
Dgrain.rs47 uint32_t y1 = (y-1) & gHMask;
50 uint p00 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y1);
51 uint p01 = 114 * rsGetElementAt_uchar(gBlendSource, x, y1);
52 uint p02 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y1);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dconvolve5x5.rs34 uint32_t y1 = max((int32_t)y-1, 0);
45 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5]
46 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6]
47 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7]
48 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8]
49 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9]
Dconvolve3x3.rs29 uint32_t y1 = min((int32_t)y+1, gHeight-1);
32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0];
33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1];
34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
Dgrain.rs47 uint32_t y1 = (y-1) & gHMask;
50 uint p00 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y1);
51 uint p01 = 114 * rsGetElementAt_uchar(gBlendSource, x, y1);
52 uint p02 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y1);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dconvolve5x5.rs34 uint32_t y1 = max((int32_t)y-1, 0);
45 + convert_float4(rsGetElementAt_uchar4(gIn, x0, y1)) * gCoeffs[5]
46 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[6]
47 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[7]
48 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y1)) * gCoeffs[8]
49 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y1)) * gCoeffs[9]
Dconvolve3x3.rs29 uint32_t y1 = min((int32_t)y+1, gHeight-1);
32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0];
33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1];
34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
Dgrain.rs47 uint32_t y1 = (y-1) & gHMask;
50 uint p00 = 56 * rsGetElementAt_uchar(gBlendSource, x1, y1);
51 uint p01 = 114 * rsGetElementAt_uchar(gBlendSource, x, y1);
52 uint p02 = 56 * rsGetElementAt_uchar(gBlendSource, x2, y1);
/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/base/tools/layoutlib/bridge/src/android/graphics/
DLinearGradient_Delegate.java60 float x0, float y0, float x1, float y1, in nativeCreate1() argument
63 x1, y1, colors, positions, Shader_Delegate.getTileMode(tileMode)); in nativeCreate1()
69 float x0, float y0, float x1, float y1, in nativeCreate2() argument
71 return nativeCreate1(thisGradient, matrix, x0, y0, x1, y1, new int[] { color0, color1}, in nativeCreate2()
92 float y1, int colors[], float positions[], TileMode tile) { in LinearGradient_Delegate() argument
94 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile); in LinearGradient_Delegate()
111 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], in LinearGradientPaint() argument
117 mDy = y1 - y0; in LinearGradientPaint()
DRoundRectangle.java149 double y1 = y0 + getHeight(); in contains() local
151 if (x < x0 || y < y0 || x >= x1 || y >= y1) { in contains()
170 double insideRightY1 = y1 - lrHeight / 2d; in contains()
178 double insideLeftY1 = y1 - llHeight / 2d; in contains()
216 double y1 = y0 + getHeight(); in intersects() local
218 if (x + w <= x0 || x >= x1 || y + h <= y0 || y >= y1) { in intersects()
228 Zone y0class = classify(y, y0, maxUpperCornerHeight, y1, maxLowerCornerHeight); in intersects()
229 Zone y1class = classify(y + h, y0, maxUpperCornerHeight, y1, maxLowerCornerHeight); in intersects()
256 y = y - y1 + llHeight / 2d; in intersects()
267 y = y - y1 + lrHeight / 2d; in intersects()
/frameworks/compile/slang/tests/F_root_compute_really_bad/
Droot_compute_really_bad.rs4 int root(int ain, int aout, int usrData, float x1, double y1,
11 const double* y1, uint32_t y) {
15 root_kernel(int ain, int* aout, int usrData, float x1, double 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/base/core/java/android/view/animation/
DPathInterpolator.java127 float y1 = a.getFloat(R.styleable.PathInterpolator_controlY1, 0); in parseInterpolatorFromTypeArray() local
138 initQuad(x1, y1); in parseInterpolatorFromTypeArray()
142 initCubic(x1, y1, x2, y2); in parseInterpolatorFromTypeArray()
154 private void initCubic(float x1, float y1, float x2, float y2) { in initCubic() argument
157 path.cubicTo(x1, y1, x2, y2, 1f, 1f); in initCubic()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DPathInterpolatorCompat.java98 float y1 = TypedArrayUtils.getNamedFloat(a, parser, "controlY1", in parseInterpolatorFromTypeArray() local
110 initQuad(x1, y1); in parseInterpolatorFromTypeArray()
116 initCubic(x1, y1, x2, y2); in parseInterpolatorFromTypeArray()
128 private void initCubic(float x1, float y1, float x2, float y2) { in initCubic() argument
131 path.cubicTo(x1, y1, x2, y2, 1f, 1f); in initCubic()

1234