/external/mesa3d/src/glsl/tests/ |
constructor-03.glsl | 1 /* FAIL - cannot construct a matrix from a matrix in GLSL 1.10 */
|
matrix-09.glsl | 1 /* FAIL - matrix-to-matrix constructors are not available in GLSL 1.10 */
|
constructor-04.glsl | 2 /* FAIL - matrix must be only parameter to matrix constructor */
|
matrix-08.glsl | 13 /* Multiplying a 2 column, 3 row matrix with a 3 column, 2 row matrix 14 * results in a 3 column, 3 row matrix.
|
/external/skia/gm/ |
colormatrix.cpp | 50 SkColorMatrix matrix; local 54 matrix.setIdentity(); 55 filter->setMatrix(matrix); 58 matrix.setRotate(SkColorMatrix::kR_Axis, 90); 59 filter->setMatrix(matrix); 62 matrix.setRotate(SkColorMatrix::kG_Axis, 90); 63 filter->setMatrix(matrix); 66 matrix.setRotate(SkColorMatrix::kB_Axis, 90); 67 filter->setMatrix(matrix); 70 matrix.setSaturation(SkFloatToScalar(0.0f)) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Transform3dActivity.java | 25 import android.graphics.Matrix; 41 private Matrix mMatrix; 48 mMatrix = new Matrix(); 61 final Matrix matrix = mMatrix; local 63 rotate(centerX, centerY, camera, matrix, 32.0f); 64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix); 66 rotate(centerX, centerY, camera, matrix, 12.0f); 67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); 69 rotate(centerX, centerY, camera, matrix, 52.0f) [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
DumpLayer.cpp | 69 void writeMatrix(FILE* file, int indentLevel, const char* str, const TransformationMatrix& matrix) 75 matrix.m11(), matrix.m12(), matrix.m13(), matrix.m14(), 76 matrix.m21(), matrix.m22(), matrix.m23(), matrix.m24(), 77 matrix.m31(), matrix.m32(), matrix.m33(), matrix.m34() [all...] |
/external/opencv/cxcore/include/ |
cxcore.hpp | 213 CvMatrix() : matrix(0) {} 215 { matrix = cvCreateMat( rows, cols, type ); } 219 { matrix = cvInitMatHeader( hdr, rows, cols, type, data, step ); } 224 { matrix = cvCreateMatHeader( rows, cols, type ); 225 cvSetData( matrix, data, step ); } 228 { matrix = m; } 232 matrix = m.matrix; 236 CvMatrix( const char* filename, const char* matname=0, int color=-1 ) : matrix(0) 239 CvMatrix( CvFileStorage* fs, const char* mapname, const char* matname ) : matrix(0 348 CvMat* matrix; member in class:CvMatrix [all...] |
/external/srec/srec/clib/ |
matx_ops.c | 41 covdata **matrix; local 43 matrix = (covdata **) CALLOC(dimen, sizeof(covdata *), 46 matrix[ii] = (covdata *) CALLOC(dimen, sizeof(covdata), 48 return (matrix); 51 void delete_matrix(covdata **matrix, int dimen) 55 ASSERT(matrix); 57 FREE((char *)matrix[ii]); 58 FREE((char *)matrix); 62 void diagonal_elements(covdata *vector, covdata **matrix, int dim) 67 ASSERT(matrix); 127 imeldata **matrix; local [all...] |
/external/webkit/Source/WebKit/android/plugins/ |
ANPMatrixInterface.cpp | 48 static void anp_deleteMatrix(ANPMatrix* matrix) { 49 delete matrix; 52 static ANPMatrixFlag anp_getFlags(const ANPMatrix* matrix) { 53 return matrix->getType(); 60 static void anp_get3x3(const ANPMatrix* matrix, float dst[9]) { 62 dst[i] = SkScalarToFloat(matrix->get(i)); 66 static void anp_set3x3(ANPMatrix* matrix, const float src[9]) { 68 matrix->set(i, SkFloatToScalar(src[i])); 72 static void anp_setIdentity(ANPMatrix* matrix) { 73 matrix->reset() [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CameraTest.java | 20 import android.graphics.Matrix; 43 Matrix m1 = new Matrix(); 47 Matrix m2 = new Matrix(); 65 Matrix m1 = new Matrix(); 69 Matrix m2 = new Matrix(); 87 Matrix m1 = new Matrix() [all...] |
/frameworks/base/core/java/android/gesture/ |
OrientedBoundingBox.java | 19 import android.graphics.Matrix; 60 Matrix matrix = new Matrix(); local 61 matrix.setRotate(orientation); 62 matrix.postTranslate(centerX, centerY); 63 matrix.mapPoints(point); 68 matrix.mapPoints(point); 73 matrix.mapPoints(point); 78 matrix.mapPoints(point) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
RotateBitmap.java | 20 import android.graphics.Matrix; 53 public Matrix getRotateMatrix() { 54 // By default this is an identity matrix. 55 Matrix matrix = new Matrix(); local 62 matrix.preTranslate(-cx, -cy); 63 matrix.postRotate(mRotation); 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); 66 return matrix; [all...] |
ImageViewTouchBase.java | 21 import android.graphics.Matrix; 39 // This matrix is recomputed when we go from the thumbnail image to 41 protected Matrix mBaseMatrix = new Matrix(); 46 // This matrix remains the same when we go from the thumbnail image 48 protected Matrix mSuppMatrix = new Matrix(); 50 // This is the final matrix which is computed as the concatentation 51 // of the base matrix and the supplementary matrix [all...] |
/gdk/samples/PhotoEditor/src/com/android/photoeditor/ |
RectUtils.java | 19 import android.graphics.Matrix; 32 * Gets straighten matrix for the given bounds and degrees. 34 public static void getStraightenMatrix(RectF bounds, float degrees, Matrix matrix) { 35 matrix.reset(); 52 postRotateMatrix(degrees, new RectF(bounds), matrix); 53 matrix.postScale(scale, scale); 58 * Post rotates the matrix and bounds for the given bounds and degrees. 60 public static void postRotateMatrix(float degrees, RectF bounds, Matrix matrix) { [all...] |
/external/skia/samplecode/ |
SampleOverflow.cpp | 20 SkMatrix matrix; local 21 matrix.reset(); 34 matrix.set(SkMatrix::kMTransX, SkFloatToFixed(-1153.28)); 35 matrix.set(SkMatrix::kMTransY, SkFloatToFixed(1180.50)); 37 matrix.set(SkMatrix::kMScaleX, SkFloatToFixed(0.177171)); 38 matrix.set(SkMatrix::kMScaleY, SkFloatToFixed(0.177043)); 40 matrix.set(SkMatrix::kMSkewX, SkFloatToFixed(0.126968)); 41 matrix.set(SkMatrix::kMSkewY, SkFloatToFixed(-0.126876)); 43 matrix.set(SkMatrix::kMPersp0, SkFloatToFixed(0.0)); 44 matrix.set(SkMatrix::kMPersp1, SkFloatToFixed(0.0)) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
ColorMatrixColorFilter.java | 21 * 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) { 28 final float[] colorMatrix = matrix.getArray(); 34 * Create a colorfilter that transforms colors through a 4x5 color matrix. 37 * matrix. The first 20 entries of the array are copied into
|
Matrix.java | 23 * The Matrix class holds a 3x3 matrix for transforming coordinates. 24 * Matrix does not have a constructor, so it must be explicitly initialized 25 * using either reset() - to construct an identity matrix, or one of the set..() 28 public class Matrix { 41 public static Matrix IDENTITY_MATRIX = new Matrix() { 43 throw new IllegalStateException("Matrix can not be modified"); 47 public void set(Matrix src) { 102 public boolean setConcat(Matrix a, Matrix b) [all...] |
/gdk/samples/PhotoEditor/src/com/android/photoeditor/filters/ |
StraightenFilter.java | 20 import android.graphics.Matrix; 33 private final Matrix matrix = new Matrix(); field in class:StraightenFilter 47 RectUtils.getStraightenMatrix(bounds, angle, matrix); 48 matrix.mapRect(bounds); 49 matrix.postTranslate((src.width() - bounds.width()) / 2, 52 canvas.drawBitmap(src.bitmap(), matrix, paint); local
|
RotateFilter.java | 19 import android.graphics.Matrix; 28 private final Matrix matrix = new Matrix(); field in class:RotateFilter 31 matrix.setRotate(degrees); 38 dst.transform(matrix);
|
/frameworks/base/tools/layoutlib/bridge/tests/src/android/graphics/ |
Matrix_DelegateTest.java | 37 Matrix m1 = new Matrix(); 46 Matrix m1 = new Matrix(); 47 Matrix m2 = new Matrix(m1);
|
/external/skia/include/gpu/ |
GrSamplerState.h | 55 * The intepretation of the texture matrix depends on the sample mode. The 56 * texture matrix is applied both when the texture coordinates are explicit 58 * case the texture matrix is applied to the pre-view-matrix position 62 * The post-matrix texture coordinates are in normalize space with (0,0) at 65 * The matrix specifies the radial gradient parameters. 66 * (0,0) in the post-matrix space is center of the radial gradient. 68 * Matrix transforms to space where first circle is centered at the 70 * 0 and is provided by setRadial2Params. The post-matrix space is 73 * The angle from the origin of texture coordinates in post-matrix spac 146 GrMatrix* matrix() { return &fMatrix; } function in class:GrSamplerState [all...] |
/external/llvm/include/llvm/CodeGen/PBQP/ |
Math.h | 1 //===------ Math.h - PBQP Vector and Matrix classes -------------*- C++ -*-===// 111 /// \brief PBQP Matrix class 112 class Matrix { 115 /// \brief Construct a PBQP Matrix with the given dimensions. 116 Matrix(unsigned rows, unsigned cols) : 120 /// \brief Construct a PBQP Matrix with the given dimensions and initial 122 Matrix(unsigned rows, unsigned cols, PBQPNum initVal) : 127 /// \brief Copy construct a PBQP matrix. 128 Matrix(const Matrix &m) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
FullscreenToolView.java | 20 import android.graphics.Matrix; 33 private final Matrix photoMatrix = new Matrix(); 58 Matrix matrix = new Matrix(); local 59 if (matrix.setRectToRect(photoBounds, new RectF(0, 0, w, h), Matrix.ScaleToFit.CENTER)) { 60 matrix.mapRect(displayBounds, photoBounds); 63 matrix.invert(photoMatrix) [all...] |
/frameworks/rs/scriptc/ |
rs_matrix.rsh | 18 * \brief Matrix routines 27 * Set one element of a matrix. 29 * @param m The matrix to be set 50 * Get one element of a matrix. 52 * @param m The matrix to read from 72 * Set the elements of a matrix to the identity matrix. 87 * Set the elements of a matrix from an array of floats. 110 * Set the elements of a matrix from another matrix [all...] |