Lines Matching refs:vec3
75 vec3 EOTF_PQ(vec3 color) { in EOTF_PQ()
76 return vec3(EOTF_PQ(color.r), EOTF_PQ(color.g), EOTF_PQ(color.b)); in EOTF_PQ()
86 vec3 EOTF_HLG(vec3 color) { in EOTF_HLG()
87 return vec3(EOTF_HLG(color.r), EOTF_HLG(color.g), EOTF_HLG(color.b)); in EOTF_HLG()
98 vec3 OETF_sRGB(vec3 linear) { in OETF_sRGB()
99 return vec3(sign(linear.r) * OETF_sRGB(linear.r), sign(linear.g) * OETF_sRGB(linear.g), in OETF_sRGB()
453 shadow.lightPos = vec3(casterPos.x, casterPos.y, 0); in getShadowSettings()
596 void tonemap(ui::Dataspace sourceDataspace, std::function<vec3(vec3)> eotf,
597 std::function<vec3(vec3, float)> scaleOotf);
1393 void RenderEngineTest::tonemap(ui::Dataspace sourceDataspace, std::function<vec3(vec3)> eotf, in tonemap() argument
1394 std::function<vec3(vec3, float)> scaleOotf) { in tonemap()
1480 const vec3 rgb = vec3(normColor, normColor, normColor); in tonemap()
1482 const vec3 linearRGB = eotf(rgb); in tonemap()
1484 const vec3 xyz = bt2020.getRGBtoXYZ() * linearRGB; in tonemap()
1486 const vec3 scaledXYZ = scaleOotf(xyz, kCurrentLuminanceNits); in tonemap()
1502 const vec3 normalizedXYZ = scaledXYZ * gain / metadata.displayMaxLuminance; in tonemap()
1504 const vec3 targetRGB = OETF_sRGB(displayP3.getXYZtoRGB() * normalizedXYZ) * 255; in tonemap()
2933 [](vec3 color) { return EOTF_PQ(color); }, in TEST_P()
2934 [](vec3 color, float) { in TEST_P()
2950 [](vec3 color) { return EOTF_HLG(color); }, in TEST_P()
2951 [](vec3 color, float currentLuminaceNits) { in TEST_P()