Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkMatrix44.cpp36 const SkScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==()
37 const SkScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==()
64 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in recomputeTypeMask()
78 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in recomputeTypeMask()
79 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in recomputeTypeMask()
88 const SkScalar* src = &fMat[0][0]; in asColMajorf()
95 dst[0] = fMat[0][0]; dst[1] = fMat[1][0]; dst[2] = fMat[2][0]; dst[3] = fMat[3][0]; in as3x4RowMajorf()
96 dst[4] = fMat[0][1]; dst[5] = fMat[1][1]; dst[6] = fMat[2][1]; dst[7] = fMat[3][1]; in as3x4RowMajorf()
97 dst[8] = fMat[0][2]; dst[9] = fMat[1][2]; dst[10] = fMat[2][2]; dst[11] = fMat[3][2]; in as3x4RowMajorf()
101 const SkScalar* src = &fMat[0][0]; in asColMajord()
[all …]
DSkM44.cpp23 sk4f a0 = sk4f::Load(fMat + 0); in operator ==()
24 sk4f a1 = sk4f::Load(fMat + 4); in operator ==()
25 sk4f a2 = sk4f::Load(fMat + 8); in operator ==()
26 sk4f a3 = sk4f::Load(fMat + 12); in operator ==()
28 sk4f b0 = sk4f::Load(other.fMat + 0); in operator ==()
29 sk4f b1 = sk4f::Load(other.fMat + 4); in operator ==()
30 sk4f b2 = sk4f::Load(other.fMat + 8); in operator ==()
31 sk4f b3 = sk4f::Load(other.fMat + 12); in operator ==()
45 transpose_arrays(v, fMat); in getRowMajor()
49 sk4f c0 = sk4f::Load(a.fMat + 0); in setConcat()
[all …]
DSkMatrix.cpp30 if (0 == fMat[SkMatrix::kMPersp0] && 0 == fMat[SkMatrix::kMPersp1]) { in doNormalizePerspective()
31 SkScalar p2 = fMat[SkMatrix::kMPersp2]; in doNormalizePerspective()
35 fMat[i] = SkDoubleToScalar(fMat[i] * inv); in doNormalizePerspective()
37 fMat[SkMatrix::kMPersp2] = 1; in doNormalizePerspective()
66 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9()
72 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine()
73 fMat[kMSkewX] = buffer[kASkewX]; in setAffine()
74 fMat[kMTransX] = buffer[kATransX]; in setAffine()
75 fMat[kMSkewY] = buffer[kASkewY]; in setAffine()
76 fMat[kMScaleY] = buffer[kAScaleY]; in setAffine()
[all …]
DSkDraw_vertices.cpp82 float fMat[12]; // column major member
85 return Sk4f::Load(&fMat[0]) * x + Sk4f::Load(&fMat[4]) * y + Sk4f::Load(&fMat[8]); in map()
92 fMat[ 0] = a.dot(0, b.getScaleX(), b.getSkewY()); in setConcat()
93 fMat[ 1] = a.dot(1, b.getScaleX(), b.getSkewY()); in setConcat()
94 fMat[ 2] = a.dot(2, b.getScaleX(), b.getSkewY()); in setConcat()
95 fMat[ 3] = a.dot(3, b.getScaleX(), b.getSkewY()); in setConcat()
97 fMat[ 4] = a.dot(0, b.getSkewX(), b.getScaleY()); in setConcat()
98 fMat[ 5] = a.dot(1, b.getSkewX(), b.getScaleY()); in setConcat()
99 fMat[ 6] = a.dot(2, b.getSkewX(), b.getScaleY()); in setConcat()
100 fMat[ 7] = a.dot(3, b.getSkewX(), b.getScaleY()); in setConcat()
[all …]
DSkMatrixPriv.h155 return &a == &b || 0 == memcmp(a.fMat, b.fMat, sizeof(a.fMat)); in CheapEqual()
158 static const SkScalar* M44ColMajor(const SkM44& m) { return m.fMat; } in M44ColMajor()
DSkColorFilter_Matrix.cpp225 return MakeMatrix(cm.fMat.data(), SkColorFilter_Matrix::Domain::kRGBA); in Matrix()
233 return MakeMatrix(cm.fMat.data(), SkColorFilter_Matrix::Domain::kHSLA); in HSLAMatrix()
/external/skqp/src/core/
DSkMatrix44.cpp25 const SkMScalar* SK_RESTRICT a = &fMat[0][0]; in operator ==()
26 const SkMScalar* SK_RESTRICT b = &other.fMat[0][0]; in operator ==()
56 if (0 != perspX() || 0 != perspY() || 0 != perspZ() || 1 != fMat[3][3]) { in computeTypeMask()
68 if (0 != fMat[1][0] || 0 != fMat[0][1] || 0 != fMat[0][2] || in computeTypeMask()
69 0 != fMat[2][0] || 0 != fMat[1][2] || 0 != fMat[2][1]) { in computeTypeMask()
79 const SkMScalar* src = &fMat[0][0]; in asColMajorf()
90 dst[0] = fMat[0][0]; dst[1] = fMat[1][0]; dst[2] = fMat[2][0]; dst[3] = fMat[3][0]; in as3x4RowMajorf()
91 dst[4] = fMat[0][1]; dst[5] = fMat[1][1]; dst[6] = fMat[2][1]; dst[7] = fMat[3][1]; in as3x4RowMajorf()
92 dst[8] = fMat[0][2]; dst[9] = fMat[1][2]; dst[10] = fMat[2][2]; dst[11] = fMat[3][2]; in as3x4RowMajorf()
96 const SkMScalar* src = &fMat[0][0]; in asColMajord()
[all …]
DSkMatrix.cpp67 fMat[kMScaleX] = fMat[kMScaleY] = fMat[kMPersp2] = 1; in reset()
68 fMat[kMSkewX] = fMat[kMSkewY] = in reset()
69 fMat[kMTransX] = fMat[kMTransY] = in reset()
70 fMat[kMPersp0] = fMat[kMPersp1] = 0; in reset()
75 memcpy(fMat, buffer, 9 * sizeof(SkScalar)); in set9()
76 normalize_perspective(fMat); in set9()
81 fMat[kMScaleX] = buffer[kAScaleX]; in setAffine()
82 fMat[kMSkewX] = buffer[kASkewX]; in setAffine()
83 fMat[kMTransX] = buffer[kATransX]; in setAffine()
84 fMat[kMSkewY] = buffer[kASkewY]; in setAffine()
[all …]
DSkDraw_vertices.cpp24 float fMat[12]; // column major member
27 return Sk4f::Load(&fMat[0]) * x + Sk4f::Load(&fMat[4]) * y + Sk4f::Load(&fMat[8]); in map()
31 fMat[ 0] = a.dot(0, b.getScaleX(), b.getSkewY()); in setConcat()
32 fMat[ 1] = a.dot(1, b.getScaleX(), b.getSkewY()); in setConcat()
33 fMat[ 2] = a.dot(2, b.getScaleX(), b.getSkewY()); in setConcat()
34 fMat[ 3] = a.dot(3, b.getScaleX(), b.getSkewY()); in setConcat()
36 fMat[ 4] = a.dot(0, b.getSkewX(), b.getScaleY()); in setConcat()
37 fMat[ 5] = a.dot(1, b.getSkewX(), b.getScaleY()); in setConcat()
38 fMat[ 6] = a.dot(2, b.getSkewX(), b.getScaleY()); in setConcat()
39 fMat[ 7] = a.dot(3, b.getSkewX(), b.getScaleY()); in setConcat()
[all …]
/external/skqp/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.cpp39 fMatrixFilter = SkColorFilter::MakeMatrixFilterRowMajor255(matrix.fMat); in SkLightingColorFilter()
/external/skia/src/effects/
DSkColorMatrix.cpp53 fMat.fill(0.0f); in setIdentity()
54 fMat[kR_Scale] = fMat[kG_Scale] = fMat[kB_Scale] = fMat[kA_Scale] = 1; in setIdentity()
58 fMat.fill(0.0f); in setScale()
59 fMat[kR_Scale] = rScale; in setScale()
60 fMat[kG_Scale] = gScale; in setScale()
61 fMat[kB_Scale] = bScale; in setScale()
62 fMat[kA_Scale] = aScale; in setScale()
66 fMat[kR_Trans] += dr; in postTranslate()
67 fMat[kG_Trans] += dg; in postTranslate()
68 fMat[kB_Trans] += db; in postTranslate()
[all …]
/external/skqp/include/core/
DSkMatrix.h309 return fMat[index];
321 return fMat[index]; in get()
329 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
336 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY()
344 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY()
352 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX()
359 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX()
366 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY()
372 SkScalar getPerspX() const { return fMat[kMPersp0]; } in getPerspX()
378 SkScalar getPerspY() const { return fMat[kMPersp1]; } in getPerspY()
[all …]
DSkMatrix44.h151 : fMat{{ 1, 0, 0, 0, }, in SkMatrix44()
161 memcpy(fMat, src.fMat, sizeof(fMat)); in SkMatrix44()
171 memcpy(fMat, src.fMat, sizeof(fMat));
266 return fMat[col][row]; in get()
278 fMat[col][row] = value; in set()
449 SkMScalar fMat[4][4];
459 SkMScalar transX() const { return fMat[3][0]; } in transX()
460 SkMScalar transY() const { return fMat[3][1]; } in transY()
461 SkMScalar transZ() const { return fMat[3][2]; } in transZ()
463 SkMScalar scaleX() const { return fMat[0][0]; } in scaleX()
[all …]
/external/skia/include/core/
DSkMatrix.h376 return fMat[index];
388 return fMat[index]; in get()
401 return fMat[r*3 + c]; in rc()
409 SkScalar getScaleX() const { return fMat[kMScaleX]; } in getScaleX()
416 SkScalar getScaleY() const { return fMat[kMScaleY]; } in getScaleY()
424 SkScalar getSkewY() const { return fMat[kMSkewY]; } in getSkewY()
432 SkScalar getSkewX() const { return fMat[kMSkewX]; } in getSkewX()
439 SkScalar getTranslateX() const { return fMat[kMTransX]; } in getTranslateX()
446 SkScalar getTranslateY() const { return fMat[kMTransY]; } in getTranslateY()
452 SkScalar getPerspX() const { return fMat[kMPersp0]; } in getPerspX()
[all …]
DSkM44.h140 : fMat{1, 0, 0, 0, in SkM44()
159 : fMat{SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, in SkM44()
173 : fMat{m0, m1, m2, m3, in SkM44()
241 memcpy(v, fMat, sizeof(fMat)); in getColMajor()
248 return fMat[c*4 + r]; in rc()
253 fMat[c*4 + r] = value; in setRC()
258 return {fMat[i + 0], fMat[i + 4], fMat[i + 8], fMat[i + 12]}; in row()
262 return {fMat[i*4 + 0], fMat[i*4 + 1], fMat[i*4 + 2], fMat[i*4 + 3]}; in col()
267 fMat[i + 0] = v.x; in setRow()
268 fMat[i + 4] = v.y; in setRow()
[all …]
DSkMatrix44.h77 : fMat{{ 1, 0, 0, 0, }, in SkMatrix44()
84 : fMat{{ SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN }, in SkMatrix44()
189 return fMat[col][row]; in get()
201 fMat[col][row] = value; in set()
358 SkScalar fMat[4][4];
366 SkScalar transX() const { return fMat[3][0]; } in transX()
367 SkScalar transY() const { return fMat[3][1]; } in transY()
368 SkScalar transZ() const { return fMat[3][2]; } in transZ()
370 SkScalar scaleX() const { return fMat[0][0]; } in scaleX()
371 SkScalar scaleY() const { return fMat[1][1]; } in scaleY()
[all …]
/external/skqp/src/utils/
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/skqp/include/effects/
DSkColorMatrix.h18 SkScalar fMat[kCount]; variable
57 return 0 == memcmp(fMat, other.fMat, sizeof(fMat));
/external/skia/include/effects/
DSkColorMatrix.h27 : fMat { m00, m01, m02, m03, m04, in SkColorMatrix()
43 void setRowMajor(const float src[20]) { std::copy_n(src, 20, fMat.begin()); } in setRowMajor()
44 void getRowMajor(float dst[20]) const { std::copy_n(fMat.begin(), 20, dst); } in getRowMajor()
47 std::array<float, 20> fMat;
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp69 return fMat[index]; in operator []()
74 return fMat[index]; in operator []()
79 fMat[0] = m11; in setAffine()
80 fMat[1] = m12; in setAffine()
81 fMat[2] = m13; in setAffine()
82 fMat[3] = m21; in setAffine()
83 fMat[4] = m22; in setAffine()
84 fMat[5] = m23; in setAffine()
90 fMat[0] = fMat[4] = 1.0; in reset()
91 fMat[1] = fMat[3] = in reset()
[all …]
/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp100 return fMat[index]; in operator []()
105 return fMat[index]; in operator []()
110 fMat[0] = m11; in setAffine()
111 fMat[1] = m12; in setAffine()
112 fMat[2] = m13; in setAffine()
113 fMat[3] = m21; in setAffine()
114 fMat[4] = m22; in setAffine()
115 fMat[5] = m23; in setAffine()
121 fMat[0] = fMat[4] = 1.0; in reset()
122 fMat[1] = fMat[3] = in reset()
[all …]
/external/skqp/include/utils/
DSkCamera.h39 SkScalar fMat[3][4]; member
45 fMat[row][0] = a;
46 fMat[row][1] = b;
47 fMat[row][2] = c;
48 fMat[row][3] = d;
/external/skqp/gm/
Dcolor4f.cpp32 return SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat); in make_cf0()
38 auto a = SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat); in make_cf1()
44 return a->makeComposed(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat)); in make_cf1()
/external/skqp/tests/
DPaintTest.cpp323 paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat));
327 paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat));

12