Lines Matching refs:maxVal

447 static inline float linearInterpolate (float t, float minVal, float maxVal)  in linearInterpolate()  argument
449 return minVal + (maxVal - minVal) * t; in linearInterpolate()
575 …lWithComponentGradients1D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients1D() argument
582 float r = linearInterpolate(s, minVal.x(), maxVal.x()); in fillWithComponentGradients1D()
583 float g = linearInterpolate(s, minVal.y(), maxVal.y()); in fillWithComponentGradients1D()
584 float b = linearInterpolate(s, minVal.z(), maxVal.z()); in fillWithComponentGradients1D()
585 float a = linearInterpolate(s, minVal.w(), maxVal.w()); in fillWithComponentGradients1D()
591 …lWithComponentGradients2D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients2D() argument
600 float r = linearInterpolate(( s + t) *0.5f, minVal.x(), maxVal.x()); in fillWithComponentGradients2D()
601 float g = linearInterpolate(( s + (1.0f-t))*0.5f, minVal.y(), maxVal.y()); in fillWithComponentGradients2D()
602 float b = linearInterpolate(((1.0f-s) + t) *0.5f, minVal.z(), maxVal.z()); in fillWithComponentGradients2D()
603 float a = linearInterpolate(((1.0f-s) + (1.0f-t))*0.5f, minVal.w(), maxVal.w()); in fillWithComponentGradients2D()
610 …fillWithComponentGradients3D (const PixelBufferAccess& dst, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients3D() argument
622 float r = linearInterpolate(s, minVal.x(), maxVal.x()); in fillWithComponentGradients3D()
623 float g = linearInterpolate(t, minVal.y(), maxVal.y()); in fillWithComponentGradients3D()
624 float b = linearInterpolate(p, minVal.z(), maxVal.z()); in fillWithComponentGradients3D()
625 float a = linearInterpolate(1.0f - (s+t+p)/3.0f, minVal.w(), maxVal.w()); in fillWithComponentGradients3D()
633 …illWithComponentGradients (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients() argument
644 …mponentGradients(getEffectiveDepthStencilAccess(access, tcu::Sampler::MODE_DEPTH), minVal, maxVal); in fillWithComponentGradients()
646 …encilAccess(access, tcu::Sampler::MODE_STENCIL), minVal.swizzle(3,2,1,0), maxVal.swizzle(3,2,1,0)); in fillWithComponentGradients()
651 fillWithComponentGradients1D(access, minVal, maxVal); in fillWithComponentGradients()
653 fillWithComponentGradients2D(access, minVal, maxVal); in fillWithComponentGradients()
655 fillWithComponentGradients3D(access, minVal, maxVal); in fillWithComponentGradients()
915 void estimatePixelValueRange (const ConstPixelBufferAccess& access, Vec4& minVal, Vec4& maxVal) in estimatePixelValueRange() argument
924 maxVal = Vec4(1.0f); in estimatePixelValueRange()
930 maxVal = Vec4(+1.0f); in estimatePixelValueRange()
936 maxVal = Vec4(std::numeric_limits<float>::min()); in estimatePixelValueRange()
951 maxVal[0] = (deFloatIsNaN(p[0]) ? maxVal[0] : de::max(maxVal[0], p[0])); in estimatePixelValueRange()
952 maxVal[1] = (deFloatIsNaN(p[1]) ? maxVal[1] : de::max(maxVal[1], p[1])); in estimatePixelValueRange()
953 maxVal[2] = (deFloatIsNaN(p[2]) ? maxVal[2] : de::max(maxVal[2], p[2])); in estimatePixelValueRange()
954 maxVal[3] = (deFloatIsNaN(p[3]) ? maxVal[3] : de::max(maxVal[3], p[3])); in estimatePixelValueRange()
964 Vec4 minVal, maxVal; in computePixelScaleBias() local
965 estimatePixelValueRange(access, minVal, maxVal); in computePixelScaleBias()
971 if (maxVal[c] - minVal[c] < eps) in computePixelScaleBias()
973 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computePixelScaleBias()
974 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computePixelScaleBias()
978 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computePixelScaleBias()
1008 const float maxVal = (float)(((1<<mBits) - 1) * (1<<(eMax-eBias))) / (float)(1<<mBits); in packRGB999E5() local
1010 float rc = deFloatClamp(color[0], 0.0f, maxVal); in packRGB999E5()
1011 float gc = deFloatClamp(color[1], 0.0f, maxVal); in packRGB999E5()
1012 float bc = deFloatClamp(color[2], 0.0f, maxVal); in packRGB999E5()