Searched refs:srgb (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/ |
H A D | color.h | 38 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 D | render_color_conversion_common.h | 71 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 D | swapchain_gles.cpp | 101 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 D | surface_information.h | 33 bool srgb { false }; in RENDER_BEGIN_NAMESPACE()
|
H A D | wgl_state.cpp | 348 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 D | egl_state.cpp | 1069 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 D | color_manager_test.cpp | 626 ColorSpace srgb = ColorSpace(skiaSrgb); variable 627 Color result = color.Convert(srgb);
|