Home
last modified time | relevance | path

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

/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/skia/src/core/
DSkMatrix.cpp63 fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1; in reset()
64 fMat[kMSkewX] = fMat[kMSkewY] = in reset()
65 fMat[kMTransX] = fMat[kMTransY] = in reset()
66 fMat[kMPersp0] = fMat[kMPersp1] = 0; in reset()
71 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9()
72 normalize_perspective(fMat); in set9()
77 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine()
78 fMat[kMSkewX] = buffer[kASkewX]; in setAffine()
79 fMat[kMTransX] = buffer[kATransX]; in setAffine()
80 fMat[kMSkewY] = buffer[kASkewY]; in setAffine()
[all …]
/external/skia/src/effects/
DSkColorMatrix.cpp72 memset(fMat, 0, sizeof(fMat)); in setIdentity()
73 fMat[kR_Scale] = fMat[kG_Scale] = fMat[kB_Scale] = fMat[kA_Scale] = 1; in setIdentity()
78 memset(fMat, 0, sizeof(fMat)); in setScale()
79 fMat[kR_Scale] = rScale; in setScale()
80 fMat[kG_Scale] = gScale; in setScale()
81 fMat[kB_Scale] = bScale; in setScale()
82 fMat[kA_Scale] = aScale; in setScale()
87 fMat[kR_Trans] += dr; in postTranslate()
88 fMat[kG_Trans] += dg; in postTranslate()
89 fMat[kB_Trans] += db; in postTranslate()
[all …]
DSkColorMatrixFilter.cpp230 this->initState(cm.fMat); in SkColorMatrixFilter()
234 memcpy(fMatrix.fMat, array, 20 * sizeof(SkScalar)); in SkColorMatrixFilter()
368 SkASSERT(sizeof(fMatrix.fMat)/sizeof(SkScalar) == 20); in flatten()
369 buffer.writeScalarArray(fMatrix.fMat, 20); in flatten()
374 if (buffer.readScalarArray(matrix.fMat, 20)) { in CreateProc()
382 memcpy(matrix, fMatrix.fMat, 20 * sizeof(SkScalar)); in asColorMatrix()
391 SkColorMatrix::SetConcat(concat, fMatrix.fMat, innerMatrix); in newComposed()
463 const float* m = cme.fMatrix.fMat; in setData()
521 if (0 != fMatrix.fMat[kAlphaRowStartIdx + i]) { in onComputeInvariantOutput()
527 outputA += fMatrix.fMat[kAlphaRowStartIdx + i] * component; in onComputeInvariantOutput()
[all …]
/external/skia/include/core/
DSkMatrix.h137 return fMat[index];
142 return fMat[index]; in get()
145 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
146 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY()
147 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY()
148 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX()
149 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX()
150 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY()
151 SkScalar getPerspX() const { return fMat[kMPersp0]; } in getPerspX()
152 SkScalar getPerspY() const { return fMat[kMPersp1]; } in getPerspY()
[all …]
/external/skia/include/utils/
DSkMatrix44.h146 memcpy(fMat, src.fMat, sizeof(fMat)); in SkMatrix44()
156 memcpy(fMat, src.fMat, sizeof(fMat));
251 return fMat[col][row]; in get()
263 fMat[col][row] = value; in set()
431 SkMScalar fMat[4][4];
440 SkMScalar transX() const { return fMat[3][0]; } in transX()
441 SkMScalar transY() const { return fMat[3][1]; } in transY()
442 SkMScalar transZ() const { return fMat[3][2]; } in transZ()
444 SkMScalar scaleX() const { return fMat[0][0]; } in scaleX()
445 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/skia/include/effects/
DSkColorMatrix.h18 SkScalar fMat[kCount]; variable
61 return 0 == memcmp(fMat, other.fMat, sizeof(fMat));
/external/skia/tests/
DColorFilterTest.cpp198 get_brightness_matrix(0.5f, m0.fMat); in make_cf2()
199 get_grayscale_matrix(1, m1.fMat); in make_cf2()
205 get_brightness_matrix(0.5f, m0.fMat); in make_cf3()
206 get_grayscale_matrix(1, m1.fMat); in make_cf3()