/third_party/vk-gl-cts/framework/randomshaders/ |
H A D | rsgUtils.cpp | 68 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 D | rsgExpression.cpp | 188 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 D | rsgVariableValue.hpp | 201 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 D | rsgVariableValue.cpp | 165 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 D | es2fShaderAlgorithmTests.cpp | 214 << "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 D | es2fFlushFinishTests.cpp | 348 T maxVal = samples[0].*field; in getMaximumValue() local 351 maxVal = de::max(maxVal, samples[ndx].*field); in getMaximumValue() 353 return maxVal; in getMaximumValue()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTextureUtil.cpp | 707 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 D | tcuTextureUtil.hpp | 120 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 D | tcuImageCompare.cpp | 47 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 D | SkPathOpsCurve.cpp | 103 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 D | vktTextureCompressedFormatTests.cpp | 201 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 D | vktTextureCompressedFormatTests.cpp | 201 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...] |
/test/xts/acts/multimedia/av_codec/vcodec/encoder/src/ |
H A D | func_test.cpp | 653 cout << "max val " << range.maxVal << " min val " << range.minVal << endl; in HWTEST_F() 655 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 825 ASSERT_EQ(range.maxVal, MAX_QUALITY); in HWTEST_F() 1029 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1032 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1095 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1097 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1141 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1143 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1187 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << end in HWTEST_F() [all...] |
/test/xts/acts/multimedia/av_codec/vcodec/swdecoder/src/ |
H A D | api_test.cpp | 1000 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1003 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1066 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1068 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1112 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1114 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1158 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1160 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1260 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1336 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << end in HWTEST_F() [all...] |
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
H A D | es2aVaryingInterpolationTests.cpp | 101 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 D | es3aVaryingInterpolationTests.cpp | 103 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()
|
/test/xts/acts/multimedia/av_codec/vcodec/hwdecoder/src/ |
H A D | api_test.cpp | 1026 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1029 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1092 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1094 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1138 cout << "minval=" << range.minVal << " maxval=" << range.maxVal << endl; in HWTEST_F() 1140 ASSERT_GT(range.maxVal, 0); in HWTEST_F() 1185 cout << "minval=" << heightRange.minVal << " maxval=" << heightRange.maxVal << endl; in HWTEST_F() 1187 ASSERT_GT(heightRange.maxVal, 0); in HWTEST_F() 1191 ASSERT_GT(widthRange.maxVal, 0); in HWTEST_F() 1209 cout << "minval=" << heightRange.minVal << " maxval=" << heightRange.maxVal << end in HWTEST_F() [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fFragmentOutputTests.cpp | 647 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 D | es3fFlushFinishTests.cpp | 475 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 D | EffectDescription.h | 33 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 D | func_common.hpp | 168 /// 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 D | TestFmwk.java | 247 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 D | TestFmwk.java | 221 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 D | deThreadTest.c | 187 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 D | es31fShaderAtomicOpTests.cpp | 268 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);
|