Home
last modified time | relevance | path

Searched refs:fMat (Results 1 – 19 of 19) sorted by relevance

/external/chromium_org/third_party/skia/src/utils/
DSkMatrix44.cpp24 const SkMScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==()
25 const SkMScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==()
55 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in computeTypeMask()
67 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in computeTypeMask()
68 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in computeTypeMask()
78 const SkMScalar* src = &fMat[0][0]; in asColMajorf()
89 const SkMScalar* src = &fMat[0][0]; in asColMajord()
100 const SkMScalar* src = &fMat[0][0]; in asRowMajorf()
112 const SkMScalar* src = &fMat[0][0]; in asRowMajord()
124 SkMScalar* dst = &fMat[0][0]; in setColMajorf()
[all …]
DSkCamera.cpp96 memset(fMat, 0, sizeof(fMat)); in reset()
97 fMat[0][0] = fMat[1][1] = fMat[2][2] = SK_Scalar1; in reset()
101 memset(fMat, 0, sizeof(fMat)); in setTranslate()
102 fMat[0][0] = x; in setTranslate()
103 fMat[1][1] = y; in setTranslate()
104 fMat[2][2] = z; in setTranslate()
138 fMat[i][3] += SkScalarDot(3, &fMat[i][0], 1, col, 1); in preTranslate()
169 c->fMat[i][j] = SkScalarDot(3, &a.fMat[i][0], 1, &b.fMat[0][j], 4); in setConcat()
171 c->fMat[i][3] = SkScalarDot(3, &a.fMat[i][0], 1, in setConcat()
172 &b.fMat[0][3], 4) + a.fMat[i][3]; in setConcat()
[all …]
/external/skia/src/utils/
DSkMatrix44.cpp24 const SkMScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==()
25 const SkMScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==()
55 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in computeTypeMask()
67 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in computeTypeMask()
68 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in computeTypeMask()
78 const SkMScalar* src = &fMat[0][0]; in asColMajorf()
89 const SkMScalar* src = &fMat[0][0]; in asColMajord()
100 const SkMScalar* src = &fMat[0][0]; in asRowMajorf()
112 const SkMScalar* src = &fMat[0][0]; in asRowMajord()
124 SkMScalar* dst = &fMat[0][0]; in setColMajorf()
[all …]
DSkCamera.cpp96 memset(fMat, 0, sizeof(fMat)); in reset()
97 fMat[0][0] = fMat[1][1] = fMat[2][2] = SK_Scalar1; in reset()
101 memset(fMat, 0, sizeof(fMat)); in setTranslate()
102 fMat[0][0] = x; in setTranslate()
103 fMat[1][1] = y; in setTranslate()
104 fMat[2][2] = z; in setTranslate()
138 fMat[i][3] += SkScalarDot(3, &fMat[i][0], 1, col, 1); in preTranslate()
169 c->fMat[i][j] = SkScalarDot(3, &a.fMat[i][0], 1, &b.fMat[0][j], 4); in setConcat()
171 c->fMat[i][3] = SkScalarDot(3, &a.fMat[i][0], 1, in setConcat()
172 &b.fMat[0][3], 4) + a.fMat[i][3]; in setConcat()
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkMatrix.cpp39 fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1; in reset()
40 fMat[kMSkewX] = fMat[kMSkewY] = in reset()
41 fMat[kMTransX] = fMat[kMTransY] = in reset()
42 fMat[kMPersp0] = fMat[kMPersp1] = 0; in reset()
62 if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) { in computePerspectiveTypeMask()
76 if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) { in computeTypeMask()
82 if (fMat[kMTransX] != 0 || fMat[kMTransY] != 0) { in computeTypeMask()
86 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask()
87 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask()
88 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask()
[all …]
/external/skia/src/core/
DSkMatrix.cpp39 fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1; in reset()
40 fMat[kMSkewX] = fMat[kMSkewY] = in reset()
41 fMat[kMTransX] = fMat[kMTransY] = in reset()
42 fMat[kMPersp0] = fMat[kMPersp1] = 0; in reset()
62 if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) { in computePerspectiveTypeMask()
76 if (fMat[kMPersp0] != 0 || fMat[kMPersp1] != 0 || fMat[kMPersp2] != 1) { in computeTypeMask()
82 if (fMat[kMTransX] != 0 || fMat[kMTransY] != 0) { in computeTypeMask()
86 int m00 = SkScalarAs2sCompliment(fMat[SkMatrix::kMScaleX]); in computeTypeMask()
87 int m01 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewX]); in computeTypeMask()
88 int m10 = SkScalarAs2sCompliment(fMat[SkMatrix::kMSkewY]); in computeTypeMask()
[all …]
/external/skia/src/effects/
DSkColorMatrix.cpp10 memset(fMat, 0, sizeof(fMat)); in setIdentity()
11 fMat[kR_Scale] = fMat[kG_Scale] = fMat[kB_Scale] = fMat[kA_Scale] = 1; in setIdentity()
16 memset(fMat, 0, sizeof(fMat)); in setScale()
17 fMat[kR_Scale] = rScale; in setScale()
18 fMat[kG_Scale] = gScale; in setScale()
19 fMat[kB_Scale] = bScale; in setScale()
20 fMat[kA_Scale] = aScale; in setScale()
25 fMat[kR_Trans] += dr; in postTranslate()
26 fMat[kG_Trans] += dg; in postTranslate()
27 fMat[kB_Trans] += db; in postTranslate()
[all …]
DSkColorMatrixFilter.cpp211 this->initState(cm.fMat); in SkColorMatrixFilter()
215 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter()
307 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten()
308 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten()
314 if (buffer.readScalarArray(fMatrix.fMat, 20)) { in SkColorMatrixFilter()
315 this->initState(fMatrix.fMat); in SkColorMatrixFilter()
321 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix()
370 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in getConstantColorComponents()
376 outputA += fMatrix.fMat[kAlphaRowStartIdx + i] * component; in getConstantColorComponents()
380 outputA += fMatrix.fMat[kAlphaRowTranslateIdx]; in getConstantColorComponents()
[all …]
/external/chromium_org/third_party/skia/src/effects/
DSkColorMatrix.cpp10 memset(fMat, 0, sizeof(fMat)); in setIdentity()
11 fMat[kR_Scale] = fMat[kG_Scale] = fMat[kB_Scale] = fMat[kA_Scale] = 1; in setIdentity()
16 memset(fMat, 0, sizeof(fMat)); in setScale()
17 fMat[kR_Scale] = rScale; in setScale()
18 fMat[kG_Scale] = gScale; in setScale()
19 fMat[kB_Scale] = bScale; in setScale()
20 fMat[kA_Scale] = aScale; in setScale()
25 fMat[kR_Trans] += dr; in postTranslate()
26 fMat[kG_Trans] += dg; in postTranslate()
27 fMat[kB_Trans] += db; in postTranslate()
[all …]
DSkColorMatrixFilter.cpp211 this->initState(cm.fMat); in SkColorMatrixFilter()
215 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter()
307 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten()
308 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten()
314 if (buffer.readScalarArray(fMatrix.fMat, 20)) { in SkColorMatrixFilter()
315 this->initState(fMatrix.fMat); in SkColorMatrixFilter()
321 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix()
370 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in getConstantColorComponents()
376 outputA += fMatrix.fMat[kAlphaRowStartIdx + i] * component; in getConstantColorComponents()
380 outputA += fMatrix.fMat[kAlphaRowTranslateIdx]; in getConstantColorComponents()
[all …]
/external/skia/include/core/
DSkMatrix.h120 return fMat[index];
125 return fMat[index]; in get()
128 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
129 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY()
130 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY()
131 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX()
132 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX()
133 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY()
134 SkPersp getPerspX() const { return fMat[kMPersp0]; } in getPerspX()
135 SkPersp getPerspY() const { return fMat[kMPersp1]; } in getPerspY()
[all …]
/external/chromium_org/third_party/skia/include/core/
DSkMatrix.h120 return fMat[index];
125 return fMat[index]; in get()
128 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
129 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY()
130 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY()
131 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX()
132 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX()
133 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY()
134 SkPersp getPerspX() const { return fMat[kMPersp0]; } in getPerspX()
135 SkPersp getPerspY() const { return fMat[kMPersp1]; } in getPerspY()
[all …]
/external/skia/include/utils/
DSkMatrix44.h119 memcpy(fMat, src.fMat, sizeof(fMat)); in SkMatrix44()
129 memcpy(fMat, src.fMat, sizeof(fMat));
213 return fMat[col][row]; in get()
225 fMat[col][row] = value; in set()
381 SkMScalar fMat[4][4];
390 SkMScalar transX() const { return fMat[3][0]; } in transX()
391 SkMScalar transY() const { return fMat[3][1]; } in transY()
392 SkMScalar transZ() const { return fMat[3][2]; } in transZ()
394 SkMScalar scaleX() const { return fMat[0][0]; } in scaleX()
395 SkMScalar scaleY() const { return fMat[1][1]; } in scaleY()
[all …]
DSkCamera.h38 SkScalar fMat[3][4]; member
44 fMat[row][0] = a;
45 fMat[row][1] = b;
46 fMat[row][2] = c;
47 fMat[row][3] = d;
/external/chromium_org/third_party/skia/include/utils/
DSkMatrix44.h119 memcpy(fMat, src.fMat, sizeof(fMat)); in SkMatrix44()
129 memcpy(fMat, src.fMat, sizeof(fMat));
213 return fMat[col][row]; in get()
225 fMat[col][row] = value; in set()
381 SkMScalar fMat[4][4];
390 SkMScalar transX() const { return fMat[3][0]; } in transX()
391 SkMScalar transY() const { return fMat[3][1]; } in transY()
392 SkMScalar transZ() const { return fMat[3][2]; } in transZ()
394 SkMScalar scaleX() const { return fMat[0][0]; } in scaleX()
395 SkMScalar scaleY() const { return fMat[1][1]; } in scaleY()
[all …]
DSkCamera.h38 SkScalar fMat[3][4]; member
44 fMat[row][0] = a;
45 fMat[row][1] = b;
46 fMat[row][2] = c;
47 fMat[row][3] = d;
/external/chromium_org/third_party/skia/include/effects/
DSkColorMatrix.h15 SkScalar fMat[20];
58 return 0 == memcmp(fMat, other.fMat, sizeof(fMat));
/external/skia/include/effects/
DSkColorMatrix.h15 SkScalar fMat[20];
58 return 0 == memcmp(fMat, other.fMat, sizeof(fMat));
/external/chromium_org/cc/layers/
Dheads_up_display_layer_impl.cc39 swizzle_matrix.fMat[i] = 0; in CreatePaint()
40 swizzle_matrix.fMat[0 + 5 * 2] = 1; in CreatePaint()
41 swizzle_matrix.fMat[1 + 5 * 1] = 1; in CreatePaint()
42 swizzle_matrix.fMat[2 + 5 * 0] = 1; in CreatePaint()
43 swizzle_matrix.fMat[3 + 5 * 3] = 1; in CreatePaint()