Home
last modified time | relevance | path

Searched refs:y0 (Results 1 – 25 of 46) sorted by relevance

12

/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
110 mY0 = y0; 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/libaudioprocessing/
DAudioResamplerCubic.h43 int32_t a, b, c, y0, y1, y2, y3; member
54 p->y0 = p->y1; 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/libs/systemui/weathereffects/graphics/assets/shaders/
Dsimplex3d.agsl77 // Below indicates the offsets (or offset directions) when c0=(x0,y0,z0)
78 // x0>y0>z0: (1,0,0), (1,1,0), (1,1,1)
79 // x0>z0>y0: (1,0,0), (1,0,1), (1,1,1)
80 // z0>x0>y0: (0,0,1), (1,0,1), (1,1,1)
81 // z0>y0>x0: (0,0,1), (0,1,1), (1,1,1)
82 // y0>z0>x0: (0,1,0), (0,1,1), (1,1,1)
83 // y0>x0>z0: (0,1,0), (1,1,0), (1,1,1)
90 // Encode x0-y0, y0-z0, z0-x0 in a vec3
93 // Each represents whether x0>y0, y0>z0, z0>x0
96 // en.zxy encodes z0>x0, x0>y0, y0>x0
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dconvolve5x5.rscript33 uint32_t y0 = max((int32_t)y-2, 0);
39 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x0, y0)) * gCoeffs[0]
40 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y0)) * gCoeffs[1]
41 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y0)) * gCoeffs[2]
42 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y0)) * gCoeffs[3]
43 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y0)) * gCoeffs[4]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dconvolve5x5.rscript33 uint32_t y0 = max((int32_t)y-2, 0);
39 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x0, y0)) * gCoeffs[0]
40 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y0)) * gCoeffs[1]
41 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y0)) * gCoeffs[2]
42 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y0)) * gCoeffs[3]
43 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y0)) * gCoeffs[4]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dconvolve5x5.rscript33 uint32_t y0 = max((int32_t)y-2, 0);
39 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x0, y0)) * gCoeffs[0]
40 + convert_float4(rsGetElementAt_uchar4(gIn, x1, y0)) * gCoeffs[1]
41 + convert_float4(rsGetElementAt_uchar4(gIn, x2, y0)) * gCoeffs[2]
42 + convert_float4(rsGetElementAt_uchar4(gIn, x3, y0)) * gCoeffs[3]
43 + convert_float4(rsGetElementAt_uchar4(gIn, x4, y0)) * gCoeffs[4]
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp169 audio_sample_t y0 = coef_sample_acc_to_sample(acc); in process_normal_mono() local
171 y1 = y0; in process_normal_mono()
174 (*out++) = y0; in process_normal_mono()
222 audio_sample_t y0 = coef_sample_acc_to_sample(acc); in process_normal_multi() local
224 y1 = y0; in process_normal_multi()
227 *out = y0; in process_normal_multi()
/frameworks/rs/toolkit/
DConvolve5x5.cpp28 extern "C" void rsdIntrinsicConvolve5x5_K(void* dst, const void* y0, const void* y1, const void* y2,
202 uint32_t y0 = std::max((int32_t)currentY - 2, 0); in kernelF4() local
208 const float4* py0 = (const float4*)(pin + stride * y0); in kernelF4()
224 uint32_t y0 = std::max((int32_t)currentY - 2, 0); in RsdCpuScriptIntrinsicConvolve5x5_kernelF2() local
230 const float2* py0 = (const float2*)(pin + stride * y0); in RsdCpuScriptIntrinsicConvolve5x5_kernelF2()
246 uint32_t y0 = std::max((int32_t)currentY - 2, 0); in RsdCpuScriptIntrinsicConvolve5x5_kernelF1() local
252 const float* py0 = (const float*)(pin + stride * y0); in RsdCpuScriptIntrinsicConvolve5x5_kernelF1()
269 uint32_t y0 = std::max((int32_t)y - 2, 0); in convolveU() local
277 InputOutputType* py0 = (InputOutputType*)(pin + stride * y0); in convolveU()
294 uint32_t y0 = std::max((int32_t)y - 2, 0); in convolveU4() local
[all …]
DConvolve_neon.S145 vld1.8 {d24, d25, d26}, [r1], r7 @ y0 ( y - 2 )
146 vld1.8 {d27, d28, d29}, [r2], r7 @ y0 ( y - 1 )
191 vld1.8 {d24, d25, d26}, [r3], r7 @ y0 ( y )
192 vld1.8 {d27, d28, d29}, [r4], r7 @ y0 ( y + 1 )
236 vld1.8 {d24, d25, d26}, [r5], r7 @ y0 ( y + 2 )
Dx86.cpp82 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, in rsdIntrinsicConvolve3x3_K() argument
103 p0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
104 p1 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+1)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
105 p2 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+2)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
106 p3 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+3)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
138 y0 = (const char *)y0 + 8; in rsdIntrinsicConvolve3x3_K()
599 extern "C" void rsdIntrinsicConvolve5x5_K(void *dst, const void *y0, in rsdIntrinsicConvolve5x5_K() argument
644 p0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*(int32_t *)y0), _mm_setzero_si128()); in rsdIntrinsicConvolve5x5_K()
645 p1 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+1)), _mm_setzero_si128()); in rsdIntrinsicConvolve5x5_K()
646 p2 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+2)), _mm_setzero_si128()); in rsdIntrinsicConvolve5x5_K()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DQuad.java79 float y0 = Collections.min(ys); in boundingBox() local
82 return new Rectangle(x0, y0, x1 - x0, y1 - y0); in boundingBox()
/frameworks/native/libs/tonemap/
Dtonemap.cpp332 const double y0 = 17.0; in lookupTonemapGain() local
348 double slope = y0 / x0; in lookupTonemapGain()
352 double slope = (y1 - y0) / (x1 - x0); in lookupTonemapGain()
353 targetNits = y0 + (targetNits - x0) * slope; in lookupTonemapGain()
385 double y0 = 2.5; in lookupTonemapGain() local
401 double slope = y0 / x0; in lookupTonemapGain()
406 targetNits = (1.0 - t) * (1.0 - t) * y0 + 2.0 * (1.0 - t) * t * c1 + in lookupTonemapGain()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_neon_Convolve.S145 vld1.8 {d24, d25, d26}, [r1], r7 @ y0 ( y - 2 )
146 vld1.8 {d27, d28, d29}, [r2], r7 @ y0 ( y - 1 )
191 vld1.8 {d24, d25, d26}, [r3], r7 @ y0 ( y )
192 vld1.8 {d27, d28, d29}, [r4], r7 @ y0 ( y + 1 )
236 vld1.8 {d24, d25, d26}, [r5], r7 @ y0 ( y + 2 )
DrsCpuIntrinsicConvolve5x5.cpp339 extern "C" void rsdIntrinsicConvolve5x5_K(void *dst, const void *y0, const void *y1,
354 uint32_t y0 = rsMax((int32_t)info->current.y-2, 0); in kernelU4() local
360 const uchar4 *py0 = (const uchar4 *)(pin + stride * y0); in kernelU4()
414 uint32_t y0 = rsMax((int32_t)info->current.y-2, 0); in kernelU2() local
420 const uchar2 *py0 = (const uchar2 *)(pin + stride * y0); in kernelU2()
463 uint32_t y0 = rsMax((int32_t)info->current.y-2, 0); in kernelU1() local
469 const uchar *py0 = (const uchar *)(pin + stride * y0); in kernelU1()
512 uint32_t y0 = rsMax((int32_t)info->current.y-2, 0); in kernelF4() local
518 const float4 *py0 = (const float4 *)(pin + stride * y0); in kernelF4()
561 uint32_t y0 = rsMax((int32_t)info->current.y-2, 0); in kernelF2() local
[all …]
DrsCpuIntrinsics_x86.cpp79 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, in rsdIntrinsicConvolve3x3_K() argument
100 p0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
101 p1 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+1)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
102 p2 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+2)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
103 p3 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+3)), _mm_setzero_si128()); in rsdIntrinsicConvolve3x3_K()
135 y0 = (const char *)y0 + 8; in rsdIntrinsicConvolve3x3_K()
596 extern "C" void rsdIntrinsicConvolve5x5_K(void *dst, const void *y0, in rsdIntrinsicConvolve5x5_K() argument
641 p0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*(int32_t *)y0), _mm_setzero_si128()); in rsdIntrinsicConvolve5x5_K()
642 p1 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+1)), _mm_setzero_si128()); in rsdIntrinsicConvolve5x5_K()
643 p2 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0+2)), _mm_setzero_si128()); in rsdIntrinsicConvolve5x5_K()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DImageSlicer.java114 float y0 = (ySliceIndex * mSliceHeight - mPadSize) / ((float) mInputHeight); in process() local
116 ((ShaderProgram) mProgram).setSourceRect(x0, y0, in process()
DImageStitcher.java111 float y0 = ((float) mPadSize) / mInputHeight; in process() local
120 ((ShaderProgram) mProgram).setSourceRect(x0, y0, in process()
/frameworks/base/tests/MotionPrediction/src/test/motionprediction/
DDrawingView.kt34 val y0 = from.getY() in drawLine() constant
38 drawLine(x0, y0, x1, y1, paint) in drawLine()
/frameworks/base/media/mca/filterfw/jni/
Djni_shader_program.cpp139 jfloat y0, in Java_android_filterfw_core_ShaderProgram_setSourceRegion() argument
148 program->SetSourceRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); in Java_android_filterfw_core_ShaderProgram_setSourceRegion()
157 jfloat y0, in Java_android_filterfw_core_ShaderProgram_setTargetRegion() argument
166 program->SetTargetRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); in Java_android_filterfw_core_ShaderProgram_setTargetRegion()
Djni_shader_program.h67 jfloat y0,
79 jfloat y0,
/frameworks/av/services/camera/libcameraservice/device3/
DRotateAndCropMapper.cpp324 float y0 = pts[i + 1] - oy; in transformPoints() local
325 int32_t nx = std::round(transformMat[0] * x0 + transformMat[1] * y0 + xShift + ox); in transformPoints()
326 int32_t ny = std::round(transformMat[2] * x0 + transformMat[3] * y0 + yShift + oy); in transformPoints()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp335 float y0 = *pSrc++; in util_computeBoundingSphere() local
336 float y1 = y0; in util_computeBoundingSphere()
352 if (y < y0) { in util_computeBoundingSphere()
353 y0 = y; in util_computeBoundingSphere()
374 float dy = y1 - y0; in util_computeBoundingSphere()
377 *pSphere++ = y0 + dy * 0.5f; in util_computeBoundingSphere()
391 static inline float dot3(float x0, float y0, float z0, float x1, float y1, float z1) { in dot3() argument
392 return x0 * x1 + y0 * y1 + z0 * z1; in dot3()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java1300 final float x0, x1, y0, y1;
1306 x0 = r.left; y0 = r.top;
1310 x0 = r.right; y0 = r.top;
1314 x0 = r.right; y0 = r.top;
1315 x1 = level * r.left; y1 = y0;
1318 x0 = r.right; y0 = r.bottom;
1322 x0 = r.left; y0 = r.bottom;
1326 x0 = r.left; y0 = r.bottom;
1330 x0 = r.left; y0 = r.top;
1331 x1 = level * r.right; y1 = y0;
[all …]
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/
DDrawingView.kt50 val y0 = from.getY(p) in <lambda>() constant
58 canvas.drawLine(x0, y0, x1, y1, paint) in <lambda>()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DQuaternion.java99 double y0 = a.x[0] * b.x[0] - a.x[1] * b.x[1] - a.x[2] * b.x[2] - a.x[3] * b.x[3]; in times() local
103 return new Quaternion(y0, y1, y2, y3); in times()

12