/frameworks/base/graphics/java/android/graphics/ |
Shader.java | 37 private Matrix mLocalMatrix; 62 * Return true if the shader has a non-identity local matrix. 63 * @param localM If not null, it is set to the shader's local matrix. 64 * @return true if the shader has a non-identity local matrix 66 public boolean getLocalMatrix(Matrix localM) { 75 * Set the shader's local matrix. Passing null will reset the shader's 76 * matrix to identity 77 * @param localM The shader's new local matrix, or null to specify identity 79 public void setLocalMatrix(Matrix localM) {
|
Camera.java | 21 * generate a matrix that can be applied, for instance, on a 113 * Computes the matrix corresponding to the current transformation 114 * and copies it to the supplied matrix object. 116 * @param matrix The matrix to copy the current transforms into 118 public void getMatrix(Matrix matrix) { 119 nativeGetMatrix(matrix.native_instance); 123 * Computes the matrix corresponding to the current transformation 126 * @param canvas The Canvas to set the transform matrix ont [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
Types.h | 44 int size; // size of vector or matrix, not size of array 45 bool matrix; member in class:TPublicType 57 matrix = false; 67 matrix = m; 87 type(t), precision(p), qualifier(q), size(s), matrix(m), array(a), arraySize(0), 92 type(p.type), precision(p.precision), qualifier(p.qualifier), size(p.size), matrix(p.matrix), array(p.array), arraySize(p.arraySize), 101 type(EbtStruct), precision(p), qualifier(EvqTemporary), size(1), matrix(false), array(false), arraySize(0), 113 matrix = copyOf.matrix; [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
Matrix2f.java | 30 * Creates a new identity 2x2 matrix 38 * Creates a new matrix and sets its values from the given 41 * @param dataArray values to set the matrix to, must be 4 50 * Return a reference to the internal array representing matrix 51 * values. Modifying this array will also change the matrix 53 * @return internal array representing the matrix 82 * Sets the matrix values to identity 93 * Sets the values of the matrix to those of the parameter 95 * @param src matrix to load the values from 102 * Sets current values to be a rotation matrix of given angl [all...] |
/frameworks/base/core/java/android/view/animation/ |
Transformation.java | 19 import android.graphics.Matrix; 30 * Indicates a transformation that has no effect (alpha = 1 and identity matrix.) 34 * Indicates a transformation that applies an alpha only (uses an identity matrix.) 38 * Indicates a transformation that applies a matrix only (alpha = 1.) 42 * Indicates a transformation that applies an alpha and a matrix. 46 protected Matrix mMatrix; 51 * Creates a new transformation with alpha = 1 and the identity matrix. 64 mMatrix = new Matrix(); 115 * @return The 3x3 Matrix representing the trnasformation to apply to the 118 public Matrix getMatrix() [all...] |
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
MatrixUtils.h | 25 /* Simple class for 3x3 matrix, mainly used to convert from 9x1 41 * identity: Specifies wether to initialize matrix to 49 * Initialize to identity matrix 61 * Conver ta 9x1 matrix to a 3x3 matrix 78 /* Matrix data */ 83 /* Simple class for 9x1 matrix, mainly used to convert from 3x3 99 * identity: Specifies wether to initialize matrix to 107 * Initialize to identity matrix 119 * Conver ta 3x3 matrix to a 9x1 matri [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
MatrixGrabber.java | 28 * Record the current modelView and projection matrix state. 29 * Has the side effect of setting the current matrix state to GL_MODELVIEW 38 * Record the current modelView matrix state. Has the side effect of 39 * setting the current matrix state to GL_MODELVIEW 47 * Record the current projection matrix state. Has the side effect of 48 * setting the current matrix state to GL_PROJECTION
|
Projector.java | 19 import android.opengl.Matrix; 43 Matrix.multiplyMM(mMVP, 0, mGrabber.mProjection, 0, mGrabber.mModelView, 0); 47 Matrix.multiplyMV(mV, 0, mMVP, 0, obj, objOffset); 57 * Get the current projection matrix. Has the side-effect of 58 * setting current matrix mode to GL_PROJECTION 67 * Get the current model view matrix. Has the side-effect of 68 * setting current matrix mode to GL_MODELVIEW
|
/external/webkit/Source/WebCore/svg/ |
SVGTransformList.cpp | 35 SVGTransform SVGTransformList::createSVGTransformFromMatrix(const SVGMatrix& matrix) const 37 return SVGSVGElement::createSVGTransformFromMatrix(matrix); 42 AffineTransform matrix; local 43 if (!concatenate(matrix)) 46 SVGTransform transform(matrix); 59 result *= at(i).matrix();
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
ImageViewTouchBase.java | 22 import android.graphics.Matrix; 44 // This matrix is recomputed when we go from the thumbnail image to 46 private Matrix mBaseMatrix = new Matrix(); 51 // This matrix remains the same when we go from the thumbnail image 53 private Matrix mSuppMatrix = new Matrix(); 55 // This is the final matrix which is computed as the concatenation 56 // of the base matrix and the supplementary matrix [all...] |
/external/skia/src/views/ |
SkImageView.cpp | 65 bool SkImageView::getImageMatrix(SkMatrix* matrix) const 70 if (matrix) 71 *matrix = *fMatrix; 76 if (matrix) 77 matrix->reset(); 82 void SkImageView::setImageMatrix(const SkMatrix* matrix) 86 if (matrix && !matrix->isIdentity()) 90 *fMatrix = *matrix; 104 // only redraw if we changed our matrix and we're not in scaleToFit mod 145 SkMatrix matrix; local [all...] |
/external/webkit/Source/WebCore/css/ |
WebKitCSSMatrix.h | 99 // The following math function return a new matrix with the 102 // Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix) 105 // Return the inverse of this matrix. Throw an exception if the matrix is not invertible 108 // Return this matrix translated by the passed values. 110 // Operation is performed as though the this matrix is multiplied by a matrix with 114 // Returns this matrix scaled by the passed values. 117 // Operation is performed as though the this matrix is multiplied by a matrix wit [all...] |
WebKitCSSMatrix.idl | 36 // These attributes are simple aliases for certain elements of the 4x4 matrix 63 // Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix) 66 // Return the inverse of this matrix. Throw an exception if the matrix is not invertible 69 // Return this matrix translated by the passed values. 73 // Returns this matrix scaled by the passed values. 78 // Returns this matrix rotated by the passed values. 83 // Returns this matrix rotated about the passed axis by the passed angle. 88 // Returns this matrix skewed along the X axis by the passed values. 92 // Returns this matrix skewed along the Y axis by the passed values [all...] |
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
torus_test.rs | 57 static void updateModelMatrix(rs_matrix4x4 *matrix, void *buffer) { 59 rsgProgramVertexLoadModelMatrix(matrix); 65 static void drawToruses(int numMeshes, rs_matrix4x4 *matrix, void *buffer) { 68 rsMatrixLoadTranslate(matrix, 0.0f, 0.0f, -7.5f); 69 rsMatrixRotate(matrix, gTorusRotation, 1.0f, 0.0f, 0.0f); 70 updateModelMatrix(matrix, buffer); 76 rsMatrixLoadTranslate(matrix, -1.6f, 0.0f, -7.5f); 77 rsMatrixRotate(matrix, gTorusRotation, 1.0f, 0.0f, 0.0f); 78 updateModelMatrix(matrix, buffer); 81 rsMatrixLoadTranslate(matrix, 1.6f, 0.0f, -7.5f) [all...] |
/external/skia/include/core/ |
SkMatrix.h | 26 The SkMatrix class holds a 3x3 matrix for transforming coordinates. 28 using either reset() - to construct an identity matrix, or one of the set 34 Use this to identify the complexity of the matrix. 38 kTranslate_Mask = 0x01, //!< set if the matrix has translation 39 kScale_Mask = 0x02, //!< set if the matrix has X or Y scale 40 kAffine_Mask = 0x04, //!< set if the matrix skews or rotates 41 kPerspective_Mask = 0x08 //!< set if the matrix is in perspective 45 that the matrix will perform. This information is used by routines 57 /** Returns true if the matrix is identity. 64 true if the matrix is identity, scale-only, or rotates a multiple o [all...] |
/external/skia/gm/ |
shapes.cpp | 86 SkMatrix matrix; local 91 matrix.setScale(-SK_Scalar1, SK_Scalar1); 92 matrix.postTranslate(SkIntToScalar(220), SkIntToScalar(240)); 93 gs->appendShape(&fGroup, matrix); 94 matrix.setTranslate(SkIntToScalar(240), 0); 95 matrix.preScale(SK_Scalar1*2, SK_Scalar1*2); 96 gs->appendShape(&fGroup, matrix);
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/ |
DoodleFilter.java | 21 import android.graphics.Matrix; 60 Matrix matrix = new Matrix(); local 61 matrix.setRectToRect(new RectF(0, 0, 1, 1), 62 new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()), Matrix.ScaleToFit.FILL); 68 doodle.getDrawingPath(matrix, drawingPath);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ShaderTest.java | 21 import android.graphics.Matrix; 44 args = {android.graphics.Matrix.class} 49 args = {android.graphics.Matrix.class} 59 Matrix m = new Matrix();
|
/external/skia/src/core/ |
SkRasterizer.cpp | 26 bool SkRasterizer::rasterize(const SkPath& fillPath, const SkMatrix& matrix, 38 if (!filter->filterMask(&dstM, srcM, matrix, &margin)) { 46 return this->onRasterize(fillPath, matrix, clipBounds, mask, mode); 51 bool SkRasterizer::onRasterize(const SkPath& fillPath, const SkMatrix& matrix, 56 fillPath.transform(matrix, &devPath);
|
/frameworks/base/include/private/surfaceflinger/ |
LayerState.h | 42 matrix.dsdx = matrix.dtdy = 1.0f; 43 matrix.dsdy = matrix.dtdx = 0.0f; 67 matrix22_t matrix; member in struct:android::layer_state_t
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
RecentsScrollViewPerformanceHelper.java | 24 import android.graphics.Matrix; 156 Matrix matrix = new Matrix(); local 157 // use use a height of 1, and then wack the matrix each time we 204 matrix.setScale(1, fadeHeight * topFadeStrength); 205 matrix.postTranslate(left, top); 206 fade.setLocalMatrix(matrix); 211 matrix.setScale(1, fadeHeight * bottomFadeStrength); 212 matrix.postRotate(180) [all...] |
/external/webkit/Source/WebKit/android/jni/ |
ViewStateSerializer.cpp | 120 void writeMatrix(SkWStream *stream, const SkMatrix& matrix) 123 stream->writeScalar(matrix[i]); 128 SkMatrix matrix; local 130 matrix.set(i, stream->readScalar()); 131 return matrix; 166 void writeTransformationMatrix(SkWStream *stream, TransformationMatrix& matrix) 170 value = matrix.m11(); 172 value = matrix.m12(); 174 value = matrix.m13(); 176 value = matrix.m14() [all...] |
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
fbosync.rs | 158 rs_matrix4x4 matrix; 159 rsMatrixLoadIdentity(&matrix); 161 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 162 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 163 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 164 rsgProgramVertexLoadModelMatrix(&matrix); 174 rs_matrix4x4 proj, matrix; 177 rsMatrixLoadIdentity(&matrix); 178 rsgProgramVertexLoadModelMatrix(&matrix); 220 rs_matrix4x4 matrix; [all...] |
fbotest.rs | 157 rs_matrix4x4 matrix; 158 rsMatrixLoadIdentity(&matrix); 160 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 161 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 162 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 163 rsgProgramVertexLoadModelMatrix(&matrix); 173 rs_matrix4x4 proj, matrix; 176 rsMatrixLoadIdentity(&matrix); 177 rsgProgramVertexLoadModelMatrix(&matrix); 208 rs_matrix4x4 matrix; [all...] |
/frameworks/base/libs/hwui/ |
SkiaShader.cpp | 25 #include "Matrix.h" 62 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): 64 setMatrix(matrix); 93 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): 94 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) { 95 updateLocalMatrix(matrix); 171 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { 177 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); 178 matrix->postTranslate(-pts[0].fX, -pts[0].fY); 179 matrix->postScale(inv, inv) [all...] |