| /external/chromium_org/third_party/skia/gm/ |
| poly2poly.cpp | 196 SkMatrix matrix; local 205 matrix.setPolyToPoly(src, dst, count); 206 canvas->concat(matrix);
|
| strokes.cpp | 111 SkMatrix matrix; local 112 matrix.setRotate(angle, px, py); 113 canvas->concat(matrix);
|
| techtalk1.cpp | 355 SkMatrix matrix; local 356 matrix.setRectToRect(src, dst, SkMatrix::kCenter_ScaleToFit); 358 canvas->concat(matrix);
|
| /external/chromium_org/third_party/skia/samplecode/ |
| ClockFaceView.cpp | 71 Dot2DPathEffect(SkScalar radius, const SkMatrix& matrix, 73 : Sk2DPathEffect(matrix), fRadius(radius), fPts(pts) {} 113 SkMatrix matrix; local 114 buffer.readMatrix(&matrix); 115 return SkNEW_ARGS(Dot2DPathEffect, (buffer.readScalar(), matrix, NULL));
|
| /external/chromium_org/third_party/skia/src/core/ |
| SkBitmapDevice.cpp | 224 const SkMatrix& matrix, const SkPaint& paint) { 225 draw.drawBitmap(bitmap, matrix, paint); 232 SkMatrix matrix; local 238 // Compute matrix from the two rectangles 244 matrix.setRectToRect(tmpSrc, dst, SkMatrix::kFill_ScaleToFit); 257 matrix.mapRect(&tmpDst, tmpSrc); 276 // Since we did an extract, we need to adjust the matrix accordingly 285 matrix.preTranslate(dx, dy); 297 // matrix with the CTM, and try to call drawSprite if it can. If not, 299 this->drawBitmap(draw, *bitmapPtr, matrix, paint) [all...] |
| SkBitmapProcShader.cpp | 87 static bool only_scale_and_translate(const SkMatrix& matrix) { 89 return (matrix.getType() & ~mask) == 0; 119 // Do this first, so we know the matrix can be inverted. 332 // communicates between its matrix-proc and its sampler-proc. Until we can 401 SkMatrix matrix; local 402 matrix.setIDiv(fRawBitmap.width(), fRawBitmap.height()); 415 matrix.preConcat(lmInverse); 423 // we check the matrix scale factors to determine how to interpret the filter quality setting. 436 SkMatrix matrix; local 437 matrix.setConcat(context->getMatrix(), this->getLocalMatrix()) 447 SkMatrix matrix; local [all...] |
| /external/chromium_org/third_party/skia/src/effects/ |
| SkColorFilters.cpp | 540 SkColorMatrix matrix; local 541 matrix.setScale(byte_to_scale(SkColorGetR(mul)), 545 matrix.postTranslate(SkIntToScalar(SkColorGetR(add)), 549 return SkColorMatrixFilter::Create(matrix);
|
| /external/chromium_org/third_party/skia/src/effects/gradients/ |
| SkSweepGradient.cpp | 22 SkMatrix* matrix, SkShader::TileMode* xy) const { 26 if (matrix) { 27 *matrix = fPtsToUnit; 98 const SkMatrix& matrix = fDstToIndex; local 104 proc(matrix, SkIntToScalar(x) + SK_ScalarHalf, 111 (void)matrix.fixedStepInX(SkIntToScalar(y) + SK_ScalarHalf, 117 dx = matrix.getScaleX(); 118 dy = matrix.getSkewY(); 129 proc(matrix, SkIntToScalar(x) + SK_ScalarHalf, 140 const SkMatrix& matrix = fDstToIndex local 300 SkMatrix matrix; local [all...] |
| /external/chromium_org/third_party/skia/src/utils/ |
| SkCanvasStateUtils.cpp | 49 float matrix[9]; member in struct:SkMCState 160 static void setup_MC_state(SkMCState* state, const SkMatrix& matrix, const SkRegion& clip) { 164 // capture the matrix 166 state->matrix[i] = matrix.get(i); 211 // decompose the total matrix and clip 253 setup_MC_state(&layerState->mcState, layer.matrix(), layer.clip()); 274 // reconstruct the matrix 275 SkMatrix matrix; local 277 matrix.set(i, state.matrix[i]) [all...] |
| /external/chromium_org/third_party/skia/tests/ |
| DrawBitmapRectTest.cpp | 177 SkMatrix matrix; local 180 matrix.setAll(-119.34097f, 187 c.concat(matrix); 195 matrix.setAll(0.0078740157f, 203 SkShader::kRepeat_TileMode, &matrix); 215 * Original bug was asserting that the matrix-proc had generated a (Y) value
|
| SerializationTest.cpp | 46 static void Write(SkWriteBuffer& writer, const SkMatrix* matrix) { 47 writer.writeMatrix(*matrix); 49 static void Read(SkValidatingReadBuffer& reader, SkMatrix* matrix) { 50 reader.readMatrix(matrix); 415 // Test matrix serialization 417 SkMatrix matrix = SkMatrix::I(); local 418 TestObjectSerialization(&matrix, reporter);
|
| /external/chromium_org/ui/gfx/ |
| transform.cc | 262 // We can avoid inverting and transposing the matrix since we know we want 274 // If matrix was not invertible, then just assume back face is not visible. 313 // Initialize the return value to identity if this matrix turned 324 // after being transformed by this matrix (and implicitly projected by 337 // If the matrix does have perspective component that is affected by x or y 409 // TODO(sad): Try to avoid trying to invert the matrix. 421 // TODO(sad): Try to avoid trying to invert the matrix. 435 const SkMatrix& matrix = matrix_; local 436 matrix.mapRect(&src); 448 const SkMatrix& matrix = inverse local [all...] |
| /external/eigen/Eigen/src/Core/ |
| MatrixBase.h | 21 * This class is the base that is inherited by all matrix, vector, and related expression 23 * classes for the Eigen API are Matrix, and VectorwiseOp. 26 * for all functions related to matrix inversions. 28 * \tparam Derived is the derived type, e.g. a matrix type, or an expression, etc. 31 * to take as argument any matrix, vector, or expression, just let it take a 33 * a matrix, vector, or expression \a x, prints the first row of \a x. 94 /** type of the equivalent square matrix */ 95 typedef Matrix<Scalar,EIGEN_SIZE_MAX(RowsAtCompileTime,ColsAtCompileTime), 103 /** \brief The plain matrix type corresponding to this expression. 106 * the return type of eval() is a const reference to a matrix, not a matrix! It is however guarantee 317 MatrixBase<Derived>& matrix() { return *this; } function in class:Eigen::MatrixBase 318 const MatrixBase<Derived>& matrix() const { return *this; } function in class:Eigen::MatrixBase [all...] |
| /external/eigen/Eigen/src/Eigen2Support/Geometry/ |
| Transform.h | 34 * The homography is internally represented and stored as a (Dim+1)^2 matrix which 35 * is available through the matrix() method. 40 * \sa class Matrix, class Quaternion 53 /** type of the matrix used to represent the transformation */ 54 typedef Matrix<Scalar,HDim,HDim> MatrixType; 55 /** type of the matrix used to represent the linear part of the transformation */ 56 typedef Matrix<Scalar,Dim,Dim> LinearMatrixType; 62 typedef Matrix<Scalar,Dim,1> VectorType; 99 transform->matrix() = other; 109 transform->matrix()(Dim,Dim) = Scalar(1) 143 inline const MatrixType& matrix() const { return m_matrix; } function in class:Eigen::Transform 145 inline MatrixType& matrix() { return m_matrix; } function in class:Eigen::Transform [all...] |
| /external/eigen/Eigen/src/SparseCore/ |
| SparseBlock.h | 127 _NestedMatrixType& matrix = const_cast<_NestedMatrixType&>(m_matrix);; local 129 // and/or it is not at the end of the nonzeros of the underlying matrix. 136 Index start = m_outerStart==0 ? 0 : matrix.outerIndexPtr()[m_outerStart]; // starting position of the current block 142 ? Index(matrix.data().allocatedSize()) + block_size 156 std::memcpy(&newdata.value(start+nnz), &matrix.data().value(end), tail_size*sizeof(Scalar)); 157 std::memcpy(&newdata.index(start+nnz), &matrix.data().index(end), tail_size*sizeof(Index)); 161 matrix.data().swap(newdata); 166 matrix.data().resize(start + nnz + tail_size); 168 std::memmove(&matrix.data().value(start+nnz), &matrix.data().value(end), tail_size*sizeof(Scalar)) [all...] |
| SparseSelfAdjointView.h | 18 * \brief Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix. 20 * \param MatrixType the type of the dense matrix storing the coefficients 23 * This class is an expression of a sefladjoint matrix from a triangular part of a matrix 56 typedef Matrix<Index,Dynamic,1> VectorI; 60 inline SparseSelfAdjointView(const MatrixType& matrix) : m_matrix(matrix) 68 /** \internal \returns a reference to the nested matrix */ 69 const _MatrixTypeNested& matrix() const { return m_matrix; function in class:Eigen::SparseSelfAdjointView 70 _MatrixTypeNested& matrix() { return m_matrix.const_cast_derived(); } function in class:Eigen::SparseSelfAdjointView [all...] |
| /external/freetype/src/cff/ |
| cffparse.c | 510 FT_Matrix* matrix = &dict->font_matrix; local 526 /* We expect a well-formed font matrix, this is, the matrix elements */ 532 matrix->xx = cff_parse_fixed_dynamic( data++, &scaling ); 538 /* Return default matrix in case of unlikely values. */ 543 " using default matrix\n", scaling )); 545 matrix->xx = 0x10000L; 546 matrix->yx = 0; 547 matrix->xy = 0; 548 matrix->yy = 0x10000L [all...] |
| /external/kernel-headers/original/uapi/sound/ |
| hdsp.h | 89 unsigned short matrix[HDSP_MATRIX_MIXER_SIZE]; member in struct:hdsp_mixer
|
| /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
| MovieHeaderBox.java | 42 private long[] matrix = new long[]{0x00010000, 0, 0, 0, 0x00010000, 0, 0, 0, 0x40000000}; field in class:MovieHeaderBox 84 return matrix; 121 matrix = new long[9]; 123 matrix[i] = IsoTypeReader.readUInt32(content); 151 for (int i = 0; i < matrix.length; i++) { 153 result.append("matrix").append(i).append("=").append(matrix[i]); 184 IsoTypeWriter.writeUInt32(byteBuffer, matrix[i]); 223 public void setMatrix(long[] matrix) { 224 this.matrix = matrix [all...] |
| TrackHeaderBox.java | 46 private long[] matrix = new long[]{0x00010000, 0, 0, 0, 0x00010000, 0, 0, 0, 0x40000000}; field in class:TrackHeaderBox 85 return matrix; 129 matrix = new long[9]; 131 matrix[i] = IsoTypeReader.readUInt32(content); 159 IsoTypeWriter.writeUInt32(byteBuffer, matrix[i]); 181 for (int i = 0; i < matrix.length; i++) { 183 result.append("matrix").append(i).append("=").append(matrix[i]); 221 public void setMatrix(long[] matrix) { 222 this.matrix = matrix [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/ceres-solver/internal/ceres/ |
| compressed_row_sparse_matrix_test.cc | 209 Matrix tsm_dense; 210 Matrix crsm_dense; 248 scoped_ptr<CompressedRowSparseMatrix> matrix( 252 EXPECT_EQ(matrix->num_rows(), 5); 253 EXPECT_EQ(matrix->num_cols(), 5); 254 EXPECT_EQ(matrix->num_nonzeros(), 9); 255 EXPECT_EQ(blocks, matrix->row_blocks()); 256 EXPECT_EQ(blocks, matrix->col_blocks()); 263 matrix->RightMultiply(x.data(), y.data()); 269 matrix->LeftMultiply(x.data(), y.data()) 470 CompressedRowSparseMatrix* matrix = new CompressedRowSparseMatrix(tsm); local [all...] |
| rotation_test.cc | 150 // double matrix[9]; 151 // EXPECT_THAT(matrix, IsOrthonormal()); 154 *result_listener << "Null matrix"; 183 *result_listener << "Null matrix"; 370 // Transforms a zero axis/angle to a rotation matrix. 373 double matrix[9]; local 375 AngleAxisToRotationMatrix(axis_angle, matrix); 376 EXPECT_THAT(matrix, IsOrthonormal()); 377 EXPECT_THAT(matrix, IsNear3x3Matrix(expected)); 382 double matrix[9] local 392 double matrix[9]; local 407 double matrix[9]; local 420 double matrix[9]; local 504 double matrix[9]; local 539 double matrix[9]; local 572 double matrix[9]; local [all...] |
| /external/chromium_org/cc/output/ |
| filter_operation.h | 80 const SkScalar* matrix() const { function in class:cc::FilterOperation 137 static FilterOperation CreateColorMatrixFilter(SkScalar matrix[20]) { 138 return FilterOperation(COLOR_MATRIX, matrix); 200 void set_matrix(const SkScalar matrix[20]) { 203 matrix_[i] = matrix[i]; 236 FilterOperation(FilterType, SkScalar matrix[20]);
|
| /external/chromium_org/third_party/freetype/src/cff/ |
| cffobjs.c | 632 /* Normalize the font matrix so that `matrix->xx' is 1; the */ 635 /* normalization of the matrix). */ 641 FT_Matrix* matrix = &dict->font_matrix; local 644 FT_Fixed temp = FT_ABS( matrix->yy ); 651 matrix->xx = FT_DivFix( matrix->xx, temp ); 652 matrix->yx = FT_DivFix( matrix->yx, temp ); 653 matrix->xy = FT_DivFix( matrix->xy, temp ) 668 FT_Matrix* matrix; local [all...] |