Searched defs:matrix (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java21 * Create a colorfilter that transforms colors through a 4x5 color matrix.
23 * @param matrix 4x5 matrix used to transform colors. It is copied into
24 * the filter, so changes made to the matrix after the filter
27 public ColorMatrixColorFilter(ColorMatrix matrix) { argument
28 native_instance = nativeColorMatrixFilter(matrix.getArray());
32 * Create a colorfilter that transforms colors through a 4x5 color matrix.
35 * matrix. The first 20 entries of the array are copied into
H A DCamera.java34 public void getMatrix(Matrix matrix) { argument
35 nativeGetMatrix(matrix.native_instance);
H A DPathMeasure.java98 * corresponding matrix. Returns false if there is no path, or a zero-length
99 * path was specified, in which case matrix is unchanged.
102 * @param matrix Allocated by the caller, this is set to the transformation
104 * @param flags Specified what aspects should be returned in the matrix.
106 public boolean getMatrix(float distance, Matrix matrix, int flags) { argument
107 return native_getMatrix(native_instance, distance, matrix.native_instance, flags);
H A DPath.java464 * Add a copy of src to the path, transformed by matrix
468 public void addPath(Path src, Matrix matrix) { argument
469 native_addPath(mNativePath, src.mNativePath, matrix.native_instance);
509 * Transform the points in this path by matrix, and write the answer
512 * @param matrix The matrix to apply to the path
516 public void transform(Matrix matrix, Path dst) { argument
521 native_transform(mNativePath, matrix.native_instance, dstNative);
525 * Transform the points in this path by matrix.
527 * @param matrix Th
529 transform(Matrix matrix) argument
586 native_addPath(int nPath, int src, int matrix) argument
591 native_transform(int nPath, int matrix, int dst_path) argument
593 native_transform(int nPath, int matrix) argument
[all...]
H A DCanvas.java232 /** restore the current matrix when restore() is called */
246 * Saves the current matrix and clip onto a private stack. Subsequent
257 * Based on saveFlags, can save the current matrix and clip onto a private
276 * deleted and the previous matrix/clip state is restored.
308 * deleted and the previous matrix/clip state is restored.
333 * modifications to the matrix/clip state since the last save call. It is
339 * Returns the number of matrix/clip states on the Canvas' private stack.
360 * Preconcat the current matrix with the specified translation
368 * Preconcat the current matrix with the specified scale.
376 * Preconcat the current matrix wit
422 concat(Matrix matrix) argument
433 setMatrix(Matrix matrix) argument
1114 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument
1484 native_getCTM(int canvas, int matrix) argument
[all...]
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dulaalgo.h17 /// \brief Creates an identity matrix in \p m
20 void load_identity (matrix<NX,NY,T>& m)
23 for (typename matrix<NX,NY,T>::iterator i = m.begin(); i < m.end(); i += NX + 1)
30 matrix<NY,NY,T> operator* (const matrix<NX,NY,T>& m1, const matrix<NY,NX,T>& m2) argument
32 matrix<NY,NY,T> mr;
44 /// \brief Transforms vector \p t with matrix \p m
47 tuple<NX,T> operator* (const tuple<NY,T>& t, const matrix<NX,NY,T>& m) argument
59 /// \brief Transposes (exchanges rows and columns) matrix \
129 operator *(const tuple<4,float>& t, const matrix<4,4,float>& m) argument
139 operator *(const matrix<4,4,float>& m1, const matrix<4,4,float>& m2) argument
154 operator *(const tuple<4,float>& t, const matrix<4,4,float>& m) argument
209 operator *(const tuple<4,float>& t, const matrix<4,4,float>& m) argument
[all...]
H A Dumatrix.h16 /// \class matrix umatrix.h ustl.h
22 class matrix : public tuple<NX*NY,T> { class in namespace:ustl
40 inline matrix (void) { fill_n (matrix::begin(), NX*NY, T()); } function in class:ustl::matrix
43 inline const_iterator at (size_type i) const { return (matrix::begin() + i * NX); }
44 inline iterator at (size_type i) { return (matrix::begin() + i * NX); }
50 inline const matrix& operator= (const matrix<NX,NY,T2>& src) { tuple_type::operator= (src); return (*this); } argument
51 inline const matrix& operator= (const matrix<N argument
[all...]
H A Duspecial.h206 //----{ matrix }--------------------------------------------------------
210 ostringstream& operator<< (ostringstream& os, const matrix<NX,NY,T>& v) argument
/frameworks/base/include/private/surfaceflinger/
H A DLayerState.h41 matrix.dsdx = matrix.dtdy = 1.0f;
42 matrix.dsdy = matrix.dtdx = 0.0f;
66 matrix22_t matrix; member in struct:android::layer_state_t
/frameworks/base/core/jni/android/graphics/
H A DPathMeasure.cpp98 SkMatrix* matrix, int flags) {
99 return pair->fMeasure.getMatrix(SkFloatToScalar(dist), matrix, (SkPathMeasure::MatrixFlags)flags);
97 getMatrix(JNIEnv* env, jobject clazz, PathMeasurePair* pair, jfloat dist, SkMatrix* matrix, int flags) argument
H A DShader.cpp49 static bool Shader_getLocalMatrix(JNIEnv* env, jobject, const SkShader* shader, SkMatrix* matrix) argument
51 return shader ? shader->getLocalMatrix(matrix) : false;
54 static void Shader_setLocalMatrix(JNIEnv* env, jobject, SkShader* shader, const SkMatrix* matrix) argument
57 if (NULL == matrix) {
61 shader->setLocalMatrix(*matrix);
H A DMatrix.cpp218 static jboolean postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) { argument
221 return matrix->postSkew(kx_, ky_);
224 static jboolean postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) { argument
225 return matrix->postConcat(*other);
228 static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) { argument
233 return matrix->setRectToRect(src_, dst_, stf);
236 static jboolean setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, argument
256 return matrix->setPolyToPoly(srcPt, dstPt, ptCount);
258 return matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst,
263 static jboolean invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatri argument
267 mapPoints(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray dst, int dstIndex, jfloatArray src, int srcIndex, int ptCount, bool isPts) argument
309 mapRect__RectFRectF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobjectArray dst, jobject src) argument
317 mapRadius(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat radius) argument
321 getValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
339 setValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
[all...]
H A DPath.cpp227 static void addPath__PathMatrix(JNIEnv* env, jobject clazz, SkPath* obj, SkPath* src, SkMatrix* matrix) { argument
228 obj->addPath(*src, *matrix);
249 static void transform__MatrixPath(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix, SkPath* dst) { argument
250 obj->transform(*matrix, dst);
253 static void transform__Matrix(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix) { argument
254 obj->transform(*matrix);
H A DCanvas.cpp221 const SkMatrix* matrix) {
222 canvas->concat(*matrix);
226 const SkMatrix* matrix) {
227 if (NULL == matrix) {
230 canvas->setMatrix(*matrix);
569 const SkBitmap* bitmap, const SkMatrix* matrix,
571 canvas->drawBitmapMatrix(*bitmap, *matrix, paint);
863 SkMatrix* matrix) {
864 *matrix = canvas->getTotalMatrix();
220 concat(JNIEnv* env, jobject, SkCanvas* canvas, const SkMatrix* matrix) argument
225 setMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkMatrix* matrix) argument
568 drawBitmapMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, const SkMatrix* matrix, const SkPaint* paint) argument
862 getCTM(JNIEnv* env, jobject, SkCanvas* canvas, SkMatrix* matrix) argument
/frameworks/base/awt/java/awt/image/
H A DBandCombineOp.java37 * combination of the bands in a source Raster, using a specified matrix. The
38 * number of bands in the matrix should equal to the number of bands in the
118 * The matrix.
120 private float matrix[][]; field in class:BandCombineOp
133 * Instantiates a new BandCombineOp object with the specified matrix.
135 * @param matrix
136 * the specified matrix for band combining.
140 public BandCombineOp(float matrix[][], RenderingHints hints) { argument
141 this.mxHeight = matrix.length;
142 this.mxWidth = matrix[
[all...]
/frameworks/base/awt/java/awt/geom/
H A DAffineTransform.java112 * The values of transformation matrix.
175 * transformation matrix as floats. The type is set to the default type:
179 * the m00 entry in the transformation matrix.
181 * the m10 entry in the transformation matrix.
183 * the m01 entry in the transformation matrix.
185 * the m11 entry in the transformation matrix.
187 * the m02 entry in the transformation matrix.
189 * the m12 entry in the transformation matrix.
203 * transformation matrix as doubles. The type is set to the default type:
207 * the m00 entry in the transformation matrix
245 AffineTransform(float[] matrix) argument
273 AffineTransform(double[] matrix) argument
427 getMatrix(double[] matrix) argument
[all...]
/frameworks/base/core/java/android/view/
H A DSurface.java156 // A matrix to scale the matrix set by application. This is set to null for
228 * <li> Scales the matrix in setMatrix by the application scale, except if the matrix looks
230 * uses getMatrix to keep the original matrix, set matrix of its own, then set the original
231 * matrix back. There is no perfect solution that works for all cases, and there are a lot of
236 // A temp matrix to remember what an application obtained via {@link getMatrix}
252 public void setMatrix(Matrix matrix) { argument
253 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) {
[all...]
/frameworks/base/core/java/android/widget/
H A DImageView.java151 //need inflate syntax/reader for matrix
362 * Scale using the image matrix when drawing. The image matrix can be set using
364 * <code>android:scaleType="matrix"</code>.
450 /** Return the view's optional matrix. This is applied to the
451 view's drawable when it is drawn. If there is not matrix,
453 Do not change this matrix in place. If you want a different matrix
460 public void setImageMatrix(Matrix matrix) { argument
462 if (matrix !
[all...]
/frameworks/base/libs/surfaceflinger_client/
H A DSurfaceComposerClient.cpp621 layer_state_t::matrix22_t matrix; local
622 matrix.dsdx = dsdx;
623 matrix.dtdx = dtdx;
624 matrix.dsdy = dsdy;
625 matrix.dtdy = dtdy;
626 s->matrix = matrix;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix.java24 * A matrix implementation overridden by the LayoutLib bridge.
31 * Create an identity matrix
38 * Create a matrix that is a (deep) copy of src
39 * @param src The matrix to copy into this matrix
59 * <p/>This in effect does this = this*matrix
60 * @param matrix
62 private void addTransform(float[] matrix) { argument
66 tmp[0] = matrix[0] * mValues[0] + matrix[
[all...]
H A DPath.java538 * Add a copy of src to the path, transformed by matrix
542 public void addPath(Path src, Matrix matrix) { argument
591 * Transform the points in this path by matrix, and write the answer
594 * @param matrix The matrix to apply to the path
598 public void transform(Matrix matrix, Path dst) { argument
604 * Transform the points in this path by matrix.
606 * @param matrix The matrix to apply to the path
608 public void transform(Matrix matrix) { argument
[all...]
H A DCanvas.java506 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
508 if (matrix.isIdentity() == false) {
509 // create a new graphics and apply the matrix to it
514 // get the Graphics2D current matrix
516 // get the AffineTransform from the matrix
517 AffineTransform matrixTx = matrix.getTransform();
519 // combine them so that the matrix is applied after.
522 // give it to the graphics as a new matrix replacing all previous transform
972 public void setMatrix(Matrix matrix) { argument
976 // and apply the matrix
988 concat(Matrix matrix) argument
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DCommonGraphics2D.java152 protected double[] matrix = new double[6]; field in class:CommonGraphics2D
662 double[] matrix = new double[6];
666 at.getMatrix(matrix);
692 double[] matrix = new double[6];
696 at.getMatrix(matrix);
701 jtr.drawGlyphVector(this, gv, (int)(x+matrix[4]), (int)(y+matrix[5]));
879 transform.getMatrix(matrix);
885 transform.getMatrix(matrix);
891 transform.getMatrix(matrix);
[all...]
/frameworks/base/libs/surfaceflinger/
H A DLayerBase.cpp161 bool LayerBase::setMatrix(const layer_state_t::matrix22_t& matrix) { argument
162 // TODO: check the matrix has changed
165 matrix.dsdx, matrix.dsdy, matrix.dtdx, matrix.dtdy);
227 // we may use linear filtering, if the matrix scales us
/frameworks/base/awt/com/android/internal/awt/
H A DAndroidGraphics2D.java351 Matrix matrix = new Matrix();
352 matrix.setTranslate(x, y);
354 pth.transform(matrix);
665 private float[] createAWTMatrix(float[] matrix) { argument
667 at[0] = matrix[0];
668 at[1] = matrix[3];
669 at[2] = matrix[1];
670 at[3] = matrix[4];
671 at[4] = matrix[2];
672 at[5] = matrix[
[all...]

Completed in 384 milliseconds

12