Home
last modified time | relevance | path

Searched refs:maxVal (Results 1 - 25 of 84) sorted by relevance

1234

/third_party/vk-gl-cts/framework/randomshaders/
H A DrsgUtils.cpp68 float maxVal = valueRange.component(ndx).getMax().asFloat(); in computeRandomValue() local
69 dst.component(ndx).asFloat() = getQuantizedFloat(rnd, minVal, maxVal, quantizeStep); in computeRandomValue()
77 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue() local
78 dst.component(ndx).asBool() = rnd.getInt(minVal, maxVal) == 1; in computeRandomValue()
88 int maxVal = valueRange.component(ndx).getMax().asInt(); in computeRandomValue() local
89 dst.component(ndx).asInt() = rnd.getInt(minVal, maxVal); in computeRandomValue()
196 bool maxVal = minVal ? true : rnd.getBool(); in computeRandomValueRange() local
198 valueRange.getMax().component(ndx).asBool() = maxVal; in computeRandomValueRange()
211 int maxVal = minVal + rangeLen; in computeRandomValueRange() local
214 valueRange.getMax().component(ndx).asInt() = maxVal; in computeRandomValueRange()
229 float maxVal = minVal + step*(float)rangeLen; computeRandomValueRange() local
305 float maxVal = valueRange.component(ndx).getMax().asFloat(); computeRangeLengthSum() local
314 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; computeRangeLengthSum() local
325 deInt64 maxVal = valueRange.component(ndx).getMax().asInt(); computeRangeLengthSum() local
[all...]
H A DrsgExpression.cpp188 int maxVal = minVal + rangeLen; in computeRandomValueRangeForInfElements() local
191 valueRange.getMax().component(ndx).asInt() = maxVal; in computeRandomValueRangeForInfElements()
210 float maxVal = minVal + step*(float)rangeLen; in computeRandomValueRangeForInfElements() local
213 valueRange.getMax().component(ndx).asFloat() = maxVal; in computeRandomValueRangeForInfElements()
363 float maxVal = +10.0f; in FloatLiteral() local
369 maxVal = valueRange.getMax().component(0).asFloat(); in FloatLiteral()
374 if (Scalar::max<float>() == maxVal) in FloatLiteral()
375 maxVal = +10.0f; in FloatLiteral()
378 int numSteps = (int)((maxVal-minVal)/step) + 1; in FloatLiteral()
380 const float value = deFloatClamp(minVal + step*(float)state.getRandom().getInt(0, numSteps), minVal, maxVal); in FloatLiteral()
406 float maxVal = valueRange.getMax().asFloat(); getWeight() local
433 int maxVal = +16; IntLiteral() local
461 int maxVal = valueRange.getMax().asInt(); getWeight() local
487 int maxVal = 1; BoolLiteral() local
[all...]
H A DrsgVariableValue.hpp201 ConstValueRangeAccess (const VariableType& type, const Scalar* minVal, const Scalar* maxVal) : m_type(&type), m_min(const_cast<Scalar*>(minVal)), m_max(const_cast<Scalar*>(maxVal)) {} in ConstValueRangeAccess() argument
243 ValueRangeAccess (const VariableType& type, Scalar* minVal, Scalar* maxVal) : ConstValueRangeAccess(type, minVal, maxVal) {} in ValueRangeAccess() argument
275 ValueRange (const VariableType& type, const ConstValueAccess& minVal, const ConstValueAccess& maxVal);
276 ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal);
H A DrsgVariableValue.cpp165 ValueRange::ValueRange (const VariableType& type, const ConstValueAccess& minVal, const ConstValueAccess& maxVal) in ValueRange() argument
171 getMax() = maxVal.value(); in ValueRange()
174 ValueRange::ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal) in ValueRange() argument
180 getMax() = ConstValueAccess(type, maxVal).value(); in ValueRange()
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fShaderAlgorithmTests.cpp214 << "mediump float maxVal = max(max(r, g), b);" in init()
215 << "mediump float L = (minVal + maxVal) * 0.5;" in init()
216 << "if (minVal == maxVal)" in init()
223 << " S = (maxVal - minVal) / (maxVal + minVal);" in init()
225 << " S = (maxVal - minVal) / (2.0 - maxVal - minVal);" in init()
227 << " mediump float ooDiff = 1.0 / (maxVal - minVal);" in init()
228 << " if (r == maxVal) H = (g - b) * ooDiff;" in init()
229 << " else if (g == maxVal) in init()
[all...]
H A Des2fFlushFinishTests.cpp348 T maxVal = samples[0].*field; in getMaximumValue() local
351 maxVal = de::max(maxVal, samples[ndx].*field); in getMaximumValue()
353 return maxVal; in getMaximumValue()
H A Des2fBufferTestUtil.cpp548 const float maxVal = 0.5f;
555 i->x() = rnd.getFloat(minVal, maxVal);
556 i->y() = rnd.getFloat(minVal, maxVal);
557 i->z() = rnd.getFloat(minVal, maxVal);
/third_party/vk-gl-cts/framework/common/
H A DtcuTextureUtil.cpp707 static inline float linearInterpolate (float t, float minVal, float maxVal)
709 return minVal + (maxVal - minVal) * t;
842 static void fillWithComponentGradients1D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal, GradientStyle)
849 float r = linearInterpolate(s, minVal.x(), maxVal.x());
850 float g = linearInterpolate(s, minVal.y(), maxVal.y());
851 float b = linearInterpolate(s, minVal.z(), maxVal.z());
852 float a = linearInterpolate(s, minVal.w(), maxVal.w());
858 static void fillWithComponentGradients2D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal, GradientStyle style)
886 float r = linearInterpolate(coefR, minVal.x(), maxVal.x());
887 float g = linearInterpolate(coefG, minVal.y(), maxVal
[all...]
H A DtcuTextureUtil.hpp120 void fillWithComponentGradients (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal);
121 void fillWithComponentGradients2 (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal);
122 void fillWithComponentGradients3 (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal);
133 void estimatePixelValueRange (const ConstPixelBufferAccess& access, Vec4& minVal, Vec4& maxVal);
H A DtcuImageCompare.cpp47 Vec4 maxVal; in computeScaleAndBias() local
56 maxVal = refMax; in computeScaleAndBias()
70 maxVal[0] = de::max(maxVal[0], resMax[0]); in computeScaleAndBias()
71 maxVal[1] = de::max(maxVal[1], resMax[1]); in computeScaleAndBias()
72 maxVal[2] = de::max(maxVal[2], resMax[2]); in computeScaleAndBias()
73 maxVal[3] = de::max(maxVal[ in computeScaleAndBias()
[all...]
/third_party/skia/src/pathops/
H A DSkPathOpsCurve.cpp103 double maxVal = 0; in setCurveHullSweep() local
105 maxVal = std::max(maxVal, std::max(SkTAbs(fCurve[index].fX), in setCurveHullSweep()
110 if (roughly_zero_when_compared_to(fSweep[0].fX, maxVal) in setCurveHullSweep()
111 && roughly_zero_when_compared_to(fSweep[0].fY, maxVal)) { in setCurveHullSweep()
120 if (roughly_zero_when_compared_to(fSweep[0].fX, maxVal) in setCurveHullSweep()
121 && roughly_zero_when_compared_to(fSweep[0].fY, maxVal)) { in setCurveHullSweep()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
H A DvktTextureCompressedFormatTests.cpp201 tcu::Vec4 maxVal; in computeScaleAndBias() local
210 maxVal = refMax; in computeScaleAndBias()
224 maxVal[0] = de::max(maxVal[0], resMax[0]); in computeScaleAndBias()
225 maxVal[1] = de::max(maxVal[1], resMax[1]); in computeScaleAndBias()
226 maxVal[2] = de::max(maxVal[2], resMax[2]); in computeScaleAndBias()
227 maxVal[3] = de::max(maxVal[ in computeScaleAndBias()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
H A DvktTextureCompressedFormatTests.cpp201 tcu::Vec4 maxVal; in computeScaleAndBias() local
210 maxVal = refMax; in computeScaleAndBias()
224 maxVal[0] = de::max(maxVal[0], resMax[0]); in computeScaleAndBias()
225 maxVal[1] = de::max(maxVal[1], resMax[1]); in computeScaleAndBias()
226 maxVal[2] = de::max(maxVal[2], resMax[2]); in computeScaleAndBias()
227 maxVal[3] = de::max(maxVal[ in computeScaleAndBias()
[all...]
/third_party/vk-gl-cts/modules/gles2/accuracy/
H A Des2aVaryingInterpolationTests.cpp101 InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective);
113 InterpolationCase::InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective) in InterpolationCase() argument
117 , m_max (maxVal) in InterpolationCase()
301 Vec3 maxVal; in init() member
323 addChild(new InterpolationCase(m_context, baseName.c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init()
324 addChild(new InterpolationCase(m_context, (baseName + "_proj").c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
/third_party/vk-gl-cts/modules/gles3/accuracy/
H A Des3aVaryingInterpolationTests.cpp103 InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective);
115 InterpolationCase::InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective) in InterpolationCase() argument
119 , m_max (maxVal) in InterpolationCase()
307 Vec3 maxVal; in init() member
329 addChild(new InterpolationCase(m_context, baseName.c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init()
330 addChild(new InterpolationCase(m_context, (baseName + "_proj").c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fFragmentOutputTests.cpp647 Vec4 maxVal (range.y()); in iterate()
656 maxVal = tcu::min(maxVal, fmtInfo.valueMax); in iterate()
659 m_testCtx.getLog() << TestLog::Message << "out" << curInVec << " value range: " << valueRangeToString(numScalars, minVal, maxVal) << TestLog::EndMessage; in iterate()
671 Vec4 c = minVal + (maxVal-minVal)*f; in iterate()
683 IVec4 maxVal (range.y()); in iterate()
695 maxVal = select(maxVal, tcu::min(maxVal, fmtMaxVal), isZero); in iterate()
698 m_testCtx.getLog() << TestLog::Message << "out" << curInVec << " value range: " << valueRangeToString(numScalars, minVal, maxVal) << TestLo in iterate()
[all...]
H A Des3fFlushFinishTests.cpp475 T maxVal = samples[0].*field;
478 maxVal = de::max(maxVal, samples[ndx].*field);
480 return maxVal;
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/descrip/
H A DEffectDescription.h33 constexpr ParamType(std::string_view name, float minVal, float maxVal, float defVal) : in ParamType() argument
36 kMaxVal(maxVal), in ParamType()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
H A Dfunc_common.hpp168 /// Returns min(max(x, minVal), maxVal) for each component in x
169 /// using the floating-point values minVal and maxVal.
176 GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal);
179 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, T minVal, T maxVal);
182 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, vecType<T, P> const & minVal, vecType<T, P> const & maxVal);
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/
H A DTestFmwk.java247 protected static int getIntProperty(String key, int defVal, int maxVal) { in getIntProperty() argument
248 return getParams().getIntProperty(key, defVal, maxVal); in getIntProperty()
429 public int getIntProperty(String key, int defVal, int maxVal) { in getIntProperty() argument
434 return (maxVal == -1) ? Integer.valueOf(s) : Math.max(Integer.valueOf(s), maxVal); in getIntProperty()
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
H A DTestFmwk.java221 protected static int getIntProperty(String key, int defVal, int maxVal) { in getIntProperty() argument
222 return getParams().getIntProperty(key, defVal, maxVal); in getIntProperty()
404 public int getIntProperty(String key, int defVal, int maxVal) { in getIntProperty() argument
409 return (maxVal == -1) ? Integer.valueOf(s) : Math.max(Integer.valueOf(s), maxVal); in getIntProperty()
/third_party/vk-gl-cts/framework/delibs/dethread/
H A DdeThreadTest.c187 deInt32 maxVal; member
200 if (data->counter >= data->maxVal) in mutexTestThr2()
310 data.maxVal = 1000; in deMutex_selfTest()
330 DE_TEST_ASSERT(data.maxVal == data.counter); in deMutex_selfTest()
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fShaderAtomicOpTests.cpp268 const int maxVal = m_precision == PRECISION_LOWP ? 2 : 32; in getInputs() local
274 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal); in getInputs()
423 const int maxVal = m_precision == PRECISION_LOWP ? 100 : 1000;
424 const int minVal = isSigned ? -maxVal : 0;
427 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal);
505 const int maxVal = m_precision == PRECISION_LOWP ? 100 : 1000;
506 const int minVal = isSigned ? -maxVal : 0;
509 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal);
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dsimd_vec4.hpp250 //! Returns min(max(x, minVal), maxVal) for each component in x
251 //! using the floating-point values minVal and maxVal.
257 detail::fvec4SIMD const & maxVal);
262 float const & maxVal);
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/simd/
H A Dcommon.h184 GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_clamp(glm_vec4 v, glm_vec4 minVal, glm_vec4 maxVal) in glm_vec4_clamp() argument
186 glm_vec4 const min0 = _mm_min_ps(v, maxVal); in glm_vec4_clamp()

Completed in 22 milliseconds

1234