/external/skia/src/gpu/ |
GrPathUtils.h | 54 // A 2x3 matrix that goes from the 2d space coordinates to UV space where 55 // u^2-v = 0 specifies the quad. The matrix is determined by the control 60 // Initialize the matrix from the control pts 65 * Applies the matrix to vertex positions to compute UV coords. This 110 // use tolScale = 1, otherwise set based on stretchiness of the matrix. The 155 // by mapping the lines with the inverse-transpose of the matrix used to map the points. 169 // by mapping the lines with the inverse-transpose of the matrix used to map the points.
|
/external/skia/src/views/ |
SkWindow.cpp | 39 void SkWindow::setMatrix(const SkMatrix& matrix) { 40 if (fMatrix != matrix) { 41 fMatrix = matrix; 46 void SkWindow::preConcat(const SkMatrix& matrix) { 48 m.setConcat(fMatrix, matrix); 52 void SkWindow::postConcat(const SkMatrix& matrix) { 54 m.setConcat(matrix, fMatrix);
|
/frameworks/base/core/java/android/app/ |
SharedElementCallback.java | 22 import android.graphics.Matrix; 42 private Matrix mTempMatrix; 134 * @param viewToGlobalMatrix A matrix containing a transform from the view to the screen 143 public Parcelable onCaptureSharedElementSnapshot(View sharedElement, Matrix viewToGlobalMatrix, 146 mTempMatrix = new Matrix(viewToGlobalMatrix); 155 * {@link #onCaptureSharedElementSnapshot(android.view.View, android.graphics.Matrix, 165 * android.view.View, android.graphics.Matrix, android.graphics.RectF)}.
|
/frameworks/base/graphics/java/android/graphics/ |
ColorMatrix.java | 24 * 4x5 matrix for transforming the color+alpha components of a Bitmap. 25 * The matrix is stored in a single array, and its treated as follows: 89 * Assign the src colormatrix into this matrix, copying all of its values. 96 * Assign the array of floats into this matrix, copying all of its values. 204 * Set the matrix to affect the saturation of colors. A value of 0 maps the 222 * Set the matrix to convert RGB to YUV 234 * Set the matrix to convert from YUV to RGB
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
PdfManipulationService.java | 24 import android.graphics.Matrix; 119 Matrix matrix = new Matrix(); local 131 matrix.postScale(displayScale, displayScale); 136 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0); 156 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 23 import android.opengl.Matrix; 150 // Projection matrix 270 Matrix.setIdentityM(mTempTextureMatrix, 0); 271 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 351 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 357 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); 394 Matrix.translateM(mMatrices, mCurrentMatrixIndex, x, y, z); 398 // (1) we knows z = 0, (2) we inline the Matrix.translateM call 422 float[] matrix = mMatrices; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 23 import android.opengl.Matrix; 150 // Projection matrix 270 Matrix.setIdentityM(mTempTextureMatrix, 0); 271 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 351 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 357 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); 394 Matrix.translateM(mMatrices, mCurrentMatrixIndex, x, y, z); 398 // (1) we knows z = 0, (2) we inline the Matrix.translateM call 422 float[] matrix = mMatrices; local [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 23 import android.opengl.Matrix; 150 // Projection matrix 270 Matrix.setIdentityM(mTempTextureMatrix, 0); 271 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 351 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 357 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); 394 Matrix.translateM(mMatrices, mCurrentMatrixIndex, x, y, z); 398 // (1) we knows z = 0, (2) we inline the Matrix.translateM call 422 float[] matrix = mMatrices; local [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SVG/resources/ |
HereGear.svg | 247 gradientTransform="matrix(-1.093807,-1.343851,-0.536088,0.414414,-74.70740,-56.93361)" 257 gradientTransform="matrix(-1.844135,-2.265702,-0.909565,0.703121,1383.586,224.1969)" 267 gradientTransform="matrix(0.956969,1.860867e-3,-2.617506e-3,1.346081,-53.95926,-119.1654)" 277 gradientTransform="matrix(0.931347,1.811017e-3,-2.689564e-3,1.383113,-140.1857,-119.3331)" 287 gradientTransform="matrix(0.939831,1.827546e-3,-2.665267e-3,1.370630,-140.1857,-119.3331)" 297 gradientTransform="matrix(-1.955129,-2.402071,-0.857928,0.663203,1383.588,224.1969)" 319 gradientTransform="matrix(1.495686,0.000000,0.000000,0.729857,-45.18242,-37.84368)" 329 gradientTransform="matrix(-0.457973,-0.562666,-3.662576,2.831278,1383.588,224.1969)" 340 gradientTransform="matrix(-0.816079,-1.002634,-2.055392,1.588877,1383.589,224.1971)" 350 gradientTransform="matrix(-0.816080,-1.002634,-2.055392,1.588877,1383.589,224.1971) [all...] |
/external/ceres-solver/internal/ceres/ |
schur_eliminator_impl.h | 37 // Eigen has an internal threshold switching between different matrix 40 // matrix matrix product algorithm that has a higher setup cost. For 41 // matrix sizes close to this threshold, especially when the matrices 107 // matrix should already have been ordered so that all rows 203 += diag.array().square().matrix(); 211 // Gaussian elimination to them. The matrix ete stores the normal 212 // matrix corresponding to the block being eliminated and array 236 typename EigenTypes<kEBlockSize, kEBlockSize>::Matrix 242 ete = diag.array().square().matrix().asDiagonal() [all...] |
schur_eliminator.h | 54 // of the variables is such that, E'E is a block diagonal matrix. Or 56 // of the of the graph implied by the block matrix A'A. Then, this 83 // contiguous block. i.e the matrix A looks like 100 // should be non-null and the diagonal matrix corresponding to it 132 // 1. E'E is a block diagonal matrix. 147 // Where the sum is over chunks and E_k'E_k is dense matrix of size y1 186 // Since the Schur complement is a symmetric matrix, only the upper 208 // input matrix. In many problems, the sizes of one or more of these 243 // problem. Consider the first chunk in the example matrix above. 279 typename EigenTypes<kEBlockSize, kEBlockSize>::Matrix* eet [all...] |
residual_block_test.cc | 123 Matrix jacobian_rx(3, 2); 124 Matrix jacobian_ry(3, 3); 125 Matrix jacobian_rz(3, 4); 262 Matrix jacobian_rx(3, 1); // Since the first element is fixed. 263 Matrix jacobian_ry(3, 3); 264 Matrix jacobian_rz(3, 3); // Since the third element is fixed. 282 Matrix expected_jacobian_rx(3, 1); 285 Matrix expected_jacobian_ry(3, 3); 290 Matrix expected_jacobian_rz(3, 3);
|
/external/chromium_org/third_party/freetype/src/base/ |
ftcalc.c | 740 FT_Matrix_Invert( FT_Matrix* matrix ) 745 if ( !matrix ) 749 delta = FT_MulFix( matrix->xx, matrix->yy ) - 750 FT_MulFix( matrix->xy, matrix->yx ); 753 return FT_THROW( Invalid_Argument ); /* matrix can't be inverted */ 755 matrix->xy = - FT_DivFix( matrix->xy, delta ); 756 matrix->yx = - FT_DivFix( matrix->yx, delta ) [all...] |
/external/chromium_org/ui/gfx/ |
canvas.cc | 397 // 1. Get the matrix transform from the canvas. 398 // 2. Set the scale in the matrix to 1.0 while honoring the direction of the 400 // 3. Round off the X and Y translation components in the matrix. This is to 404 // 5. Set the modified matrix in the canvas. This ensures that no scaling 407 // 7. Restore the state of the canvas and the SkCanvas matrix stack. 408 SkMatrix matrix = canvas_->getTotalMatrix(); local 412 matrix.getScaleX() > 0 ? matrix.setScaleX(1.0f) : matrix.setScaleX(-1.0f); 413 matrix.getScaleY() > 0 ? matrix.setScaleY(1.0f) : matrix.setScaleY(-1.0f) [all...] |
/external/eigen/Eigen/src/Core/ |
TriangularMatrix.h | 27 * \brief Base class for triangular part in a matrix 122 * \brief Base class for triangular part in a matrix 125 * \param Mode the kind of triangular matrix expression to construct. Can be #Upper, 130 * This class represents a triangular part of a matrix, not necessarily square. Strictly speaking, for rectangular 192 inline TriangularView(const MatrixType& matrix) : m_matrix(matrix) 240 /** Assigns a triangular matrix to a triangular part of a dense matrix */ 279 /** Efficient triangular matrix times vector/matrix product * [all...] |
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ |
ftcalc.c | 738 FT_Matrix_Invert( FT_Matrix* matrix ) 743 if ( !matrix ) 747 delta = FT_MulFix( matrix->xx, matrix->yy ) - 748 FT_MulFix( matrix->xy, matrix->yx ); 751 return FT_THROW( Invalid_Argument ); /* matrix can't be inverted */ 753 matrix->xy = - FT_DivFix( matrix->xy, delta ); 754 matrix->yx = - FT_DivFix( matrix->yx, delta ) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageShow.java | 28 import android.graphics.Matrix; 122 private Matrix mShaderMatrix = new Matrix(); 218 * This function calculates a Image to Screen Transformation matrix 221 * @return Image to Screen transformation matrix 223 protected Matrix getImageToScreenMatrix(boolean reflectRotation) { 226 return new Matrix(); 228 Matrix m = GeometryMathUtils.getImageToScreenMatrix(master.getPreset().getGeometryFilters(), 238 * This function calculates a to Screen Image Transformation matrix 241 * @return Screen to Image transformation matrix [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
prog_statevars.c | 46 * but matrix queries may return as many as 16 values. 286 /* state[1] = which texture matrix or program matrix */ 290 const GLmatrix *matrix; local 303 matrix = ctx->ModelviewMatrixStack.Top; 306 matrix = ctx->ProjectionMatrixStack.Top; 309 matrix = &ctx->_ModelProjectMatrix; 313 matrix = ctx->TextureMatrixStack[index].Top; 317 matrix = ctx->ProgramMatrixStack[index].Top; 320 _mesa_problem(ctx, "Bad matrix name in _mesa_fetch_state()") [all...] |
/external/mesa3d/src/mesa/program/ |
prog_statevars.c | 46 * but matrix queries may return as many as 16 values. 286 /* state[1] = which texture matrix or program matrix */ 290 const GLmatrix *matrix; local 303 matrix = ctx->ModelviewMatrixStack.Top; 306 matrix = ctx->ProjectionMatrixStack.Top; 309 matrix = &ctx->_ModelProjectMatrix; 313 matrix = ctx->TextureMatrixStack[index].Top; 317 matrix = ctx->ProgramMatrixStack[index].Top; 320 _mesa_problem(ctx, "Bad matrix name in _mesa_fetch_state()") [all...] |
/external/opencv/cvaux/src/ |
cvlevmartrif.cpp | 103 /* Fill Jacobian matrix */ 147 /* fill derivate by projection matrix */ 176 /* projected points store as (projection by matrix P1),(projection by matrix P2),(projection by matrix P3) */ 290 CV_ERROR( CV_StsUnsupportedFormat, "resultPoints4D must be a matrix" ); 323 /* ----------- test for matrix ------------- */ 326 CV_ERROR( CV_StsUnsupportedFormat, "Each of projMatrs must be a matrix" ); 331 CV_ERROR( CV_StsUnsupportedFormat, "Each of projPoints must be a matrix" ); 336 CV_ERROR( CV_StsUnsupportedFormat, "Each of resultProjMatrs must be a matrix" ); [all...] |
/external/pdfium/core/src/fxge/Microsoft SDK/include/ |
GdiPlusFlat.h | 224 GdipFlattenPath(GpPath *path, GpMatrix* matrix, REAL flatness);
229 GpMatrix *matrix,
240 GpMatrix *matrix,
248 REAL minYres, GpMatrix *matrix, BOOL removeSelftIntersects);
253 GdipWarpPath(GpPath *path, GpMatrix* matrix,
259 GdipTransformPath(GpPath* path, GpMatrix* matrix);
262 GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds, GDIPCONST GpMatrix *matrix,
266 GdipGetPathWorldBoundsI(GpPath* path, GpRect* bounds, GDIPCONST GpMatrix *matrix,
340 // Matrix methods
344 GdipCreateMatrix(GpMatrix **matrix);
[all...] |
/external/skia/src/core/ |
SkBitmapDevice.cpp | 308 const SkMatrix& matrix, const SkPaint& paint) { 309 draw.drawBitmap(bitmap, matrix, paint); 316 SkMatrix matrix; local 322 // Compute matrix from the two rectangles 328 matrix.setRectToRect(tmpSrc, dst, SkMatrix::kFill_ScaleToFit); 341 matrix.mapRect(&tmpDst, tmpSrc); 354 // Since we did an extract, we need to adjust the matrix accordingly 363 matrix.preTranslate(dx, dy); 375 // matrix with the CTM, and try to call drawSprite if it can. If not, 377 this->drawBitmap(draw, *bitmapPtr, matrix, paint) [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkLightingImageFilter.cpp | 48 // Shift matrix components to the left, as we advance pixels to the right. 277 virtual bool asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& matrix, const SkIRect& bounds) const SK_OVERRIDE; 299 virtual bool asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& matrix, const SkIRect& bounds) const SK_OVERRIDE; 312 GrLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkMatrix& matrix); 340 const SkMatrix& matrix, 345 matrix, 363 const SkMatrix& matrix, 376 const SkMatrix& matrix, 382 matrix, 401 const SkMatrix& matrix, 1241 SkMatrix matrix; local 1448 SkMatrix matrix; local [all...] |
/external/eigen/test/ |
product_extra.cpp | 16 typedef Matrix<Scalar, 1, Dynamic> RowVectorType; 17 typedef Matrix<Scalar, Dynamic, 1> ColVectorType; 18 typedef Matrix<Scalar, Dynamic, Dynamic, 54 // test all possible conjugate combinations for the four matrix-vector product cases: 87 // test the vector-matrix product with non aligned starts 132 Matrix<float,1,Dynamic,RowMajor,1,5> a(1,4); 133 Matrix<float,Dynamic,Dynamic,ColMajor,5,1> b(4,0); 141 // Recall the matrix*vector kernel avoid unaligned loads by loading two packets and then reassemble then. 143 // memory was read outside the allocated matrix memory. Though the values were not used, this might raise segfault.
|
sparse_product.cpp | 49 typedef Matrix<Scalar,Dynamic,Dynamic> DenseMatrix; 50 typedef Matrix<Scalar,Dynamic,1> DenseVector; 51 typedef Matrix<Scalar,1,Dynamic> RowDenseVector; 58 // test matrix-matrix product 126 // sparse matrix * sparse vector 142 // test matrix - diagonal product 168 // evaluate to a dense matrix to check the .row() and .col() iterator functions 250 CALL_SUBTEST_4( (sparse_product_regression_test<SparseMatrix<double,RowMajor>, Matrix<double, Dynamic, Dynamic, RowMajor> >()) );
|