Searched refs:sx (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DColorCube.java43 final int sx = 32;
48 tb.setX(sx);
54 int dat[] = new int[sx * sy * sz];
57 for (int x = 0; x < sx; x++ ) {
59 v |= (0xff * x / (sx - 1));
62 dat[z*sy*sx + y*sx + x] = v;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DColorCube.java35 final int sx = 32;
40 tb.setX(sx);
46 int dat[] = new int[sx * sy * sz];
49 for (int x = 0; x < sx; x++ ) {
51 v |= (0xff * x / (sx - 1));
54 dat[z*sy*sx + y*sx + x] = v;
H A Dvibrance.rs40 float sx = (float)(Vib/(1+native_exp(-red*3)));
41 S = sx+1;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DColorCube.java43 final int sx = 32;
48 tb.setX(sx);
54 int dat[] = new int[sx * sy * sz];
57 for (int x = 0; x < sx; x++ ) {
59 v |= (0xff * x / (sx - 1));
62 dat[z*sy*sx + y*sx + x] = v;
/frameworks/base/core/jni/android/opengl/
H A Dpoly.h35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member in struct:android::__anon790
H A Dpoly_clip.cpp52 * s[index] is sx, sy, or sz (screen space x, y, or z).
82 wp = (float *)&q->vert[q->n].sx;
95 * using the homogeneous screen coordinates (sx, sy, sz, sw) of each vertex,
96 * testing if v->sx/v->sw > box->x0 and v->sx/v->sw < box->x1,
117 if (v->sx < -sw) x0out++; /* out on left */
118 if (v->sx > sw) x1out++; /* out on right */
142 if (x0out) CLIP_AND_SWAP(sx, -1.0f, -1.0f, p, q, r);
143 if (x1out) CLIP_AND_SWAP(sx, 1.0f, 1.0f, p, q, r);
/frameworks/base/graphics/java/android/graphics/
H A DMatrix.java59 public void setScale(float sx, float sy, float px, float py) {
64 public void setScale(float sx, float sy) {
111 public boolean preScale(float sx, float sy, float px, float py) {
117 public boolean preScale(float sx, float sy) {
159 public boolean postScale(float sx, float sy, float px, float py) {
165 public boolean postScale(float sx, float sy) {
307 * Set the matrix to scale by sx and sy, with a pivot point at (px, py).
311 public void setScale(float sx, float sy, float px, float py) { argument
312 native_setScale(native_instance, sx, sy, px, py);
315 /** Set the matrix to scale by sx an
316 setScale(float sx, float sy) argument
393 preScale(float sx, float sy, float px, float py) argument
402 preScale(float sx, float sy) argument
465 postScale(float sx, float sy, float px, float py) argument
474 postScale(float sx, float sy) argument
848 native_setScale(long native_object, float sx, float sy, float px, float py) argument
850 native_setScale(long native_object, float sx, float sy) argument
869 native_preScale(long native_object, float sx, float sy, float px, float py) argument
871 native_preScale(long native_object, float sx, float sy) argument
885 native_postScale(long native_object, float sx, float sy, float px, float py) argument
887 native_postScale(long native_object, float sx, float sy) argument
[all...]
/frameworks/base/libs/hwui/
H A DMatrix.h127 void loadScale(float sx, float sy, float sz);
128 void loadSkew(float sx, float sy);
170 void scale(float sx, float sy, float sz) { argument
172 u.loadScale(sx, sy, sz);
176 void skew(float sx, float sy) { argument
178 u.loadSkew(sx, sy);
211 void decomposeScale(float& sx, float& sy) const;
H A DStatefulBaseRenderer.h75 virtual void scale(float sx, float sy);
76 virtual void skew(float sx, float sy);
H A DStatefulBaseRenderer.cpp124 void StatefulBaseRenderer::scale(float sx, float sy) { argument
125 mSnapshot->transform->scale(sx, sy, 1.0f);
128 void StatefulBaseRenderer::skew(float sx, float sy) { argument
129 mSnapshot->transform->skew(sx, sy);
H A DDisplayListRenderer.cpp143 void DisplayListRenderer::scale(float sx, float sy) { argument
144 addStateOp(new (alloc()) ScaleOp(sx, sy));
145 StatefulBaseRenderer::scale(sx, sy);
148 void DisplayListRenderer::skew(float sx, float sy) { argument
149 addStateOp(new (alloc()) SkewOp(sx, sy));
150 StatefulBaseRenderer::skew(sx, sy);
H A DMatrix.cpp267 void Matrix4::loadScale(float sx, float sy, float sz) { argument
270 data[kScaleX] = sx;
277 void Matrix4::loadSkew(float sx, float sy) { argument
281 data[kSkewX] = sx;
479 void Matrix4::decomposeScale(float& sx, float& sy) const { argument
482 sx = copysignf(sqrtf(len), data[mat4::kScaleX]);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java261 /*package*/ static void native_setScale(long native_object, float sx, float sy, argument
268 d.mValues = getScale(sx, sy, px, py);
272 /*package*/ static void native_setScale(long native_object, float sx, float sy) { argument
278 d.mValues[0] = sx;
394 /*package*/ static void native_preScale(long native_object, float sx, float sy, argument
398 d.preTransform(getScale(sx, sy, px, py));
403 /*package*/ static void native_preScale(long native_object, float sx, float sy) { argument
406 d.preTransform(getScale(sx, sy));
467 /*package*/ static void native_postScale(long native_object, float sx, float sy, argument
471 d.postTransform(getScale(sx, s
476 native_postScale(long native_object, float sx, float sy) argument
970 getScale(float sx, float sy) argument
981 getScale(float sx, float sy, float px, float py) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java99 float sx = targetPatchSize / gestureWidth;
103 float scale = sx < sy ? sx : sy;
104 sx = scale;
113 float scale = sx < sy ? sx : sy;
114 sx = scale;
117 if (sx > sy) {
119 if (scale < sx) {
120 sx
585 scale(float[] points, float sx, float sy) argument
[all...]
H A DGestureStroke.java167 float sx = width / rect.width();
169 float scale = sx > sy ? sy : sx;
H A DGesture.java238 final float sx = (width - 2 * inset) / bounds.width();
240 final float scale = sx > sy ? sy : sx;
/frameworks/base/core/jni/android/graphics/
H A DMatrix.cpp77 static void setScale__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
79 obj->setScale(sx, sy, px, py);
81 static void setScale__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy) { argument
83 obj->setScale(sx, sy);
121 static void preScale__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
123 obj->preScale(sx, sy, px, py);
126 static void preScale__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy) { argument
128 obj->preScale(sx, sy);
162 static void postScale__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
164 obj->postScale(sx, s
167 postScale__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy) argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java242 float sx = 1.0f;
247 sx = mFromX + ((mToX - mFromX) * interpolatedTime);
254 t.getMatrix().setScale(sx, sy);
256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY);
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp49 float sx = fy * upZ - fz * upY; local
55 float uy = sz * fx - sx * fz;
56 float uz = sx * fy - sy * fx;
59 m[0] = sx;
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp60 float sx = fy * upZ - fz * upY; local
66 float uy = sz * fx - sx * fz;
67 float uz = sx * fy - sy * fx;
70 m[0] = sx;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java276 * @param sx the x scaling factor
280 public Quad scale2(float sx, float sy) { argument
281 return new Quad(mTopLeft.x * sx, mTopLeft.y * sy,
282 mTopRight.x * sx, mTopRight.y * sy,
283 mBottomLeft.x * sx, mBottomLeft.y * sy,
284 mBottomRight.x * sx, mBottomRight.y * sy);
/frameworks/base/include/private/graphics/
H A DCanvas.h69 virtual void scale(float sx, float sy) = 0;
70 virtual void skew(float sx, float sy) = 0;
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp63 float sx = fy * upZ - fz * upY; local
69 float uy = sz * fx - sx * fz;
70 float uz = sx * fy - sy * fx;
73 m[0] = sx;
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DViewGroup_Delegate.java164 int sx = child.mScrollX;
167 canvas.translate(child.mLeft - sx, child.mTop - sy);
172 int transX = -sx;
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java460 * Scales matrix m in place by sx, sy, and sz.
652 float sx = (float) Math.sin(x);
658 float sxsy = sx * sy;
667 rm[rmOffset + 6] = -sx * cy;
670 rm[rmOffset + 8] = -sxsy * cz + sx * sz;
671 rm[rmOffset + 9] = sxsy * sz + sx * cz;
716 float sx = fy * upZ - fz * upY;
721 float rls = 1.0f / Matrix.length(sx, sy, sz);
722 sx *= rls;
728 float uy = sz * fx - sx * f
[all...]

Completed in 1199 milliseconds

12