/external/skia/src/effects/gradients/ |
SkTwoPointConicalGradient_gpu.cpp | 44 // Inverse of the current local matrix is passed in then, 67 const SkMatrix& matrix, 69 return new Edge2PtConicalEffect(ctx, shader, matrix, tm); 98 const SkMatrix& matrix, 100 : INHERITED(ctx, shader, matrix, tm), 320 // Inverse of the current local matrix is passed in then, 329 SkMatrix matrix; local 331 matrix.setTranslate(-centerEnd.fX, -centerEnd.fY); 332 matrix.postScale(invRadius, invRadius); 335 matrix.mapPoints(&focalTrans, &focal, 1) 789 SkMatrix matrix; local 1313 SkMatrix matrix; local [all...] |
/external/skia/src/utils/ |
SkLuaCanvas.cpp | 108 void SkLuaCanvas::didConcat(const SkMatrix& matrix) { 109 switch (matrix.getType()) { 112 lua.pushScalar(matrix.getTranslateX(), "dx"); 113 lua.pushScalar(matrix.getTranslateY(), "dy"); 118 lua.pushScalar(matrix.getScaleX(), "sx"); 119 lua.pushScalar(matrix.getScaleY(), "sy"); 126 // lua.pushMatrix(matrix); 131 this->INHERITED::didConcat(matrix); 134 void SkLuaCanvas::didSetMatrix(const SkMatrix& matrix) { 135 this->INHERITED::didSetMatrix(matrix); [all...] |
/frameworks/base/core/java/android/view/ |
HardwareLayer.java | 21 import android.graphics.Matrix; 116 * @param matrix The transform to apply to the layer. 118 public void setTransform(Matrix matrix) { 119 nSetTransform(mFinalizer.get(), matrix.native_instance); 150 private static native void nSetTransform(long layerUpdater, long matrix);
|
/external/pdfium/xfa/src/fxgraphics/src/ |
fx_graphics.cpp | 346 FX_ERR CFX_Graphics::StrokePath(CFX_Path* path, CFX_Matrix* matrix) {
351 return RenderDeviceStrokePath(path, matrix);
358 CFX_Matrix* matrix) {
363 return RenderDeviceFillPath(path, fillMode, matrix);
370 CFX_Matrix* matrix) {
376 path->GetPathData(), (CFX_Matrix*)matrix, fillMode);
385 CFX_Matrix* matrix) {
390 return RenderDeviceDrawImage(source, point, matrix);
397 CFX_Matrix* matrix) {
402 return RenderDeviceStretchImage(source, rect, matrix);
[all...] |
/external/ceres-solver/internal/ceres/ |
block_random_access_diagonal_matrix.h | 50 // A thread safe block diagonal matrix implementation of 58 // modifying any cells when the matrix is being destroyed. 73 // Since the matrix is square, num_rows() == num_cols(). 77 // Access to the underlying matrix object. 78 const TripletSparseMatrix* matrix() const { return tsm_.get(); } function in class:ceres::internal::BlockRandomAccessDiagonalMatrix 86 // The underlying matrix object which actually stores the cells.
|
/external/eigen/Eigen/src/Eigen2Support/ |
Minor.h | 61 inline Minor(const MatrixType& matrix, 63 : m_matrix(matrix), m_row(row), m_col(col) 65 eigen_assert(row >= 0 && row < matrix.rows() 66 && col >= 0 && col < matrix.cols());
|
/external/opencv/cxcore/src/ |
cximage.cpp | 98 CV_ERROR( CV_StsUnsupportedFormat, "The object is neither an image, nor a matrix" ); 219 matrix = (CvMat*)cvMemStorageAlloc( storage, sizeof(*matrix) ); 220 cvInitMatHeader( matrix, rows, cols, type, alloc_data ? 224 matrix = 0; 249 CV_ERROR( CV_StsUnsupportedFormat, "The object is neither an image, nor a matrix" ); 340 if( !matrix ) 343 cvSave( filename, matrix, matname ); 347 save_image( filename, matrix ); 360 if( matrix ) [all...] |
/external/opencv3/modules/calib3d/test/ |
test_affine3.cpp | 57 ASSERT_EQ(0, cvtest::norm(cv::Mat(affine.matrix, false).colRange(0, 3).rowRange(0, 3) != expected, cv::NORM_L2)); 74 expected = cv::Mat(affine1.matrix.inv(cv::DECOMP_SVD)) * cv::Mat(affine2.matrix, false); 78 cv::absdiff(expected, result.matrix, diff);
|
/external/opencv3/modules/core/test/ |
test_ippasync.cpp | 21 Mat matrix, result; local 40 matrix = randomMat(matrix_Size, type, -upValue, upValue); 45 EXPECT_MAT_NEAR(matrix, result, threshold); 60 hppMat = hpp::getHpp(matrix,accel); 92 Mat matrix, result; local 121 matrix = Mat(matrix_Size.height, matrix_Size.width, type, pData, pitch); 124 matrix = randomMat(matrix_Size, type, 0, upValue); 129 EXPECT_MAT_NEAR(matrix, result, threshold); 144 hppMat = hpp::getHpp(matrix,accel);
|
/external/skia/include/core/ |
SkMultiPictureDraw.h | 37 * @param matrix if non-NULL, applied to the CTM when drawing 43 const SkMatrix* matrix = NULL,
|
/external/skia/samplecode/ |
SampleCircle.cpp | 102 SkMatrix matrix; local 103 matrix.setScale(SkIntToScalar(100), SkIntToScalar(100)); 104 matrix.postTranslate(SkIntToScalar(200), SkIntToScalar(200)); 105 canvas->concat(matrix);
|
SampleSkLayer.cpp | 115 SkMatrix matrix; local 118 layer->getLocalTransform(&matrix); 119 matrix.toString(&matrixStr); 197 SkMatrix matrix; local 198 matrix.setScale(0.5, 0.5); 199 fRootLayer->setMatrix(matrix); 227 SkMatrix matrix; local 228 fLastChild->localToGlobal(&matrix); 233 canvas->concat(matrix);
|
SampleTextOnPath.cpp | 54 SkMatrix matrix; local 77 matrix.setScale(-SK_Scalar1, SK_Scalar1); 78 matrix.postTranslate(pathLen, 0); 79 canvas->drawTextOnPath(text, len, path, &matrix, paint); 82 matrix.setScale(SK_Scalar1, -SK_Scalar1); 83 canvas->drawTextOnPath(text, len, path, &matrix, paint); 86 matrix.setScale(-SK_Scalar1, -SK_Scalar1); 87 matrix.postTranslate(pathLen, 0); 88 canvas->drawTextOnPath(text, len, path, &matrix, paint);
|
SamplePathFuzz.cpp | 211 SkMatrix matrix; local 212 matrix.reset(); 221 matrix.setTranslateX(makeScalar()); 224 matrix.setTranslateY(makeScalar()); 227 matrix.setTranslate(makeScalar(), makeScalar()); 230 matrix.setScaleX(makeScalar()); 233 matrix.setScaleY(makeScalar()); 236 matrix.setScale(makeScalar(), makeScalar()); 239 matrix.setScale(makeScalar(), makeScalar(), makeScalar(), makeScalar()); 242 matrix.setSkewX(makeScalar()) 439 SkMatrix matrix = makeMatrix(); local 678 const SkMatrix& matrix = fuzzPath.getMatrix(); variable [all...] |
/external/skia/src/core/ |
SkColorMatrixFilterRowMajor255.h | 17 /** Creates a color matrix filter that returns the same value in all four channels. */ 23 bool asColorMatrix(SkScalar matrix[20]) const override;
|
/frameworks/base/libs/hwui/ |
CanvasState.h | 61 * Manages the Snapshot stack, implementing matrix, save/restore, and clipping methods in the 71 * (getClip/Matrix), but so that quickRejection can also be used. 80 * Initializes the first snapshot, computing the projection matrix, 86 * Initializes the first snapshot, computing the projection matrix, 107 // Matrix 114 void setMatrix(const SkMatrix& matrix); 115 void setMatrix(const Matrix4& matrix); // internal only convenience method 116 void concatMatrix(const SkMatrix& matrix); 117 void concatMatrix(const Matrix4& matrix); // internal only convenience method
|
Matrix.h | 195 * If the matrix is identity or translate and/or scale. 221 friend std::ostream& operator<<(std::ostream& os, const Matrix4& matrix) { 222 if (matrix.isSimple()) { 223 os << "offset " << matrix.getTranslateX() << "x" << matrix.getTranslateY(); 224 if (!matrix.isPureTranslate()) { 225 os << ", scale " << matrix[kScaleX] << "x" << matrix[kScaleY]; local 228 os << "[" << matrix[0]; local 230 os << ", " << matrix[i] local [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
ImageShader.java | 434 public void setSourceTransform(float[] matrix) { 435 if (matrix.length != 16) { 436 throw new IllegalArgumentException("Expected 4x4 matrix for source transform!"); 439 matrix[12], 440 matrix[13], 442 matrix[0] + matrix[12], 443 matrix[1] + matrix[13], 445 matrix[4] + matrix[12] [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Alpha8BitmapActivity.java | 25 import android.graphics.Matrix; 81 Matrix matrix = new Matrix(); local 82 matrix.setScale(2.0f, 2.0f); 83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); 84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint);
|
/packages/apps/Camera2/src/com/android/camera/ |
TextureViewHelper.java | 20 import android.graphics.Matrix; 92 * transform matrix will be automatically adjusted based on the preview 123 * Transforms the preview with the identity matrix, ensuring there is no 128 mPreview.setTransform(new Matrix()); 182 * This takes a matrix to apply to the texture view and uses the screen 185 * @param matrix the matrix to apply 188 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) { 194 mPreview.setTransform(matrix); [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/include/cloog/ |
cloog.h | 46 #include <cloog/matrix.h>
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/include/cloog/ |
cloog.h | 46 #include <cloog/matrix.h>
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
FocusHelper.java | 114 int[][] matrix = FocusLogic.createSparseMatrix(cellLayout); local 116 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, 134 ^ newParent.invertLayoutHorizontally()) ? 0 : matrix.length - 1, 149 child = newParent.getChildAt(matrix.length - 1, matrix[0].length - 1); 238 int[][] matrix = null; local 242 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); 247 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); 254 matrix = FocusLogic.createSparseMatrix(iconLayout); 259 matrix = FocusLogic.createSparseMatrix(iconLayout) 367 int[][] matrix; local [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
arc.c | 29 #include "matrix.h" 141 /* Pre-compute rotation matrix entries */ 173 /* Pre-compute rotation matrix entries */ 231 struct matrix matrix; local 237 matrix_load_identity(&matrix); 238 matrix_scale(&matrix, 1.f, arc->a/arc->b); 239 matrix_rotate(&matrix, -arc->theta); 240 matrix_map_point(&matrix, 243 matrix_map_point(&matrix, [all...] |
/external/eigen/Eigen/src/LU/arch/ |
Inverse_SSE.h | 12 // The SSE code for the 4x4 float and double matrix inverse in this file 14 // http://software.intel.com/en-us/articles/optimized-matrix-library-for-use-with-the-intel-pentiumr-4-processors-sse2-instructions/ 43 static void run(const MatrixType& matrix, ResultType& result) 47 // Load the full matrix into registers 48 __m128 _L1 = matrix.template packet<MatrixAlignment>( 0); 49 __m128 _L2 = matrix.template packet<MatrixAlignment>( 4); 50 __m128 _L3 = matrix.template packet<MatrixAlignment>( 8); 51 __m128 _L4 = matrix.template packet<MatrixAlignment>(12); 54 // original matrix is divide into four 2x2 sub-matrices. Since each 55 // register holds four matrix element, the smaller matrices ar [all...] |