Home
last modified time | relevance | path

Searched refs:SRGBToLinear (Results 1 – 8 of 8) sorted by relevance

/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp169 TEST(Math, SRGBToLinear) { in TEST() argument
170 ASSERT_EQ(SRGBToLinear(0.0f), 0.0f); in TEST()
171 ASSERT_EQ(SRGBToLinear(1.0f), 1.0f); in TEST()
173 ASSERT_EQ(SRGBToLinear(-1.0f), 0.0f); in TEST()
174 ASSERT_EQ(SRGBToLinear(2.0f), 1.0f); in TEST()
176 ASSERT_FLOAT_EQ(SRGBToLinear(0.5f), 0.21404114f); in TEST()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp253 TEST(Math, SRGBToLinear) { in TEST() argument
254 ASSERT_EQ(SRGBToLinear(0.0f), 0.0f); in TEST()
255 ASSERT_EQ(SRGBToLinear(1.0f), 1.0f); in TEST()
257 ASSERT_EQ(SRGBToLinear(-1.0f), 0.0f); in TEST()
258 ASSERT_EQ(SRGBToLinear(2.0f), 1.0f); in TEST()
260 ASSERT_FLOAT_EQ(SRGBToLinear(0.5f), 0.21404114f); in TEST()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DTextureFormatTests.cpp664 uncompressedData.push_back(SRGBToLinear(textureData[i + 0] / float(maxValue))); in TEST_P()
665 uncompressedData.push_back(SRGBToLinear(textureData[i + 1] / float(maxValue))); in TEST_P()
666 uncompressedData.push_back(SRGBToLinear(textureData[i + 2] / float(maxValue))); in TEST_P()
685 uncompressedData.push_back(SRGBToLinear(textureData[i + 2] / float(maxValue))); in TEST_P()
686 uncompressedData.push_back(SRGBToLinear(textureData[i + 1] / float(maxValue))); in TEST_P()
687 uncompressedData.push_back(SRGBToLinear(textureData[i + 0] / float(maxValue))); in TEST_P()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DTextureFormatTests.cpp626 uncompressedData.push_back(SRGBToLinear(textureData[i + 0] / float(maxValue))); in TEST_P()
627 uncompressedData.push_back(SRGBToLinear(textureData[i + 1] / float(maxValue))); in TEST_P()
628 uncompressedData.push_back(SRGBToLinear(textureData[i + 2] / float(maxValue))); in TEST_P()
653 uncompressedData.push_back(SRGBToLinear(textureData[i + 2] / float(maxValue))); in TEST_P()
654 uncompressedData.push_back(SRGBToLinear(textureData[i + 1] / float(maxValue))); in TEST_P()
655 uncompressedData.push_back(SRGBToLinear(textureData[i + 0] / float(maxValue))); in TEST_P()
/third_party/flutter/skia/third_party/externals/dawn/src/common/
DMath.h56 float SRGBToLinear(float srgb);
DMath.cpp117 float SRGBToLinear(float srgb) { in SRGBToLinear() function
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h92 float SRGBToLinear(float srgb);
DMath.cpp140 float SRGBToLinear(float srgb) { in SRGBToLinear() function