Home
last modified time | relevance | path

Searched refs:SkMatrix44 (Results 1 – 25 of 46) sorted by relevance

12

/external/skia/tests/
DMatrix44Test.cpp56 static bool nearly_equal(const SkMatrix44& a, const SkMatrix44& b) { in nearly_equal()
68 static bool is_identity(const SkMatrix44& m) { in is_identity()
69 SkMatrix44 identity(SkMatrix44::kIdentity_Constructor); in is_identity()
80 SkMatrix44* placeholderMatrix = new SkMatrix44(SkMatrix44::kUninitialized_Constructor); in test_constructor()
81 std::unique_ptr<SkMatrix44> deleteMe(placeholderMatrix); in test_constructor()
92SkMatrix44* testMatrix = new(placeholderMatrix) SkMatrix44(SkMatrix44::kUninitialized_Constructor); in test_constructor()
103 testMatrix = new(placeholderMatrix) SkMatrix44(SkMatrix44::kIdentity_Constructor); in test_constructor()
106 REPORTER_ASSERT(reporter, *testMatrix == SkMatrix44::I()); in test_constructor()
109 SkMatrix44 scaleMatrix(SkMatrix44::kUninitialized_Constructor); in test_constructor()
112 testMatrix = new(&scaleMatrix) SkMatrix44(SkMatrix::I()); in test_constructor()
[all …]
DColorSpaceTest.cpp31 const SkMatrix44& mat = *csXYZ->toXYZD50(); in test_space()
109 SkMatrix44 srgbToxyzD50(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
144 SkMatrix44 srgbToxyzD50(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
185 SkMatrix44 adobeToxyzD50(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
266 SkMatrix44 toXYZ(SkMatrix44::kIdentity_Constructor); in DEF_TEST()
291 SkMatrix44 toXYZ(SkMatrix44::kIdentity_Constructor); in DEF_TEST()
316 static inline bool matrix_almost_equal(const SkMatrix44& a, const SkMatrix44& b) { in matrix_almost_equal()
336 const SkMatrix44& reference) { in check_primaries()
337 SkMatrix44 toXYZ(SkMatrix44::kUninitialized_Constructor); in check_primaries()
354 SkMatrix44 srgbToXYZ(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
[all …]
DICCTest.cpp24 SkMatrix44 result(SkMatrix44::kUninitialized_Constructor); in test_to_xyz_d50()
103 const SkMatrix44& toXYZD50, SkColorSpace* reference, in test_write_icc()
124 SkMatrix44 adobeMatrix(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
137 SkMatrix44 srgbMatrix(SkMatrix44::kUninitialized_Constructor); in DEF_TEST()
164 SkMatrix44(SkMatrix44::kIdentity_Constructor), nullptr))); in MakeICC()
/external/skia/bench/
DMatrix44Bench.cpp47 , fM0(SkMatrix44::kIdentity_Constructor) in EqualsMatrix44Bench()
48 , fM1(SkMatrix44::kIdentity_Constructor) in EqualsMatrix44Bench()
49 , fM2(SkMatrix44::kIdentity_Constructor) in EqualsMatrix44Bench()
63 SkMatrix44 fM0, fM1, fM2;
71 , mat(SkMatrix44::kIdentity_Constructor) in SetIdentityMatrix44Bench()
87 SkMatrix44 mat;
95 , fM0(SkMatrix44::kUninitialized_Constructor) in PreScaleMatrix44Bench()
107 SkMatrix44 fM0;
116 , fM0(SkMatrix44::kUninitialized_Constructor) in InvertMatrix44Bench()
117 , fM1(SkMatrix44::kUninitialized_Constructor) in InvertMatrix44Bench()
[all …]
DColorCodecBench.cpp76 SkMatrix44 matrix = SkMatrix44(SkMatrix44::kUninitialized_Constructor); in onDelayedSetup()
/external/skia/include/core/
DSkMatrix44.h135 class SK_API SkMatrix44 {
145 SkMatrix44(Uninitialized_Constructor) {} in SkMatrix44() function
147 constexpr SkMatrix44(Identity_Constructor) in SkMatrix44() function
156 SkMatrix44() { this->setIdentity(); } in SkMatrix44() function
158 SkMatrix44(const SkMatrix44& src) { in SkMatrix44() function
163 SkMatrix44(const SkMatrix44& a, const SkMatrix44& b) { in SkMatrix44() function
167 SkMatrix44& operator=(const SkMatrix44& src) {
175 bool operator==(const SkMatrix44& other) const;
176 bool operator!=(const SkMatrix44& other) const {
188 SkMatrix44(const SkMatrix&);
[all …]
DSkColorSpace.h29 bool toXYZD50(SkMatrix44* toXYZD50) const;
97 static sk_sp<SkColorSpace> MakeRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50);
100 const SkMatrix44& toXYZD50);
131 bool toXYZD50(SkMatrix44* toXYZD50) const;
DSkICC.h17 class SkMatrix44; variable
37 bool toXYZD50(SkMatrix44* toXYZD50) const;
99 static sk_sp<SkData> WriteToICC(const SkColorSpaceTransferFn& fn, const SkMatrix44& toXYZD50);
/external/skia/src/core/
DSkMatrix44.cpp15 bool SkMatrix44::operator==(const SkMatrix44& other) const { in operator ==()
52 int SkMatrix44::computeTypeMask() const { in computeTypeMask()
77 void SkMatrix44::asColMajorf(float dst[]) const { in asColMajorf()
88 void SkMatrix44::as3x4RowMajorf(float dst[]) const { in as3x4RowMajorf()
94 void SkMatrix44::asColMajord(double dst[]) const { in asColMajord()
105 void SkMatrix44::asRowMajorf(float dst[]) const { in asRowMajorf()
117 void SkMatrix44::asRowMajord(double dst[]) const { in asRowMajord()
129 void SkMatrix44::setColMajorf(const float src[]) { in setColMajorf()
142 void SkMatrix44::setColMajord(const double src[]) { in setColMajord()
155 void SkMatrix44::setRowMajorf(const float src[]) { in setRowMajorf()
[all …]
DSkColorSpace_XYZ.h17 const SkMatrix44* toXYZD50() const override { return &fToXYZD50; } in toXYZD50()
20 const SkMatrix44* fromXYZD50() const override;
39 SkColorSpace_XYZ(SkGammaNamed gammaNamed, const SkMatrix44& toXYZ);
42 const SkMatrix44& toXYZ, sk_sp<SkData> profileData);
47 const SkMatrix44 fToXYZD50;
50 mutable SkMatrix44 fFromXYZD50;
DSkColorSpace_A2B.h30 const SkMatrix44* toXYZD50() const override { in toXYZD50()
44 const SkMatrix44* fromXYZD50() const override { in fromXYZD50()
75 , fMatrix(SkMatrix44::kUninitialized_Constructor) in Element()
84 , fMatrix(SkMatrix44::kUninitialized_Constructor) in Element()
97 , fMatrix(SkMatrix44::kUninitialized_Constructor) in Element()
102 explicit Element(const SkMatrix44& matrix) in Element()
133 const SkMatrix44& matrix() const { in matrix()
147 SkMatrix44 fMatrix;
DSkColorSpace.cpp15 bool SkColorSpacePrimaries::toXYZD50(SkMatrix44* toXYZ_D50) const { in toXYZD50()
96 static bool xyz_almost_equal(const SkMatrix44& toXYZD50, const float* standard) { in xyz_almost_equal()
115 sk_sp<SkColorSpace> SkColorSpace_Base::MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50) in MakeRGB()
143 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50) { in MakeRGB()
155 const SkMatrix44& toXYZD50) { in MakeRGB()
187 SkMatrix44 toXYZD50(SkMatrix44::kUninitialized_Constructor); in MakeRGB()
193 SkMatrix44 toXYZD50(SkMatrix44::kUninitialized_Constructor); in MakeRGB()
210 SkMatrix44 srgbToxyzD50(SkMatrix44::kUninitialized_Constructor); in MakeNamed()
221 SkMatrix44 adobergbToxyzD50(SkMatrix44::kUninitialized_Constructor); in MakeNamed()
232 SkMatrix44 srgbToxyzD50(SkMatrix44::kUninitialized_Constructor); in MakeNamed()
[all …]
DSkColorSpace_XYZ.cpp13 SkColorSpace_XYZ::SkColorSpace_XYZ(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50) in SkColorSpace_XYZ()
19 , fFromXYZD50(SkMatrix44::kUninitialized_Constructor) in SkColorSpace_XYZ()
23 const SkMatrix44& toXYZD50, sk_sp<SkData> profileData) in SkColorSpace_XYZ()
29 , fFromXYZD50(SkMatrix44::kUninitialized_Constructor) { in SkColorSpace_XYZ()
40 const SkMatrix44* SkColorSpace_XYZ::fromXYZD50() const { in fromXYZD50()
46 SkMatrix44 srgbToxyzD50(SkMatrix44::kUninitialized_Constructor); in fromXYZD50()
DSkICC.cpp31 bool SkICC::toXYZD50(SkMatrix44* toXYZD50) const { in toXYZD50()
32 const SkMatrix44* m = as_CSB(fColorSpace)->toXYZD50(); in toXYZD50()
283 static void write_xyz_tag(uint32_t* ptr, const SkMatrix44& toXYZ, int col) { in write_xyz_tag()
304 static bool is_3x3(const SkMatrix44& toXYZD50) { in is_3x3()
310 sk_sp<SkData> SkICC::WriteToICC(const SkColorSpaceTransferFn& fn, const SkMatrix44& toXYZD50) { in WriteToICC()
DSkColorSpace_Base.h146 virtual const SkMatrix44* toXYZD50() const = 0;
159 virtual const SkMatrix44* fromXYZD50() const = 0;
197 static sk_sp<SkColorSpace> MakeRGB(SkGammaNamed gammaNamed, const SkMatrix44& toXYZD50);
DSkColorSpace_ICC.cpp653 static bool load_matrix(SkMatrix44* matrix, const uint8_t* src, size_t len, bool translate, in load_matrix()
1005 SkMatrix44 matrix(SkMatrix44::kUninitialized_Constructor); in load_a2b0_a_to_b_type()
1069 SkMatrix44 matrix(SkMatrix44::kUninitialized_Constructor); in load_a2b0_lutn_type()
1264 static inline bool is_close_to_d50(const SkMatrix44& matrix) { in is_close_to_d50()
1303 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor); in make_xyz()
1436 SkMatrix44 toXYZD50(SkMatrix44::kIdentity_Constructor); in make_gray()
/external/skia/src/gpu/
DGrColorSpaceXform.cpp56 GrColorSpaceXform::GrColorSpaceXform(const SkMatrix44& srcToDst) in GrColorSpaceXform()
72 const SkMatrix44* toXYZD50 = as_CSB(src)->toXYZD50(); in Make()
73 const SkMatrix44* fromXYZD50 = as_CSB(dst)->fromXYZD50(); in Make()
88 SkMatrix44 srcToDst(SkMatrix44::kUninitialized_Constructor); in Make()
/external/skia/include/gpu/
DGrColorSpaceXform.h22 GrColorSpaceXform(const SkMatrix44& srcToDst);
26 const SkMatrix44& srcToDst() const { return fSrcToDst; } in srcToDst()
42 SkMatrix44 fSrcToDst;
/external/skia/src/gpu/effects/
DGrNonlinearColorSpaceXformEffect.h50 const SkMatrix44& gamutXform() const { return fGamutXform; } in gamutXform()
56 const SkMatrix44& gamutXform);
64 SkMatrix44 fGamutXform;
DGrNonlinearColorSpaceXformEffect.cpp139 const SkColorSpaceTransferFn& dstTransferFn, const SkMatrix44& gamutXform) in GrNonlinearColorSpaceXformEffect()
217 SkMatrix44 srcToDstMtx(SkMatrix44::kUninitialized_Constructor); in Make()
/external/skia/src/gpu/glsl/
DGrGLSLProgramDataManager.h15 class SkMatrix44; variable
53 void setSkMatrix44(UniformHandle, const SkMatrix44&) const;
/external/skia/tools/flags/
DSkCommonFlagsConfig.cpp324 SkMatrix44 wideGamutRGBMatrix(SkMatrix44::kUninitialized_Constructor); in parse_option_gpu_color()
335 SkMatrix44 narrowGamutRGBMatrix(SkMatrix44::kUninitialized_Constructor); in parse_option_gpu_color()
/external/skia/tools/
Dcolorspaceinfo.cpp189 static void load_gamut(SkPoint rgb[], const SkMatrix44& xyz) { in load_gamut()
214 static void draw_gamut(SkCanvas* canvas, const SkMatrix44& xyz, const char* name, SkColor color, in draw_gamut()
315 const SkMatrix44* mat = as_CSB(sRGBSpace)->toXYZD50(); in main()
324 const SkMatrix44* mat = as_CSB(adobeRGBSpace)->toXYZD50(); in main()
331 const SkMatrix44* mat = as_CSB(colorSpace)->toXYZD50(); in main()
/external/skia/gm/
Dcolorspacexform.cpp36 SkMatrix44 wideGamut(SkMatrix44::kUninitialized_Constructor); in onOnceBeforeDraw()
Dcolor4f.cpp100 SkMatrix44 mat(SkMatrix44::kUninitialized_Constructor);

12