Home
last modified time | relevance | path

Searched refs:srgb (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/
H A Dcolor.h38 inline float SRGBToLinearConv(const float srgb) in SRGBToLinearConv() argument
40 float col = srgb; in SRGBToLinearConv()
41 if (srgb <= 0.04045f) { in SRGBToLinearConv()
51 float srgb = linear; in LinearToSRGBConv() local
52 if (srgb <= 0.0031308f) { in LinearToSRGBConv()
53 srgb *= 12.92f; in LinearToSRGBConv()
55 srgb = 1.0550000667572021484375f * Math::pow(srgb, 1.f / 2.4f) - 0.05500000715255737305f; in LinearToSRGBConv()
57 return srgb; in LinearToSRGBConv()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_color_conversion_common.h71 vec3 SrgbToLinear(const vec3 srgb) in SrgbToLinear() argument
76 const vec3 high = pow((srgb + 0.055f) * mhigh, vec3(2.4f)); in SrgbToLinear()
77 const vec3 low = srgb * mlow; in SrgbToLinear()
78 const bvec3 cutoff = lessThan(srgb, vec3(0.04045f)); in SrgbToLinear()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dswapchain_gles.cpp101 Format RgbToFormat(uint32_t r, uint32_t g, uint32_t b, uint32_t a, bool srgb) in RgbToFormat() argument
104 if (!srgb) { in RgbToFormat()
286 …orFormat = RgbToFormat(info.red_size, info.green_size, info.blue_size, info.alpha_size, info.srgb); in SwapchainGLES()
289 info.depth_size, info.stencil_size, info.samples, info.srgb ? "true" : "false"); in SwapchainGLES()
H A Dsurface_information.h33 bool srgb { false }; in RENDER_BEGIN_NAMESPACE()
H A Dwgl_state.cpp348 res.srgb = false; // default to linear framebuffer in GetInformation()
351 res.srgb = (values[srgbIndex] != 0) ? true : false; in GetInformation()
355 … res.srgb = static_cast<uint32_t>(values[colorspaceIndex]) == WGL_COLORSPACE_SRGB_EXT; in GetInformation()
H A Degl_state.cpp1069 res.srgb = (colorspace == COLOR_SPACE_SRGB); in GetSurfaceInformation()
1077 res.srgb = false; in GetSurfaceInformation()
/ohos5.0/foundation/graphic/graphic_2d/utils/color_manager/test/unittest/
H A Dcolor_manager_test.cpp626 ColorSpace srgb = ColorSpace(skiaSrgb); variable
627 Color result = color.Convert(srgb);