Home
last modified time | relevance | path

Searched refs:x1 (Results 1 – 25 of 202) sorted by relevance

123456789

/frameworks/av/media/libaudioclient/tests/
Dtrack_test_input_v1.0_ref.txt6 48000 0x1 0x3 4800 2400 0 0x0 0 1 2
7 24000 0x1 0x3 4800 2400 0 0x0 0 1 2
8 16000 0x1 0x3 4800 2400 0 0x0 0 1 2
9 8000 0x1 0x3 4800 2400 0 0x0 0 1 2
10 44100 0x1 0x3 4410 2205 0 0x0 0 1 2
11 22050 0x1 0x3 4410 2205 0 0x0 0 1 2
12 11025 0x1 0x3 4410 2205 0 0x0 0 1 2
18 48000 0x1 0x1 4800 2400 0 0x0 0 1 2
19 48000 0x1 0x3F 4800 2400 0 0x0 0 1 2
20 48000 0x1 0x63F 4800 2400 0 0x0 0 1 2
[all …]
Drecord_test_input_v1.0_ref.txt6 48000 0x1 0x10 4800 2400 0x0 0 0
7 24000 0x1 0x10 4800 2400 0x0 0 0
8 16000 0x1 0x10 4800 2400 0x0 0 0
9 8000 0x1 0x10 4800 2400 0x0 0 0
10 44100 0x1 0x10 4410 2205 0x0 0 0
11 22050 0x1 0x10 4410 2205 0x0 0 0
12 11025 0x1 0x10 4410 2205 0x0 0 0
18 48000 0x1 0x0C 4800 2400 0x0 0 0
20 48000 0x1 0x10 0 0 0x0 0 0
21 48000 0x1 0x10 48000 0 0x0 0 0
[all …]
/frameworks/rs/toolkit/
DBlend.cpp87 uint32_t x1 = 0; in blend() local
92 if (rsdIntrinsicBlend_K(out, in, (int) mode, x1, x2) >= 0) { in blend()
101 for (;x1 < x2; x1++, out++) { in blend()
106 for (;x1 < x2; x1++, out++, in++) { in blend()
116 if ((x1 + 8) < x2) { in blend()
117 uint32_t len = (x2 - x1) >> 3; in blend()
119 x1 += len << 3; in blend()
125 for (;x1 < x2; x1++, out++, in++) { in blend()
135 if ((x1 + 8) < x2) { in blend()
136 uint32_t len = (x2 - x1) >> 3; in blend()
[all …]
DBlur.cpp196 int rct, int x1, int ct);
197 extern void rsdIntrinsicBlurHFU4_K(void *dst, const void *pin, const void *gptr, int rct, int x1,
199 extern void rsdIntrinsicBlurHFU1_K(void *dst, const void *pin, const void *gptr, int rct, int x1,
217 int x1 = 0; in OneVFU4() local
220 int t = (x2 - x1); in OneVFU4()
223 rsdIntrinsicBlurVFU4_K(out, ptrIn, iStride, gPtr, ct, x1, x1 + t); in OneVFU4()
225 x1 += t; in OneVFU4()
232 while(x2 > x1) { in OneVFU4()
244 x1++; in OneVFU4()
264 int x1 = 0; in OneVFU1() local
[all …]
DYuvToRgb.cpp132 uint32_t x1 = xstart; in kernel() local
188 if((x1 & 1) && (x2 > x1)) { in kernel()
189 int cx = (x1 >> 1) * mCstep; in kernel()
190 *out = rsYuvToRGBA_uchar4(y[x1], u[cx], v[cx]); in kernel()
192 x1++; in kernel()
196 if((x2 > x1) && mUsesSimd) { in kernel()
197 int32_t len = x2 - x1; in kernel()
199 rsdIntrinsicYuv2_K(out, y, u, v, x1, x2); in kernel()
200 x1 += len; in kernel()
208 rsdIntrinsicYuv_K(out, y, v, x1, x2); in kernel()
[all …]
DConvolve5x5.cpp70 uint32_t x1 = std::max((int32_t)x - 1, 0); in ConvolveOneU() local
76 convert<ComputationType>(py0[x1]) * coeff[1] + in ConvolveOneU()
82 convert<ComputationType>(py1[x1]) * coeff[6] + in ConvolveOneU()
88 convert<ComputationType>(py2[x1]) * coeff[11] + in ConvolveOneU()
94 convert<ComputationType>(py3[x1]) * coeff[16] + in ConvolveOneU()
100 convert<ComputationType>(py4[x1]) * coeff[21] + in ConvolveOneU()
115 uint32_t x1 = std::max((int32_t)x - 1, 0); in ConvolveOneF() local
120 InputOutputType px = py0[x0] * coeff[0] + py0[x1] * coeff[1] + py0[x2] * coeff[2] + in ConvolveOneF()
123 py1[x0] * coeff[5] + py1[x1] * coeff[6] + py1[x2] * coeff[7] + in ConvolveOneF()
126 py2[x0] * coeff[10] + py2[x1] * coeff[11] + py2[x2] * coeff[12] + in ConvolveOneF()
[all …]
DConvolve3x3.cpp81 uint32_t x1 = std::max((int32_t)x - 1, 0); in convolveOneU() local
84 ComputationType px = convert<ComputationType>(py0[x1]) * coeff[0] + in convolveOneU()
87 convert<ComputationType>(py1[x1]) * coeff[3] + in convolveOneU()
90 convert<ComputationType>(py2[x1]) * coeff[6] + in convolveOneU()
116 uint32_t x1 = std::max((int32_t)x - 1, 0); in ConvolveOneF() local
118 *out = (py0[x1] * coeff[0]) + (py0[x] * coeff[1]) + (py0[x2] * coeff[2]) + in ConvolveOneF()
119 (py1[x1] * coeff[3]) + (py1[x] * coeff[4]) + (py1[x2] * coeff[5]) + in ConvolveOneF()
120 (py2[x1] * coeff[6]) + (py2[x] * coeff[7]) + (py2[x2] * coeff[8]); in ConvolveOneF()
141 uint32_t x1 = xstart; in kernelU4() local
143 if (x1 == 0) { in kernelU4()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicConvolve3x3.cpp88 uint32_t x1 = rsMax((int32_t)x-1, 0); in ConvolveOneU4() local
91 float4 px = convert_float4(py0[x1]) * coeff[0] + in ConvolveOneU4()
94 convert_float4(py1[x1]) * coeff[3] + in ConvolveOneU4()
97 convert_float4(py2[x1]) * coeff[6] + in ConvolveOneU4()
110 uint32_t x1 = rsMax((int32_t)x-1, 0); in ConvolveOneU2() local
113 float2 px = convert_float2(py0[x1]) * coeff[0] + in ConvolveOneU2()
116 convert_float2(py1[x1]) * coeff[3] + in ConvolveOneU2()
119 convert_float2(py2[x1]) * coeff[6] + in ConvolveOneU2()
131 uint32_t x1 = rsMax((int32_t)x-1, 0); in ConvolveOneU1() local
134 float px = ((float)py0[x1]) * coeff[0] + in ConvolveOneU1()
[all …]
DrsCpuIntrinsicBlend.cpp127 uint32_t x1 = xstart; in kernel() local
132 if (rsdIntrinsicBlend_K(out, in, info->slot, 0, x2 - x1) >= 0) { in kernel()
141 for (;x1 < x2; x1++, out++) { in kernel()
146 for (;x1 < x2; x1++, out++, in++) { in kernel()
156 if ((x1 + 8) < x2) { in kernel()
157 uint32_t len = (x2 - x1) >> 3; in kernel()
159 x1 += len << 3; in kernel()
165 for (;x1 < x2; x1++, out++, in++) { in kernel()
175 if ((x1 + 8) < x2) { in kernel()
176 uint32_t len = (x2 - x1) >> 3; in kernel()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp88 uint32_t x1 = rsMax((int32_t)x-1, 0); in OneU4() local
94 convert_float4(py0[x1]) * coeff[1] + in OneU4()
100 convert_float4(py1[x1]) * coeff[6] + in OneU4()
106 convert_float4(py2[x1]) * coeff[11] + in OneU4()
112 convert_float4(py3[x1]) * coeff[16] + in OneU4()
118 convert_float4(py4[x1]) * coeff[21] + in OneU4()
131 uint32_t x1 = rsMax((int32_t)x-1, 0); in OneU2() local
137 convert_float2(py0[x1]) * coeff[1] + in OneU2()
143 convert_float2(py1[x1]) * coeff[6] + in OneU2()
149 convert_float2(py2[x1]) * coeff[11] + in OneU2()
[all …]
DrsCpuIntrinsicBlur.cpp158 …insicBlurVFU4_K(void *dst, const void *pin, int stride, const void *gptr, int rct, int x1, int ct);
159 extern void rsdIntrinsicBlurHFU4_K(void *dst, const void *pin, const void *gptr, int rct, int x1, i…
160 extern void rsdIntrinsicBlurHFU1_K(void *dst, const void *pin, const void *gptr, int rct, int x1, i…
167 int x1, int x2) { in OneVFU4() argument
168 out += x1; in OneVFU4()
171 int t = (x2 - x1); in OneVFU4()
174 rsdIntrinsicBlurVFU4_K(out, ptrIn, iStride, gPtr, ct, x1, x1 + t); in OneVFU4()
176 x1 += t; in OneVFU4()
181 while(x2 > x1) { in OneVFU4()
193 x1++; in OneVFU4()
[all …]
DrsCpuIntrinsicYuvToRGB.cpp121 uint32_t x1 = xstart; in kernel() local
152 if((x1 & 1) && (x2 > x1)) { in kernel()
153 int cx = (x1 >> 1) * cstep; in kernel()
154 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel()
156 x1++; in kernel()
160 if((x2 > x1) && gArchUseSIMD) { in kernel()
161 int32_t len = x2 - x1; in kernel()
163 rsdIntrinsicYuv2_K(info->outPtr[0], Y, u, v, x1, x2); in kernel()
164 x1 += len; in kernel()
172 rsdIntrinsicYuv_K(info->outPtr[0], Y, v, x1, x2); in kernel()
[all …]
/frameworks/av/media/module/codecs/amrwb/dec/src/
Dmedian5.cpp120 int16 x1, x2, x3, x4, x5; in median5() local
123 x1 = x[-2]; in median5()
131 if (x2 < x1) in median5()
133 tmp = x1; in median5()
134 x1 = x2; in median5()
137 if (x3 < x1) in median5()
139 tmp = x1; in median5()
140 x1 = x3; in median5()
143 if (x4 < x1) in median5()
145 tmp = x1; in median5()
[all …]
Dhighpass_400hz_at_12k8.cpp150 int16 y2_hi, y2_lo, y1_hi, y1_lo, x0, x1; in highpass_400Hz_at_12k8() local
159 x1 = mem[5]; in highpass_400Hz_at_12k8()
171 x2 = x1; in highpass_400Hz_at_12k8()
172 x1 = x0; in highpass_400Hz_at_12k8()
175 L_tmp2 = fxp_mac_16by16(x1, -1830, L_tmp2); in highpass_400Hz_at_12k8()
197 mem[5] = x1; in highpass_400Hz_at_12k8()
/frameworks/av/media/module/codecs/m4v_h263/dec/src/
Didct_vca.cpp101 int32 x0, x1, x2, x4, x5; in idctrow2() local
126 x1 = (181 * (x4 - x5) + 128) >> 8; in idctrow2()
135 res = (x0 + x1) >> 14; in idctrow2()
146 res2 = (x0 - x1) >> 14; in idctrow2()
163 int32 x0, x1, x3, x5, x7;//, x8; in idctcol2() local
165 x1 = blk[8]; in idctcol2()
169 x7 = W7 * x1; in idctcol2()
170 x1 = W1 * x1; in idctcol2()
173 x5 = (181 * (x1 - x7) + 128) >> 8; in idctcol2()
174 x7 = (181 * (x1 + x7) + 128) >> 8; in idctcol2()
[all …]
Dblock_idct.cpp517 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idctrow() local
540 x1 = (int32)blk[12] << 8; in idctrow()
566 x8 = x0 + x1; in idctrow()
567 x0 -= x1; in idctrow()
568 x1 = W6 * (x3 + x2) + 4; in idctrow()
569 x2 = (x1 - (W2 + W6) * x2) >> 3; in idctrow()
570 x3 = (x1 + (W2 - W6) * x3) >> 3; in idctrow()
571 x1 = x4 + x6; in idctrow()
587 res = (x7 + x1) >> 14; in idctrow()
610 res = (x7 - x1) >> 14; in idctrow()
[all …]
Dget_pred_adv_b_add.cpp867 uint32 x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvancedBy1x1() local
895 x1 = *((uint32*)prev); /* load a3 a2 a1 a0 */ in GetPredAdvancedBy1x1()
900 x1m = (x1 >> 2) & mask; /* zero out last 2 bits */ in GetPredAdvancedBy1x1()
902 x1 = x1 ^(x1m << 2); in GetPredAdvancedBy1x1()
905 x1 += x2; in GetPredAdvancedBy1x1()
934 y2 = x1 >> 8; in GetPredAdvancedBy1x1()
938 x1 += y2; in GetPredAdvancedBy1x1()
939 x1 += rnd2; in GetPredAdvancedBy1x1()
940 x1 &= (mask << 2); in GetPredAdvancedBy1x1()
941 x1m += (x1 >> 2); in GetPredAdvancedBy1x1()
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
Dcanny.rscript106 int x1 = x - 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);
113 x1 = x - 2;
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/av/media/module/codecs/m4v_h263/enc/src/
Dfastidct.cpp83 int32 x0, x1, x3, x5, x7;//, x8; in idct_col2() local
85 x1 = blk[8]; in idct_col2()
89 x7 = W7 * x1; in idct_col2()
90 x1 = W1 * x1; in idct_col2()
93 x5 = (181 * (x1 - x7) + 128) >> 8; in idct_col2()
94 x7 = (181 * (x1 + x7) + 128) >> 8; in idct_col2()
96 blk[0] = (x0 + x1) >> 8; in idct_col2()
100 blk[56] = (x0 - x1) >> 8; in idct_col2()
111 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idct_col3() local
114 x1 = blk[8]; in idct_col3()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/stylus/
DHandwritingInitiatorTest.java140 final int x1 = (sHwArea1.left + sHwArea1.right) / 2; in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea() local
142 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea()
145 final int x2 = x1 + mHandwritingSlop * 2; in onTouchEvent_startHandwriting_when_stylusMoveOnce_withinHWArea()
177 final int x1 = (sHwArea1.left + sHwArea1.right) / 2; in onTouchEvent_startHandwriting_multipleParagraphs() local
179 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwriting_multipleParagraphs()
182 final int x2 = x1 + mHandwritingSlop * 2; in onTouchEvent_startHandwriting_multipleParagraphs()
207 final int x1 = (sHwArea1.left + sHwArea1.right) / 2; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea() local
209 MotionEvent stylusEvent1 = createStylusEvent(ACTION_DOWN, x1, y1, 0); in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea()
212 final int x2 = x1 + mHandwritingSlop / 2; in onTouchEvent_startHandwritingOnce_when_stylusMoveMultiTimes_withinHWArea()
251 final int x1 = sHwArea1.left - HW_BOUNDS_OFFSETS_LEFT_PX / 2; in onTouchEvent_startHandwriting_when_stylusMove_withinExtendedHWArea() local
[all …]
/frameworks/base/graphics/java/android/graphics/
DLinearGradient.java69 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int[] colors, in LinearGradient() argument
71 this(x0, y0, x1, y1, convertColors(colors), positions, tile, in LinearGradient()
92 public LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorLong long[] colors, in LinearGradient() argument
94 this(x0, y0, x1, y1, colors.clone(), positions, tile, detectColorSpace(colors)); in LinearGradient()
101 private LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument
111 mX1 = x1; in LinearGradient()
129 public LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument
132 this(x0, y0, x1, y1, Color.pack(color0), Color.pack(color1), tile); in LinearGradient()
149 public LinearGradient(float x0, float y0, float x1, float y1, in LinearGradient() argument
152 this(x0, y0, x1, y1, new long[] {color0, color1}, null, tile); in LinearGradient()
[all …]
/frameworks/av/media/module/codecs/amrwb/enc/src/
Dp_med_ol.c174 Word16 x1, x2, x3, x4, x5; in median5() local
177 x1 = x[-2]; in median5()
183 if (x2 < x1) in median5()
185 tmp = x1; in median5()
186 x1 = x2; in median5()
189 if (x3 < x1) in median5()
191 tmp = x1; in median5()
192 x1 = x3; in median5()
195 if (x4 < x1) in median5()
197 tmp = x1; in median5()
[all …]
Dhp400.c64 Word16 y2_hi, y2_lo, y1_hi, y1_lo, x0, x1; in HP400_12k8() local
72 x1 = *mem; in HP400_12k8()
76 x2 = x1; in HP400_12k8()
77 x1 = x0; in HP400_12k8()
85 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2)* b[0] + x1 * b[1]) << 1; in HP400_12k8()
96 *mem-- = x1; in HP400_12k8()
Dhp50.c65 Word16 y2_hi, y2_lo, y1_hi, y1_lo, x0, x1; in HP50_12k8() local
74 x1 = *mem; in HP50_12k8()
78 x2 = x1; in HP50_12k8()
79 x1 = x0; in HP50_12k8()
87 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2) * b[0] + x1 * b[1]) << 1; in HP50_12k8()
96 *mem-- = x1; in HP50_12k8()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DCubicEasing.java37 CubicEasing(float x1, float y1, float x2, float y2) { in CubicEasing() argument
38 setup(x1, y1, x2, y2); in CubicEasing()
70 void setup(float x1, float y1, float x2, float y2) { in setup() argument
71 mX1 = x1; in setup()
120 float x1 = getX(t - range); in getDiff() local
124 return (y2 - y1) / (x2 - x1); in getDiff()
148 float x1 = getX(t - range); in get() local
152 return (y2 - y1) * (x - x1) / (x2 - x1) + y1; in get()

123456789