Searched refs:rgbToXYZ (Results 1 – 6 of 6) 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/base/libs/hwui/utils/ |
D | HostColorSpace.cpp | 86 static constexpr std::array<float2, 3> computePrimaries(const mat3& rgbToXYZ) { in computePrimaries() argument 87 float3 r(rgbToXYZ * float3{1, 0, 0}); in computePrimaries() 88 float3 g(rgbToXYZ * float3{0, 1, 0}); in computePrimaries() 89 float3 b(rgbToXYZ * float3{0, 0, 1}); in computePrimaries() 96 static constexpr float2 computeWhitePoint(const mat3& rgbToXYZ) { in computeWhitePoint() argument 97 float3 w(rgbToXYZ * float3{1}); in computeWhitePoint() 103 const mat3& rgbToXYZ, in ColorSpace() argument 108 , mRGBtoXYZ(rgbToXYZ) in ColorSpace() 109 , mXYZtoRGB(inverse(rgbToXYZ)) in ColorSpace() 113 , mPrimaries(computePrimaries(rgbToXYZ)) in ColorSpace() [all …]
|
D | Color.cpp | 363 float3 xyz = colorSpace.rgbToXYZ(rgb); in sRGBToLab()
|
/frameworks/native/libs/ui/include_types/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_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/tests/ |
D | colorspace_test.cpp | 142 float3 c(ColorSpace::BT2020().rgbToXYZ(float3{0, 1, 0})); in TEST_F()
|