Searched refs:p0 (Results 1 - 25 of 35) sorted by last modified time

12

/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicResize.cpp78 static float4 cubicInterpolate(float4 p0,float4 p1,float4 p2,float4 p3, float x) { argument
79 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
80 + x * (3.f * (p1 - p2) + p3 - p0)));
83 static float2 cubicInterpolate(float2 p0,float2 p1,float2 p2,float2 p3, float x) { argument
84 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
85 + x * (3.f * (p1 - p2) + p3 - p0)));
88 static float cubicInterpolate(float p0,float p1,float p2,float p3 , float x) { argument
89 return p1 + 0.5f * x * (p2 - p0
103 float4 p0 = cubicInterpolate(convert_float4(yp0[xs0]), local
138 float2 p0 = cubicInterpolate(convert_float2(yp0[xs0]), local
173 float p0 = cubicInterpolate((float)yp0[xs0], (float)yp0[xs1], local
254 float4 p0 = cubicInterpolate(yp0[xs0], yp0[xs1], local
277 float2 p0 = cubicInterpolate(yp0[xs0], yp0[xs1], local
300 float p0 = cubicInterpolate(yp0[xs0], yp0[xs1], local
[all...]
H A DrsCpuIntrinsics_x86.cpp85 __m128i p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11; local
100 p0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y0)), _mm_setzero_si128());
113 o0 = _mm_madd_epi16(_mm_unpacklo_epi16(p0, p1), c0);
378 __m128 pf, g0, g1, g2, g3, gx, p0, p1; local
391 p0 = _mm_loadu_ps(pi + r);
395 pf = _mm_add_ps(pf, _mm_mul_ps(g0, p0));
397 pf = _mm_add_ps(pf, _mm_mul_ps(g1, _mm_alignr_epi8(p1, p0, 4)));
399 pf = _mm_add_ps(pf, _mm_mul_ps(g2, _mm_alignr_epi8(p1, p0, 8)));
401 pf = _mm_add_ps(pf, _mm_mul_ps(g3, _mm_alignr_epi8(p1, p0, 12)));
604 __m128i p0, p local
[all...]
/frameworks/rs/driver/runtime/
H A Drs_sample.c129 float p0 = getElementAt1(p, iPixel); local
131 float r = p0 * w0 + p1 * w1;
139 float p0 = getElementAt1(p, iPixel); local
141 float r = p0 * w0 + p1 * w1;
149 float2 p0 = getElementAt2(p, iPixel); local
151 float2 r = p0 * w0 + p1 * w1;
159 float3 p0 = getElementAt3(p, iPixel); local
161 float3 r = p0 * w0 + p1 * w1;
169 float3 p0 = getElementAt565(p, iPixel); local
171 float3 r = p0 * w
179 float4 p0 = getElementAt4(p, iPixel); local
191 float p0 = getElementAt1(p, stride, locX, locY); local
204 float p0 = getElementAt1(p, stride, locX, locY); local
217 float2 p0 = getElementAt2(p, stride, locX, locY); local
230 float4 p0 = getElementAt4(p, stride, locX, locY); local
243 float4 p0 = getElementAt4(p, stride, locX, locY); local
255 float3 p0 = getElementAt565(p, stride, locX, locY); local
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dresize.rs38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) {
39 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
40 + x * (3.f * (p1 - p2) + p3 - p0)));
68 float4 p0 = cubicInterpolate(p00, p01, p02, p03, xf);
88 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A Dresize.rs38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) {
39 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
40 + x * (3.f * (p1 - p2) + p3 - p0)));
68 float4 p0 = cubicInterpolate(p00, p01, p02, p03, xf);
88 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dresize.rs38 static float4 cubicInterpolate (float4 p0,float4 p1,float4 p2,float4 p3 , float x) {
39 return p1 + 0.5f * x * (p2 - p0 + x * (2.f * p0 - 5.f * p1 + 4.f * p2 - p3
40 + x * (3.f * (p1 - p2) + p3 - p0)));
68 float4 p0 = cubicInterpolate(p00, p01, p02, p03, xf);
88 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
/frameworks/native/opengl/libagl/
H A Dprimitives.cpp855 vertex_t *p0, *p1, *p2; local
1019 p0 = ivl[0];
1023 c->lerp.initTriangle(p0, p1, p2);
1024 if (cull_triangle(c, p0, p1, p2)) {
1028 triangle(c, p0, p1, p2);
/frameworks/native/services/surfaceflinger/Effects/
H A DDaltonizer.cpp90 const vec3 p0 = cross(lms_w, lms_b); // protanopia/deuteranopia local
98 -p0.y / p0.x, 1.0000, 0.0000, 0,
99 -p0.z / p0.x, 0.0000, 1.0000, 0,
103 const mat4 lms2lmsd( 1.0000, -p0.x / p0.y, 0.0000, 0,
105 0.0000, -p0.z / p0.y, 1.0000, 0,
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DShaderProgram.java171 setSourceRegion(region.p0.x, region.p0.y,
178 setTargetRegion(region.p0.x, region.p0.y,
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DQuad.java32 public Point p0; field in class:Quad
40 public Quad(Point p0, Point p1, Point p2, Point p3) { argument
41 this.p0 = p0;
48 return p0.IsInUnitRange() &&
55 return new Quad(p0.plus(t), p1.plus(t), p2.plus(t), p3.plus(t));
59 return new Quad(p0.plus(x, y), p1.plus(x, y), p2.plus(x, y), p3.plus(x, y));
63 return new Quad(p0.times(s), p1.times(s), p2.times(s), p3.times(s));
67 return new Quad(p0.mult(x, y), p1.mult(x, y), p2.mult(x, y), p3.mult(x, y));
71 List<Float> xs = Arrays.asList(p0
[all...]
H A DRectangle.java46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f);
50 return new Rectangle(p0.rotatedAround(center, rotation),
56 private Rectangle(Point p0, Point p1, Point p2, Point p3) { argument
57 super(p0, p1, p2, p3);
70 return p1.minus(p0).length();
74 return p2.minus(p0).length();
78 return p0.plus(p1).plus(p2).plus(p3).times(0.25f);
83 return new Rectangle(p0.times(s), p1.times(s), p2.times(s), p3.times(s));
88 return new Rectangle(p0.mult(x, y), p1.mult(x, y), p2.mult(x, y), p3.mult(x, y));
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp40 float Point::Distance(const Point& p0, const Point& p1) { argument
41 Point diff = p1 - p0;
H A Dgeometry.h38 static float Distance(const Point& p0, const Point& p1);
56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) argument
58 points_[0] = p0;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDrawRectFilter.java114 float[] vertexValues = { box.p0.x, box.p0.y,
H A DStraightenFilter.java123 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight,
135 float maxWidth = (float) Math.max(Math.abs(p0.x), Math.abs(p1.x));
136 float maxHeight = (float) Math.max(Math.abs(p0.y), Math.abs(p1.y));
141 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f);
146 Quad quad = new Quad(p0, p1, p2, p3);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
H A DMediaEncoderFilter.java219 flippedRegion.p0 = mSourceRegion.p2;
221 flippedRegion.p2 = mSourceRegion.p0;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DSurfaceTextureTarget.java283 mTargetQuad.p0.set(0f, 0.0f);
292 mTargetQuad.p0.set(0.5f - 0.5f / relativeAspectRatio, 0.0f);
299 mTargetQuad.p0.set(0.0f, 0.5f - 0.5f * relativeAspectRatio);
309 mTargetQuad.p0.set(0.0f, 0.5f - 0.5f * relativeAspectRatio);
315 mTargetQuad.p0.set(0.5f - 0.5f / relativeAspectRatio, 0.0f);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp39 float Point::Distance(const Point& p0, const Point& p1) { argument
40 Point diff = p1 - p0;
H A Dgeometry.h38 static float Distance(const Point& p0, const Point& p1);
56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) argument
58 points_[0] = p0;
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp291 static float cubicCoordinateCalculation(float t, float p0, float p1, float p2, float p3) { argument
297 return (oneMinusTCubed * p0) + (3 * oneMinusTSquared * t * p1)
309 static float quadraticCoordinateCalculation(float t, float p0, float p1, float p2) { argument
311 return oneMinusT * ((oneMinusT * p0) + (t * p1)) + t * ((oneMinusT * p1) + (t * p2));
323 float t0, const SkPoint &p0, float t1, const SkPoint &p1,
326 float midX = (p1.x() + p0.x()) / 2;
327 float midY = (p1.y() + p0.y()) / 2;
322 subdividePoints(const SkPoint* points, bezierCalculation bezierFunction, float t0, const SkPoint &p0, float t1, const SkPoint &p1, float& midT, SkPoint &midPoint, float errorSquared) argument
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java1437 * @param p0 pressure at sea level
1441 public static float getAltitude(float p0, float p) { argument
1443 return 44330.0f * (1.0f - (float)Math.pow(p/p0, coef));
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dtransform.c31 #define swap2(p0,p1) \
32 t = p0; t1 = *(&(p0)+1); \
33 p0 = p1; *(&(p0)+1) = *(&(p1)+1); \
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dc1035pf.cpp272 Word16 *p0, *p1, *p2, *p3, *p4, *p5, *p6, *p7, *p8, *p9;
345 p0 = h - codvec[0];
359 s = L_mac (s, *p0++, _sign[0]);
410 Word16 *p0, *p1, *p2, *p3, *p4, *p5, *p6, *p7, *p8, *p9; local
424 p0 = &codvec[0];
429 i = *(p0++);
497 p0 = h - *(p_codvec++);
514 s = (*p0++ * *(p__sign++)) >> 7;
H A Dc2_11pf.cpp634 Word16 *p0; local
811 p0 = h - codvec[0];
821 *p0++,

Completed in 331 milliseconds

12