Lines Matching refs:maxVal

667 static inline float linearInterpolate (float t, float minVal, float maxVal)  in linearInterpolate()  argument
669 return minVal + (maxVal - minVal) * t; in linearInterpolate()
795 …lWithComponentGradients1D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients1D() argument
802 float r = linearInterpolate(s, minVal.x(), maxVal.x()); in fillWithComponentGradients1D()
803 float g = linearInterpolate(s, minVal.y(), maxVal.y()); in fillWithComponentGradients1D()
804 float b = linearInterpolate(s, minVal.z(), maxVal.z()); in fillWithComponentGradients1D()
805 float a = linearInterpolate(s, minVal.w(), maxVal.w()); in fillWithComponentGradients1D()
811 …lWithComponentGradients2D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients2D() argument
820 float r = linearInterpolate(( s + t) *0.5f, minVal.x(), maxVal.x()); in fillWithComponentGradients2D()
821 float g = linearInterpolate(( s + (1.0f-t))*0.5f, minVal.y(), maxVal.y()); in fillWithComponentGradients2D()
822 float b = linearInterpolate(((1.0f-s) + t) *0.5f, minVal.z(), maxVal.z()); in fillWithComponentGradients2D()
823 float a = linearInterpolate(((1.0f-s) + (1.0f-t))*0.5f, minVal.w(), maxVal.w()); in fillWithComponentGradients2D()
830 …fillWithComponentGradients3D (const PixelBufferAccess& dst, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients3D() argument
842 float r = linearInterpolate(s, minVal.x(), maxVal.x()); in fillWithComponentGradients3D()
843 float g = linearInterpolate(t, minVal.y(), maxVal.y()); in fillWithComponentGradients3D()
844 float b = linearInterpolate(p, minVal.z(), maxVal.z()); in fillWithComponentGradients3D()
845 float a = linearInterpolate(1.0f - (s+t+p)/3.0f, minVal.w(), maxVal.w()); in fillWithComponentGradients3D()
853 …illWithComponentGradients (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients() argument
864 …mponentGradients(getEffectiveDepthStencilAccess(access, tcu::Sampler::MODE_DEPTH), minVal, maxVal); in fillWithComponentGradients()
866 …encilAccess(access, tcu::Sampler::MODE_STENCIL), minVal.swizzle(3,2,1,0), maxVal.swizzle(3,2,1,0)); in fillWithComponentGradients()
871 fillWithComponentGradients1D(access, minVal, maxVal); in fillWithComponentGradients()
873 fillWithComponentGradients2D(access, minVal, maxVal); in fillWithComponentGradients()
875 fillWithComponentGradients3D(access, minVal, maxVal); in fillWithComponentGradients()
1135 void estimatePixelValueRange (const ConstPixelBufferAccess& access, Vec4& minVal, Vec4& maxVal) in estimatePixelValueRange() argument
1144 maxVal = Vec4(1.0f); in estimatePixelValueRange()
1150 maxVal = Vec4(+1.0f); in estimatePixelValueRange()
1156 maxVal = Vec4(std::numeric_limits<float>::min()); in estimatePixelValueRange()
1171 maxVal[0] = (deFloatIsNaN(p[0]) ? maxVal[0] : de::max(maxVal[0], p[0])); in estimatePixelValueRange()
1172 maxVal[1] = (deFloatIsNaN(p[1]) ? maxVal[1] : de::max(maxVal[1], p[1])); in estimatePixelValueRange()
1173 maxVal[2] = (deFloatIsNaN(p[2]) ? maxVal[2] : de::max(maxVal[2], p[2])); in estimatePixelValueRange()
1174 maxVal[3] = (deFloatIsNaN(p[3]) ? maxVal[3] : de::max(maxVal[3], p[3])); in estimatePixelValueRange()
1184 Vec4 minVal, maxVal; in computePixelScaleBias() local
1185 estimatePixelValueRange(access, minVal, maxVal); in computePixelScaleBias()
1191 if (maxVal[c] - minVal[c] < eps) in computePixelScaleBias()
1193 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computePixelScaleBias()
1194 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computePixelScaleBias()
1198 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computePixelScaleBias()
1228 const float maxVal = (float)(((1<<mBits) - 1) * (1<<(eMax-eBias))) / (float)(1<<mBits); in packRGB999E5() local
1230 float rc = deFloatClamp(color[0], 0.0f, maxVal); in packRGB999E5()
1231 float gc = deFloatClamp(color[1], 0.0f, maxVal); in packRGB999E5()
1232 float bc = deFloatClamp(color[2], 0.0f, maxVal); in packRGB999E5()