Searched refs:preScaled (Results 1 – 4 of 4) sorted by relevance
/external/swiftshader/src/Renderer/ |
D | Blitter.hpp | 110 static bool ApplyScaleAndClamp(Float4 &value, const State &state, bool preScaled = false);
|
D | Blitter.cpp | 1081 bool Blitter::ApplyScaleAndClamp(Float4 &value, const State &state, bool preScaled) in ApplyScaleAndClamp() argument 1115 …if(state.convertSRGB && ((srcSRGB && !preScaled) || dstSRGB)) // One of the formats is sRGB enco… in ApplyScaleAndClamp() 1117 …value *= preScaled ? Float4(1.0f / scale.x, 1.0f / scale.y, 1.0f / scale.z, 1.0f / scale.w) : // U… in ApplyScaleAndClamp() 1119 value = (srcSRGB && !preScaled) ? sRGBtoLinear(value) : LinearToSRGB(value); in ApplyScaleAndClamp() 1300 bool preScaled = false; in generate() local 1357 preScaled = true; in generate() 1369 if(!ApplyScaleAndClamp(color, state, preScaled)) in generate()
|
/external/swiftshader/src/Device/ |
D | Blitter.cpp | 1339 void Blitter::ApplyScaleAndClamp(Float4 &value, const State &state, bool preScaled) in ApplyScaleAndClamp() argument 1371 …if(state.allowSRGBConversion && ((srcSRGB && !preScaled) || dstSRGB)) // One of the formats is sR… in ApplyScaleAndClamp() 1373 …value *= preScaled ? Float4(1.0f / scale.x, 1.0f / scale.y, 1.0f / scale.z, 1.0f / scale.w) : // … in ApplyScaleAndClamp() 1375 value = (srcSRGB && !preScaled) ? sRGBtoLinear(value) : LinearToSRGB(value); in ApplyScaleAndClamp() 1437 bool preScaled = false; in sample() local 1460 preScaled = true; in sample() 1471 preScaled = true; in sample() 1537 preScaled = true; in sample() 1572 preScaled = true; in sample() 1585 ApplyScaleAndClamp(color, state, preScaled); in sample()
|
D | Blitter.hpp | 170 static void ApplyScaleAndClamp(Float4 &value, const State &state, bool preScaled = false);
|