/external/webkit/WebCore/platform/graphics/openvg/ |
VGUtils.cpp | 41 VGMatrix::VGMatrix(const TransformationMatrix& matrix) 43 m_data[0] = matrix.m11(); 44 m_data[1] = matrix.m12(); 45 m_data[2] = matrix.m14(); 46 m_data[3] = matrix.m21(); 47 m_data[4] = matrix.m22(); 48 m_data[5] = matrix.m24(); 49 m_data[6] = matrix.m41(); 50 m_data[7] = matrix.m42(); 51 m_data[8] = matrix.m44() 56 TransformationMatrix matrix; local [all...] |
/external/skia/experimental/ |
SkSetPoly3To3_D.cpp | 16 static void computeOuterProduct(SkMatrix* matrix, 32 matrix->reset(); 33 matrix->setScaleX(SkDScalar_toScalar(tmp[0])); 34 matrix->setSkewY( SkDScalar_toScalar(tmp[1])); 35 matrix->setSkewX( SkDScalar_toScalar(tmp[2])); 36 matrix->setScaleY(SkDScalar_toScalar(tmp[3])); 44 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { 58 matrix->setConcat(dstOP, srcOP); 59 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, 60 matrix->getScaleX(), matrix->getSkewX())) [all...] |
SkSetPoly3To3.cpp | 23 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { 49 matrix->reset(); 50 matrix->setScaleX(dot(srcOP0, srcOP1, dstOP[0], dstOP[2])); 51 matrix->setSkewX( dot(srcOP2, srcOP3, dstOP[0], dstOP[2])); 52 matrix->setSkewY (dot(srcOP0, srcOP1, dstOP[1], dstOP[3])); 53 matrix->setScaleY(dot(srcOP2, srcOP3, dstOP[1], dstOP[3])); 54 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, 55 matrix->getScaleX(), matrix->getSkewX())); 56 matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY [all...] |
SkSetPoly3To3_A.cpp | 55 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { 79 matrix->reset(); 80 matrix->setScaleX(div(M[0], det)); 81 matrix->setSkewX( div(M[1], det)); 82 matrix->setSkewY (div(M[2], det)); 83 matrix->setScaleY(div(M[3], det)); 84 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, 85 matrix->getScaleX(), matrix->getSkewX())); 86 matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY [all...] |
/external/webkit/WebCore/svg/ |
SVGTransformList.cpp | 41 SVGTransform SVGTransformList::createSVGTransformFromMatrix(const AffineTransform& matrix) const 43 return SVGSVGElement::createSVGTransformFromMatrix(matrix); 58 AffineTransform matrix; 61 matrix = getItem(i, ec).matrix() * matrix; 63 return SVGTransform(matrix); 68 // TODO: We may want to build a real transform string, instead of concatting to a matrix(...). 71 AffineTransform matrix = transform.matrix(); local [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/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...] |
/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 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
|
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 { 43 * Create an identity matrix 45 public Matrix() { 50 * Create a matrix that is a (deep) copy of src 51 * @param src The matrix to copy into this matrix [all...] |
Shader.java | 53 * Return true if the shader has a non-identity local matrix. 54 * @param localM If not null, it is set to the shader's local matrix. 55 * @return true if the shader has a non-identity local matrix 57 public boolean getLocalMatrix(Matrix localM) { 62 * Set the shader's local matrix. Passing null will reset the shader's 63 * matrix to identity 64 * @param localM The shader's new local matrix, or null to specify identity 66 public void setLocalMatrix(Matrix localM) {
|
/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...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
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...] |
/external/skia/include/core/ |
SkShape.h | 18 shape's matrix (if any). 22 /** Draw the shape with the specified matrix, applied before the shape's 23 matrix (if any).
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CameraTest.java | 20 import android.graphics.Matrix; 73 args = {android.graphics.Matrix.class} 77 Matrix m1 = new Matrix(); 81 Matrix m2 = new Matrix(); 107 args = {android.graphics.Matrix.class} 111 Matrix m1 = new Matrix(); 115 Matrix m2 = new Matrix() [all...] |
/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);
|
/frameworks/base/libs/rs/ |
rsMatrix.h | 26 struct Matrix 40 void load(const Matrix *); 45 void loadMultiply(const Matrix *lhs, const Matrix *rhs); 52 void multiply(const Matrix *rhs) { 53 Matrix tmp; 58 Matrix tmp; 63 Matrix tmp; 68 Matrix tmp;
|
/frameworks/base/include/private/surfaceflinger/ |
LayerState.h | 41 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/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...] |
/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/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/WebCore/css/ |
WebKitCSSMatrix.h | 109 // The following math function return a new matrix with the 112 // Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix) 115 // Return the inverse of this matrix. Throw an exception if the matrix is not invertible 118 // Return this matrix translated by the passed values. 120 // Operation is performed as though the this matrix is multiplied by a matrix with 124 // Returns this matrix scaled by the passed values. 127 // Operation is performed as though the this matrix is multiplied by a matrix wit [all...] |