Home
last modified time | relevance | path

Searched refs:sRGBtoLinear (Results 1 – 20 of 20) sorted by relevance

/external/swiftshader/src/Shader/
DConstants.cpp267 sRGBtoLinear8_16[i] = (unsigned short)(sw::sRGBtoLinear((float)i / 0xFF) * 0xFFFF + 0.5f); in Constants()
272 sRGBtoLinear6_16[i] = (unsigned short)(sw::sRGBtoLinear((float)i / 0x3F) * 0xFFFF + 0.5f); in Constants()
277 sRGBtoLinear5_16[i] = (unsigned short)(sw::sRGBtoLinear((float)i / 0x1F) * 0xFFFF + 0.5f); in Constants()
283 …sRGBtoLinear12_16[i] = (unsigned short)(clamp(sw::sRGBtoLinear((float)i / 0x0FFF) * 0xFFFF + 0.5f,… in Constants()
DPixelRoutine.hpp87 Float4 sRGBtoLinear(const Float4 &x);
DPixelRoutine.cpp2113 sRGBtoLinear(pixel.x); in alphaBlend()
2114 sRGBtoLinear(pixel.y); in alphaBlend()
2115 sRGBtoLinear(pixel.z); in alphaBlend()
2719 Float4 PixelRoutine::sRGBtoLinear(const Float4 &x) // Approximates x^2.2 in sRGBtoLinear() function in sw::PixelRoutine
/external/swiftshader/src/System/
DMath.cpp43 …sRGBtoLinearTable[i] = static_cast<unsigned char>(sw::sRGBtoLinear(static_cast<float>(i) / 255.0f)… in sRGB8toLinear8()
DMath.hpp326 inline float sRGBtoLinear(float c) in sRGBtoLinear() function
/external/swiftshader/src/Common/
DMath.cpp43 …sRGBtoLinearTable[i] = static_cast<unsigned char>(sw::sRGBtoLinear(static_cast<float>(i) / 255.0f)… in sRGB8toLinear8()
DMath.hpp358 inline float sRGBtoLinear(float c) in sRGBtoLinear() function
/external/swiftshader/src/Pipeline/
DConstants.cpp281 sRGBtoLinearFF_FF00[i] = (unsigned short)(sRGBtoLinear((float)i / 0xFF) * 0xFF00 + 0.5f); in Constants()
287 …sRGBtoLinear12_16[i] = (unsigned short)(clamp(sRGBtoLinear((float)i / 0x0FFF) * 0xFFFF + 0.5f, 0.0… in Constants()
DPixelRoutine.hpp87 Float4 sRGBtoLinear(const Float4 &x);
DSpirvShaderImage.cpp76 sw::SIMD::Float sRGBtoLinear(sw::SIMD::Float c) in sRGBtoLinear() function
803 dst.move(0, ::sRGBtoLinear(SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF))); in EmitImageRead()
804 …dst.move(1, ::sRGBtoLinear(SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0x… in EmitImageRead()
805 …dst.move(2, ::sRGBtoLinear(SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0… in EmitImageRead()
815 …dst.move(0, ::sRGBtoLinear(SIMD::Float((packed[0] >> 16) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0… in EmitImageRead()
816 …dst.move(1, ::sRGBtoLinear(SIMD::Float((packed[0] >> 8) & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0x… in EmitImageRead()
817 dst.move(2, ::sRGBtoLinear(SIMD::Float(packed[0] & SIMD::Int(0xFF)) * SIMD::Float(1.0f / 0xFF))); in EmitImageRead()
DPixelRoutine.cpp2844 Float4 PixelRoutine::sRGBtoLinear(const Float4 &x) // Approximates x^2.2 in sRGBtoLinear() function in sw::PixelRoutine
/external/swiftshader/src/Renderer/
DBlitter.hpp113 static Float4 sRGBtoLinear(Float4 &color);
DBlitter.cpp1119 value = (srcSRGB && !preScaled) ? sRGBtoLinear(value) : LinearToSRGB(value); in ApplyScaleAndClamp()
1169 Float4 Blitter::sRGBtoLinear(Float4 &c) in sRGBtoLinear() function in sw::Blitter
DSurface.cpp1052 r = sRGBtoLinear(r); in read()
1053 g = sRGBtoLinear(g); in read()
1054 b = sRGBtoLinear(b); in read()
2444 …sRGBtoLinearTable[i] = static_cast<byte>(sRGBtoLinear(static_cast<float>(i) / 255.0f) * 255.0f + 0… in decodeETC2()
/external/swiftshader/src/Device/
DBlitter.hpp174 static Float4 sRGBtoLinear(const Float4 &color);
DBlitter.cpp1375 value = (srcSRGB && !preScaled) ? sRGBtoLinear(value) : LinearToSRGB(value); in ApplyScaleAndClamp()
1415 Float4 Blitter::sRGBtoLinear(const Float4 &c) in sRGBtoLinear() function in sw::Blitter
/external/angle/src/libANGLE/renderer/metal/shaders/
Dcommon.h112 static inline float4 sRGBtoLinear(float4 color) in sRGBtoLinear() function
Dmtl_default_shaders_src_autogen.inc144 static inline float4 sRGBtoLinear(float4 color)
1029 dstMip2.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices >> 1);
1075 dstMip3.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices >> 2);
1121 dstMip4.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices >> 3);
1157 dstMip1.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices);
1193 dstMip2.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices >> 1);
1225 dstMip3.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices >> 2);
1257 dstMip4.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices >> 3);
1303 dstMip2.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices.xy >> 1, gIndices.z);
1335 dstMip3.write((options.sRGB ? sRGBtoLinear(texel1) : texel1), gIndices.xy >> 2, gIndices.z);
[all …]
Dgen_mipmap.metal26 #define TO_LINEAR(texel) (options.sRGB ? sRGBtoLinear(texel) : texel)
Dcopy_buffer.metal359 color = sRGBtoLinear(color);