Searched refs:rgbToXYZ (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/libs/ui/ |
D | ColorSpace.cpp | 85 static constexpr std::array<float2, 3> computePrimaries(const mat3& rgbToXYZ) { in computePrimaries() argument 86 float3 r(rgbToXYZ * float3{1, 0, 0}); in computePrimaries() 87 float3 g(rgbToXYZ * float3{0, 1, 0}); in computePrimaries() 88 float3 b(rgbToXYZ * float3{0, 0, 1}); in computePrimaries() 95 static constexpr float2 computeWhitePoint(const mat3& rgbToXYZ) { in computeWhitePoint() argument 96 float3 w(rgbToXYZ * float3{1}); in computeWhitePoint() 102 const mat3& rgbToXYZ, in ColorSpace() argument 107 , mRGBtoXYZ(rgbToXYZ) in ColorSpace() 108 , mXYZtoRGB(inverse(rgbToXYZ)) in ColorSpace() 112 , mPrimaries(computePrimaries(rgbToXYZ)) in ColorSpace() [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | ColorSpace.h | 59 const mat3& rgbToXYZ, 76 const mat3& rgbToXYZ, 91 const mat3& rgbToXYZ, 179 constexpr float3 rgbToXYZ(const float3& rgb) const noexcept { in rgbToXYZ() function
|
/frameworks/native/libs/ui/include/ui/ |
D | ColorSpace.h | 59 const mat3& rgbToXYZ, 76 const mat3& rgbToXYZ, 91 const mat3& rgbToXYZ, 179 constexpr float3 rgbToXYZ(const float3& rgb) const noexcept { in rgbToXYZ() function
|
/frameworks/native/libs/ui/tests/ |
D | colorspace_test.cpp | 142 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})); in TEST_F()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 191 float3 xyz = colorSpace.rgbToXYZ(rgb); in sRGBToLab()
|