/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Rectangle.java | 47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f); 51 p1.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(); 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/wilhelm/src/ |
H A D | ThreadPool.h | 29 typedef void (*ClosureHandler_generic)(void *p1, void *p2, void *p3, int i1, int i2); 30 typedef void (*ClosureHandler_ppi) (void *p1, void *p2, int i1); 31 typedef void (*ClosureHandler_ppii) (void *p1, void *p2, int i1, int i2); 32 typedef void (*ClosureHandler_piipp) (void *p1, int i1, int i2, void *p2, void *p3);
|
H A D | sles_allinclusive.h | 449 #define EnqueueAsyncCallback_ppi(object, handler, p1, p2, i1) \ 451 (ClosureHandler_ppi) (handler), (p1), (p2), (i1)) 452 #define EnqueueAsyncCallback_ppii(object, handler, p1, p2, i1, i2) \ 454 (ClosureHandler_ppii) (handler), (p1), (p2), (i1), (i2)) 455 #define EnqueueAsyncCallback_piipp(object, handler, p1, i1, i2, p2, p3) \ 457 (ClosureHandler_piipp) (handler), (p1), (i1), (i2), (p2), (p3))
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.h | 38 static float Distance(const Point& p0, const Point& p1); 56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) argument 59 points_[1] = p1;
|
H A D | geometry.cpp | 40 float Point::Distance(const Point& p0, const Point& p1) { argument 41 Point diff = p1 - p0;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | FixedRotationFilter.java | 74 Point p1 = new Point(0.0f, 0.0f); 81 sourceRegion = new Quad(p3,p1,p4,p2); 85 sourceRegion = new Quad(p4,p3,p2,p1); 88 sourceRegion = new Quad(p2,p4,p1,p3); 93 sourceRegion = new Quad(p1,p2,p3,p4);
|
H A D | StraightenFilter.java | 126 Point p1 = 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)); 142 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f); 146 Quad quad = new Quad(p0, p1, p2, p3);
|
H A D | DrawRectFilter.java | 115 box.p1.x, box.p1.y,
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | me_utils.cpp | 113 UChar *p1, *p2, *p3, *p4; local 118 p1 = cand - lx - 1; 127 *hmem1++ = ((*p1++) + *p2 + *p3 + *p4 + 2) >> 2; 133 *hmem1++ = ((*p1++) + (*p2++) + *p3 + *p4 + 2) >> 2; 137 p1 += offset; 145 *hmem1++ = ((*p1++) + *p2 + (*p3++) + *p4 + 2) >> 2; 149 *hmem1 = (*p1 + *p2 + *p3 + *p4 + 2) >> 2; 169 UChar *p1, *p2, *p3, *p4; local 174 p1 = cand - lx - 1; 183 *hmem1++ = ((*p1 [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | rasterize.rs | 31 static float2 p1[12]; 64 p1[total] = f1.xy; 67 d12[total] = p1[total] - p2[total]; 69 d31[total] = p3[total] - p1[total]; 82 int p1 = index[i]; 85 f1.x = vert[p1]; 86 f1.y = vert[p1 + 1]; 87 f1.z = vert[p1 + 2]; 105 float2 d1 = loc - p1[i];
|
/frameworks/base/libs/hwui/ |
H A D | ShadowTessellator.cpp | 126 int p1 = polyLength - 1; local 129 double x1 = poly[p1].x; 130 double y1 = poly[p1].y; 137 p1 = p2; 150 // Make sure p1 -> p2 is going CW around the poly. 151 Vector2 ShadowTessellator::calculateNormal(const Vector2& p1, const Vector2& p2) { argument 152 Vector2 result = p2 - p1;
|
H A D | ShadowTessellator.h | 85 static Vector2 calculateNormal(const Vector2& p1, const Vector2& p2);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.h | 38 static float Distance(const Point& p0, const Point& p1); 56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) argument 59 points_[1] = p1;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | PathOpsActivity.java | 62 Path p1 = new Path(); 63 p1.addRect(0.0f, 0.0f, mSize, mSize, Path.Direction.CW); 70 if (!mPaths[i].op(p1, p2, ops[i])) {
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | resize.rs | 38 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))); 74 float4 p1 = cubicInterpolate(p10, p11, p12, p13, xf); 88 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | resize.rs | 38 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))); 74 float4 p1 = cubicInterpolate(p10, p11, p12, p13, xf); 88 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | resize.rs | 38 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))); 74 float4 p1 = cubicInterpolate(p10, p11, p12, p13, xf); 88 float4 p = cubicInterpolate(p0, p1, p2, p3, yf);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | p_ol_wgh.cpp | 481 Word16 *p, *p1; 517 p1 = &scal_sig[-p_max]; 521 for (j = 0; j < L_frame; j++, p++, p1++) 523 t0 = L_mac (t0, *p, *p1); 524 t1 = L_mac (t1, *p1, *p1); 589 Word16 *p1; local 630 p1 = &scal_sig[-p_max]; 634 for (j = 0; j < L_frame; j++, p++, p1++) 636 t0 = L_mac(t0, *p, *p1, pOverflo [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicResize.cpp | 78 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 108 float4 p1 = cubicInterpolate(convert_float4(yp1[xs0]), local 143 float2 p1 = cubicInterpolate(convert_float2(yp1[xs0]), local 175 float p1 = cubicInterpolate((float)yp1[xs0], (float)yp1[xs1], local 256 float4 p1 = cubicInterpolate(yp1[xs0], yp1[xs1], local 279 float2 p1 = cubicInterpolate(yp1[xs0], yp1[xs1], local 302 float p1 = cubicInterpolate(yp1[xs0], yp1[xs1], local [all...] |
/frameworks/rs/driver/runtime/ |
H A D | rs_sample.c | 130 float p1 = getElementAt1(p, next); local 131 float r = p0 * w0 + p1 * w1; 140 float p1 = getElementAt1(p, next); local 141 float r = p0 * w0 + p1 * w1; 150 float2 p1 = getElementAt2(p, next); local 151 float2 r = p0 * w0 + p1 * w1; 160 float3 p1 = getElementAt3(p, next); local 161 float3 r = p0 * w0 + p1 * w1; 170 float3 p1 = getElementAt565(p, next); local 171 float3 r = p0 * w0 + p1 * w 180 float4 p1 = getElementAt4(p, next); local 192 float p1 = getElementAt1(p, stride, nextX, locY); local 205 float p1 = getElementAt1(p, stride, nextX, locY); local 218 float2 p1 = getElementAt2(p, stride, nextX, locY); local 231 float4 p1 = getElementAt4(p, stride, nextX, locY); local 244 float4 p1 = getElementAt4(p, stride, nextX, locY); local 256 float3 p1 = getElementAt565(p, stride, nextX, locY); local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_deblocking.c | 660 u8 p0, q0, p1, q1, p2, q2; local 676 p1 = data[-2]; p0 = data[-1]; 679 ((unsigned)ABS(p1-p0) < thresholds->beta) && 687 data[-2] = (u8)(p1 + CLIP3(-tc,tc, 688 (p2 + ((p0 + q0 + 1) >> 1) - (p1 << 1)) >> 1)); 700 (p1 - q1) + 4) >> 3)); 714 p1 = data[-2]; p0 = data[-1]; 717 ((unsigned)ABS(p1-p0) < thresholds->beta) && 729 tmp = p1 + p0 + q0; 735 data[-1] = (2 * p1 771 u8 p0, q0, p1, q1, p2, q2; local 840 u8 p0, q0, p1, q1, p2, q2; local 952 u8 p0, q0, p1, q1; local 1028 u8 p0, q0, p1, q1; local 1076 u8 p0, q0, p1, q1; local [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 1024 PointerCoords p1 = new PointerCoords(); 1025 p1.x = eventX1; 1026 p1.y = eventY1; 1027 p1.pressure = 1; 1028 p1.size = 1; 1029 points1[i] = p1; 1045 PointerCoords p1 = new PointerCoords(); 1046 p1.x = endPoint1.x; 1047 p1.y = endPoint1.y; 1048 p1 [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/ |
H A D | cor_h_vec_opt.s | 50 MOV r10, r0 @p1 = h 62 LDRSH r12, [r10], #2 @*p1++ 95 MOV r10, r0 @p1 = h 108 LDRSH r12, [r10], #2 @*p1++
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/ |
H A D | cor_h_vec_neon.s | 51 MOV r10, r0 @p1 = h 63 LDRSH r12, [r10], #2 @*p1++ 96 MOV r10, r0 @p1 = h 109 LDRSH r12, [r10], #2 @*p1++
|
/frameworks/base/media/java/android/media/audiofx/ |
H A D | Equalizer.java | 405 int p1 = -1; 410 p1 = byteArrayToInt(param, 0); 421 if (p1 != -1 && v != -1) { 422 l.onParameterChange(Equalizer.this, status, p1, p2, v);
|