Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
Dumatrix.h22 class matrix : public tuple<NX*NY,T> {
40 inline matrix (void) { fill_n (matrix::begin(), NX*NY, T()); } in matrix() function
43 inline const_iterator at (size_type i) const { return (matrix::begin() + i * NX); } in at()
44 inline iterator at (size_type i) { return (matrix::begin() + i * NX); } in at()
50 …inline const matrix& operator= (const matrix<NX,NY,T2>& src) { tuple_type::operator= (src); return…
51 …inline const matrix& operator= (const matrix<NX,NY,T>& src) { tuple_type::operator= (src); return …
52 …inline const matrix& operator+= (const_reference v) { tuple_type::operator+= (v); return (*this);…
53 …inline const matrix& operator-= (const_reference v) { tuple_type::operator-= (v); return (*this);…
54 …inline const matrix& operator*= (const_reference v) { tuple_type::operator*= (v); return (*this);…
55 …inline const matrix& operator/= (const_reference v) { tuple_type::operator/= (v); return (*this);…
[all …]
Dulaalgo.h20 void load_identity (matrix<NX,NY,T>& m) in load_identity()
23 for (typename matrix<NX,NY,T>::iterator i = m.begin(); i < m.end(); i += NX + 1) in load_identity()
30 matrix<NY,NY,T> operator* (const matrix<NX,NY,T>& m1, const matrix<NY,NX,T>& m2)
32 matrix<NY,NY,T> mr;
47 tuple<NX,T> operator* (const tuple<NY,T>& t, const matrix<NX,NY,T>& m)
62 void transpose (matrix<N,N,T>& m) in transpose()
75 inline void load_identity (matrix<4,4,float>& m) in load_identity()
129 tuple<4,float> operator* (const tuple<4,float>& t, const matrix<4,4,float>& m)
139 matrix<4,4,float> operator* (const matrix<4,4,float>& m1, const matrix<4,4,float>& m2)
141 matrix<4,4,float> result;
[all …]
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java60 Matrix matrix = new Matrix(); in toPath() local
61 matrix.setRotate(orientation); in toPath()
62 matrix.postTranslate(centerX, centerY); in toPath()
63 matrix.mapPoints(point); in toPath()
68 matrix.mapPoints(point); in toPath()
73 matrix.mapPoints(point); in toPath()
78 matrix.mapPoints(point); in toPath()
/frameworks/base/awt/java/awt/image/
DBandCombineOp.java120 private float matrix[][]; field in BandCombineOp
140 public BandCombineOp(float matrix[][], RenderingHints hints) { in BandCombineOp() argument
141 this.mxHeight = matrix.length; in BandCombineOp()
142 this.mxWidth = matrix[0].length; in BandCombineOp()
143 this.matrix = new float[mxHeight][mxWidth]; in BandCombineOp()
146 System.arraycopy(matrix[i], 0, this.matrix[i], 0, mxWidth); in BandCombineOp()
165 System.arraycopy(matrix[i], 0, res[i], 0, mxWidth); in getMatrix()
352 … reorderedMatrix[dstInfo.channelsOrder[j] * rmxWidth + srcInfo.channelsOrder[i]] = matrix[j][i]; in slowFilter()
355 … reorderedMatrix[(dstInfo.channelsOrder[j] + 1) * rmxWidth - 1] = matrix[j][mxWidth - 1]; in slowFilter()
409 sample += matrix[dstB][srcB] * srcPixels[i + srcB]; in verySlowFilter()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DMatrix.java67 private void addTransform(float[] matrix) { in addTransform() argument
71 tmp[0] = matrix[0] * mValues[0] + matrix[1] * mValues[3] + matrix[2] * mValues[6]; in addTransform()
72 tmp[1] = matrix[0] * mValues[1] + matrix[1] * mValues[4] + matrix[2] * mValues[7]; in addTransform()
73 tmp[2] = matrix[0] * mValues[2] + matrix[1] * mValues[5] + matrix[2] * mValues[8]; in addTransform()
76 tmp[3] = matrix[3] * mValues[0] + matrix[4] * mValues[3] + matrix[5] * mValues[6]; in addTransform()
77 tmp[4] = matrix[3] * mValues[1] + matrix[4] * mValues[4] + matrix[5] * mValues[7]; in addTransform()
78 tmp[5] = matrix[3] * mValues[2] + matrix[4] * mValues[5] + matrix[5] * mValues[8]; in addTransform()
81 tmp[6] = matrix[6] * mValues[0] + matrix[7] * mValues[3] + matrix[8] * mValues[6]; in addTransform()
82 tmp[7] = matrix[6] * mValues[1] + matrix[7] * mValues[4] + matrix[8] * mValues[7]; in addTransform()
83 tmp[8] = matrix[6] * mValues[2] + matrix[7] * mValues[5] + matrix[8] * mValues[8]; in addTransform()
[all …]
DPath.java542 public void addPath(Path src, Matrix matrix) { in addPath() argument
598 public void transform(Matrix matrix, Path dst) { in transform() argument
608 public void transform(Matrix matrix) { in transform() argument
609 transform(matrix, null /* dst */); in transform()
DCanvas.java479 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { in drawBitmap() argument
481 if (matrix.isIdentity() == false) { in drawBitmap()
490 AffineTransform matrixTx = matrix.getTransform(); in drawBitmap()
955 public void setMatrix(Matrix matrix) { in setMatrix() argument
964 g.setTransform(matrix.getTransform()); in setMatrix()
966 if (mLogger != null && matrix.hasPerspective()) { in setMatrix()
1014 public void concat(Matrix matrix) { in concat() argument
1016 super.concat(matrix); in concat()
/frameworks/base/include/private/ui/
DLayerState.h40 matrix.dsdx = matrix.dtdy = 1.0f; in layer_state_t()
41 matrix.dsdy = matrix.dtdx = 0.0f; in layer_state_t()
65 matrix22_t matrix; member
/frameworks/base/core/jni/android/graphics/
DMatrix.cpp218 … static jboolean postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) { in postSkew__FF() argument
221 return matrix->postSkew(kx_, ky_); in postSkew__FF()
224 static jboolean postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) { in postConcat() argument
225 return matrix->postConcat(*other); in postConcat()
228 …static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject d… in setRectToRect() argument
233 return matrix->setRectToRect(src_, dst_, stf); in setRectToRect()
236 static jboolean setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, in setPolyToPoly() argument
256 return matrix->setPolyToPoly(srcPt, dstPt, ptCount); in setPolyToPoly()
258 return matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst, in setPolyToPoly()
263 static jboolean invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* inverse) { in invert() argument
[all …]
DShader.cpp49 static bool Shader_getLocalMatrix(JNIEnv* env, jobject, const SkShader* shader, SkMatrix* matrix) in Shader_getLocalMatrix() argument
51 return shader ? shader->getLocalMatrix(matrix) : false; in Shader_getLocalMatrix()
54 static void Shader_setLocalMatrix(JNIEnv* env, jobject, SkShader* shader, const SkMatrix* matrix) in Shader_setLocalMatrix() argument
57 if (NULL == matrix) { in Shader_setLocalMatrix()
61 shader->setLocalMatrix(*matrix); in Shader_setLocalMatrix()
DPath.cpp227 … void addPath__PathMatrix(JNIEnv* env, jobject clazz, SkPath* obj, SkPath* src, SkMatrix* matrix) { in addPath__PathMatrix() argument
228 obj->addPath(*src, *matrix); in addPath__PathMatrix()
249 …static void transform__MatrixPath(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix, SkPat… in transform__MatrixPath() argument
250 obj->transform(*matrix, dst); in transform__MatrixPath()
253 static void transform__Matrix(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix) { in transform__Matrix() argument
254 obj->transform(*matrix); in transform__Matrix()
DPathMeasure.cpp98 SkMatrix* matrix, int flags) { in getMatrix() argument
99 … return pair->fMeasure.getMatrix(SkFloatToScalar(dist), matrix, (SkPathMeasure::MatrixFlags)flags); in getMatrix()
DCanvas.cpp218 const SkMatrix* matrix) { in concat() argument
219 canvas->concat(*matrix); in concat()
223 const SkMatrix* matrix) { in setMatrix() argument
224 if (NULL == matrix) { in setMatrix()
227 canvas->setMatrix(*matrix); in setMatrix()
566 const SkBitmap* bitmap, const SkMatrix* matrix, in drawBitmapMatrix() argument
568 canvas->drawBitmapMatrix(*bitmap, *matrix, paint); in drawBitmapMatrix()
860 SkMatrix* matrix) { in getCTM() argument
861 *matrix = canvas->getTotalMatrix(); in getCTM()
/frameworks/base/awt/java/awt/geom/
DAffineTransform.java245 public AffineTransform(float[] matrix) { in AffineTransform() argument
247 m00 = matrix[0]; in AffineTransform()
248 m10 = matrix[1]; in AffineTransform()
249 m01 = matrix[2]; in AffineTransform()
250 m11 = matrix[3]; in AffineTransform()
251 if (matrix.length > 4) { in AffineTransform()
252 m02 = matrix[4]; in AffineTransform()
253 m12 = matrix[5]; in AffineTransform()
273 public AffineTransform(double[] matrix) { in AffineTransform() argument
275 m00 = matrix[0]; in AffineTransform()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPath.java469 public void addPath(Path src, Matrix matrix) { in addPath() argument
470 native_addPath(mNativePath, src.mNativePath, matrix.native_instance); in addPath()
517 public void transform(Matrix matrix, Path dst) { in transform() argument
522 native_transform(mNativePath, matrix.native_instance, dstNative); in transform()
530 public void transform(Matrix matrix) { in transform() argument
531 native_transform(mNativePath, matrix.native_instance); in transform()
588 private static native void native_addPath(int nPath, int src, int matrix); in native_addPath() argument
593 private static native void native_transform(int nPath, int matrix, in native_transform() argument
595 private static native void native_transform(int nPath, int matrix); in native_transform() argument
DColorMatrixColorFilter.java27 public ColorMatrixColorFilter(ColorMatrix matrix) { in ColorMatrixColorFilter() argument
28 native_instance = nativeColorMatrixFilter(matrix.getArray()); in ColorMatrixColorFilter()
DCamera.java34 public void getMatrix(Matrix matrix) { in getMatrix() argument
35 nativeGetMatrix(matrix.native_instance); in getMatrix()
DPathMeasure.java106 public boolean getMatrix(float distance, Matrix matrix, int flags) { in getMatrix() argument
107 return native_getMatrix(native_instance, distance, matrix.native_instance, flags); in getMatrix()
DCanvas.java422 public void concat(Matrix matrix) { in concat() argument
423 native_concat(mNativeCanvas, matrix.native_instance); in concat()
433 public void setMatrix(Matrix matrix) { in setMatrix() argument
435 matrix == null ? 0 : matrix.native_instance); in setMatrix()
1114 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { in drawBitmap() argument
1115 nativeDrawBitmapMatrix(mNativeCanvas, bitmap.ni(), matrix.ni(), in drawBitmap()
1484 private static native void native_getCTM(int canvas, int matrix); in native_getCTM() argument
/frameworks/base/core/java/android/view/
DSurface.java226 public void setMatrix(Matrix matrix) { in setMatrix() argument
227 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) { in setMatrix()
230 super.setMatrix(matrix); in setMatrix()
233 m.preConcat(matrix); in setMatrix()
/frameworks/base/opengl/libagl/
Dmatrix.cpp134 vpt.transform.matrix.load(vpt.matrix); in ogles_validate_transform_impl()
172 matrix = gIdentityx; in loadIdentity()
193 const GLfixed* const m = matrix.m; in picker()
218 GLfixed const * const m = matrix.m; in dump()
407 memcpy(transform.matrix.m, rhs, sizeof(transform.matrix.m)); in load()
449 transform.matrix.load(top()); in validate()
485 matrix.loadIdentity(); in loadIdentity()
509 mvp4.matrix.load(temp_mvp); in update_mvp()
518 matrixf_t::multiply(mvpv, vpt.matrix, temp_mvp); in update_mvp()
519 mvp.matrix.load(mvpv); in update_mvp()
[all …]
DAndroid.mk23 matrix.cpp.arm \
/frameworks/base/awt/org/apache/harmony/awt/gl/
DCommonGraphics2D.java152 protected double[] matrix = new double[6]; field in CommonGraphics2D
662 double[] matrix = new double[6]; in drawString() local
666 at.getMatrix(matrix); in drawString()
692 double[] matrix = new double[6]; in drawGlyphVector() local
696 at.getMatrix(matrix); in drawGlyphVector()
701 jtr.drawGlyphVector(this, gv, (int)(x+matrix[4]), (int)(y+matrix[5])); in drawGlyphVector()
879 transform.getMatrix(matrix); in rotate()
885 transform.getMatrix(matrix); in rotate()
891 transform.getMatrix(matrix); in scale()
897 transform.getMatrix(matrix); in shear()
[all …]
/frameworks/base/core/java/android/widget/
DImageView.java456 public void setImageMatrix(Matrix matrix) { in setImageMatrix() argument
458 if (matrix != null && matrix.isIdentity()) { in setImageMatrix()
459 matrix = null; in setImageMatrix()
463 if (matrix == null && !mMatrix.isIdentity() || in setImageMatrix()
464 matrix != null && !mMatrix.equals(matrix)) { in setImageMatrix()
465 mMatrix.set(matrix); in setImageMatrix()
/frameworks/base/libs/ui/
DSurfaceComposerClient.cpp599 layer_state_t::matrix22_t matrix; in setMatrix() local
600 matrix.dsdx = dsdx; in setMatrix()
601 matrix.dtdx = dtdx; in setMatrix()
602 matrix.dsdy = dsdy; in setMatrix()
603 matrix.dtdy = dtdy; in setMatrix()
604 s->matrix = matrix; in setMatrix()

12