Home
last modified time | relevance | path

Searched refs:maxVal (Results 1 – 25 of 70) sorted by relevance

123

/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/
DLineRegion.java25 private Number maxVal; field in LineRegion
42 return maxVal.doubleValue() - minVal.doubleValue(); in length()
51 … return value.doubleValue() >= minVal.doubleValue() && value.doubleValue() <= maxVal.doubleValue(); in contains()
74 …oubleValue() <= this.minVal.doubleValue() && line2Max.doubleValue() >= this.maxVal.doubleValue()) { in intersects()
92 return maxVal; in getMaxVal()
95 public void setMaxVal(Number maxVal) { in setMaxVal() argument
96 if(maxVal == null) { in setMaxVal()
99 this.maxVal = maxVal; in setMaxVal()
/external/aac/libFDK/src/
Dscale.cpp352 SHORT temp, maxVal = 0; in getScalefactorShort() local
356 maxVal |= (temp^(temp>>(SHORT_BITS-1))); in getScalefactorShort()
359 return fixmax_I((INT)0,(INT)(fixnormz_D((INT)maxVal) - (INT)1 - (INT)(DFRACT_BITS - SHORT_BITS))); in getScalefactorShort()
379 INT_PCM temp, maxVal = 0; in getScalefactorPCM() local
383 maxVal |= (temp^(temp>>((sizeof(INT_PCM)*8)-1))); in getScalefactorPCM()
385 …return fixmax_I((INT)0,(INT)(fixnormz_D((INT)maxVal) - (INT)1 - (INT)(DFRACT_BITS - SAMPLE_BITS))); in getScalefactorPCM()
405 SHORT temp, maxVal = 0; in getScalefactorShort() local
409 maxVal |= (temp^(temp>>(SHORT_BITS-1))); in getScalefactorShort()
412 return fixmax_I((INT)0,(INT)(fixnormz_D((INT)maxVal) - (INT)1 - (INT)(DFRACT_BITS - SHORT_BITS))); in getScalefactorShort()
433 FIXP_DBL temp, maxVal = (FIXP_DBL)0; in getScalefactor() local
[all …]
/external/deqp/framework/randomshaders/
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()
[all …]
DrsgExpression.cpp188 int maxVal = minVal + rangeLen; in computeRandomValueRangeForInfElements() local
191 valueRange.getMax().component(ndx).asInt() = maxVal; in computeRandomValueRangeForInfElements()
210 float maxVal = minVal + step*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 float value = deFloatClamp(minVal + step*state.getRandom().getInt(0, numSteps), minVal, maxVal); in FloatLiteral()
[all …]
DrsgVariableValue.hpp201 …Scalar* minVal, const Scalar* maxVal) : m_type(&type), m_min(const_cast<Scalar*>(minVal)), m_max(c… in ConstValueRangeAccess() argument
243 …const VariableType& type, Scalar* minVal, Scalar* maxVal) : ConstValueRangeAccess(type, minVal, ma… in ValueRangeAccess() argument
275 …Range (const VariableType& type, const ConstValueAccess& minVal, const ConstValueAccess& maxVal);
276 ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal);
DrsgVariableValue.cpp165 …lueRange (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()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
DXYStepCalculator.java38 …static XYStep getStep(XYPlot plot, XYAxisType axisType, RectF rect, Number minVal, Number maxVal) { in getStep() argument
42 … step = getStep(plot.getDomainStepMode(), rect.width(), plot.getDomainStepValue(), minVal, maxVal); in getStep()
45 … step = getStep(plot.getRangeStepMode(), rect.height(), plot.getRangeStepValue(), minVal, maxVal); in getStep()
51 …p getStep(XYStepMode typeXY, float plotPixelSize, double stepValue, Number minVal, Number maxVal) { in getStep() argument
59 …stepPix = (float)(stepValue/ ValPixConverter.valPerPix(minVal.doubleValue(), maxVal.doubleValue(),… in getStep()
65 …stepVal = ValPixConverter.valPerPix(minVal.doubleValue(), maxVal.doubleValue(), plotPixelSize)*ste… in getStep()
70 …stepVal = ValPixConverter.valPerPix(minVal.doubleValue(), maxVal.doubleValue(), plotPixelSize)*ste… in getStep()
/external/aac/libAACenc/src/
Dnoisedet.cpp170 FIXP_DBL fhelp1, fhelp2, fhelp3, fhelp4, maxVal, minVal; in FDKaacEnc_noiseDetect() local
185 maxVal = fixMax(fhelp1, fhelp2); in FDKaacEnc_noiseDetect()
186 maxVal = fixMax(maxVal, fhelp3); in FDKaacEnc_noiseDetect()
187 maxVal = fixMax(maxVal, fhelp4); in FDKaacEnc_noiseDetect()
195 leadingBits = CountLeadingBits(maxVal); in FDKaacEnc_noiseDetect()
196 testVal = maxVal << leadingBits; in FDKaacEnc_noiseDetect()
/external/deqp/modules/gles2/functional/
Des2fShaderAlgorithmTests.cpp240 float maxVal = max(max(r, g), b); in init()
241 float L = (minVal + maxVal) * 0.5f; in init()
244 if (minVal == maxVal) in init()
251 S = (maxVal - minVal) / (maxVal + minVal); in init()
253 S = (maxVal - minVal) / (2.0f - maxVal - minVal); in init()
255 float ooDiff = 1.0f / (maxVal - minVal); in init()
256 if (r == maxVal) H = (g - b) * ooDiff; in init()
257 else if (g == maxVal) H = 2.0f + (b - r) * ooDiff; in init()
/external/deqp/framework/common/
DtcuTextureUtil.cpp447 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()
[all …]
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[3], resMax[3]); in computeScaleAndBias()
78 if (maxVal[c] - minVal[c] < eps) in computeScaleAndBias()
80 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computeScaleAndBias()
81 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computeScaleAndBias()
85 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computeScaleAndBias()
/external/skia/src/utils/
DSkTextureCompressor_LATC.cpp132 uint8_t maxVal = 0; in compress_latc_block_bb() local
135 maxVal = SkTMax(pixels[i], maxVal); in compress_latc_block_bb()
139 SkASSERT(!is_extremal(maxVal)); in compress_latc_block_bb()
142 generate_latc_palette(palette, maxVal, minVal); in compress_latc_block_bb()
164 static_cast<uint64_t>(maxVal) | in compress_latc_block_bb()
174 uint8_t maxVal = 0; in compress_latc_block_bb_ignore_extremal() local
181 maxVal = SkTMax(pixels[i], maxVal); in compress_latc_block_bb_ignore_extremal()
185 SkASSERT(!is_extremal(maxVal)); in compress_latc_block_bb_ignore_extremal()
188 generate_latc_palette(palette, minVal, maxVal); in compress_latc_block_bb_ignore_extremal()
221 (static_cast<uint64_t>(maxVal) << 8) | in compress_latc_block_bb_ignore_extremal()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/
DXYStepCalculatorTest.java46 double maxVal = 100; in testSubdivide() local
47 …YStep step = XYStepCalculator.getStep(XYStepMode.SUBDIVIDE, plotSize, numSegments, minVal, maxVal); in testSubdivide()
54 maxVal = 2000000000; in testSubdivide()
55 … step = XYStepCalculator.getStep(XYStepMode.SUBDIVIDE, plotSize, numSegments, minVal, maxVal); in testSubdivide()
/external/aac/libFDK/src/mips/
Dscale.cpp109 FIXP_DBL maxVal = FL2FX_DBL(0.0f); in getScalefactor() local
112 maxVal |= __builtin_mips_absq_s_w(*vector++); in getScalefactor()
115 return fixMax((INT)0,(CntLeadingZeros(maxVal) - 1)); in getScalefactor()
/external/aac/libSBRenc/src/
Dps_main.cpp557 FIXP_QMF maxVal [2][PS_MAX_BANDS]; in psFindBestScaling() local
560 FDKmemclear(maxVal, sizeof(maxVal)); in psFindBestScaling()
574 FIXP_QMF tmp = maxVal[0][bin]; in psFindBestScaling()
584 maxVal[0][bin] = tmp; in psFindBestScaling()
586 tmp = maxVal[1][bin]; in psFindBestScaling()
595 maxVal[1][bin] = tmp; in psFindBestScaling()
602 dynBandScale[band] = CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band])); in psFindBestScaling()
604 …dynBandScale[band] = fixMax(0,CountLeadingBits(fixMax(maxVal[0][band],maxBandValue[band]))-FRACT_B… in psFindBestScaling()
606 maxValue = fixMax(maxValue,fixMax(maxVal[0][band],maxVal[1][band])); in psFindBestScaling()
607 maxBandValue[band] = fixMax(maxVal[0][band], maxVal[1][band]); in psFindBestScaling()
Dps_bitenc.cpp296 const INT maxVal, in encodeDeltaFreq() argument
306 if( (delta>maxVal) || (delta<0) ) { in encodeDeltaFreq()
308 delta = delta>0?maxVal:0; in encodeDeltaFreq()
324 const INT maxVal, in encodeDeltaTime() argument
332 if( (delta>maxVal) || (delta<0) ) { in encodeDeltaTime()
334 delta = delta>0?maxVal:0; in encodeDeltaTime()
/external/aac/libAACdec/src/
Daacdec_tns.cpp230 FIXP_DBL maxVal=FL2FXCONST_DBL(0.0); in CTns_Filter() local
238 maxVal = fixMax(maxVal,fixp_abs(spec[i])); in CTns_Filter()
241 if ( maxVal > FL2FXCONST_DBL(0.03125*0.70710678118) ) in CTns_Filter()
242 s = fixMax(CntLeadingZeros(maxVal)-6,0); in CTns_Filter()
244 s = fixMax(CntLeadingZeros(maxVal)-5,0); in CTns_Filter()
/external/aac/libSBRdec/src/
Denv_calc.cpp1038 FIXP_DBL maxVal; in calculateSbrEnvelope() local
1042 maxVal = maxSubbandSample( analysBufferReal, in calculateSbrEnvelope()
1049 ov_reserve = fNorm(maxVal); in calculateSbrEnvelope()
1052 maxVal = maxSubbandSample( analysBufferReal, in calculateSbrEnvelope()
1059 reserve = fNorm(maxVal); in calculateSbrEnvelope()
1270 FIXP_DBL maxVal = FL2FX_DBL(0.0f); in maxSubbandSample() local
1281 maxVal = FDK_get_maxval(maxVal, &re[l][lowSubband], &im[l][lowSubband], width); in maxSubbandSample()
1289 maxVal |= (FIXP_DBL)((LONG)(tmp1)^((LONG)tmp1>>(DFRACT_BITS-1))); in maxSubbandSample()
1290 maxVal |= (FIXP_DBL)((LONG)(tmp2)^((LONG)tmp2>>(DFRACT_BITS-1))); in maxSubbandSample()
1301 maxVal |= (FIXP_DBL)((LONG)(tmp)^((LONG)tmp>>(DFRACT_BITS-1))); in maxSubbandSample()
[all …]
/external/opencv/cxcore/src/
Dcxminmaxloc.cpp63 *maxVal = _fin_cast_macro_(max_val); \
90 extrtype* minVal, extrtype* maxVal, CvPoint* minLoc, CvPoint* maxLoc ), \
91 (src, step, size, minVal, maxVal, minLoc, maxLoc) ) \
109 extrtype* minVal, extrtype* maxVal, \
218 extrtype* minVal, extrtype* maxVal, CvPoint* minLoc, CvPoint* maxLoc ), \
219 ( src, step, mask, maskStep, size, minVal, maxVal, minLoc, maxLoc) ) \
238 extrtype* minVal, extrtype* maxVal, CvPoint* minLoc, CvPoint* maxLoc ) \
/external/deqp/modules/gles2/accuracy/
Des2aVaryingInterpolationTests.cpp100 …desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective);
112 … desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective) in InterpolationCase() argument
116 , m_max (maxVal) in InterpolationCase()
300 Vec3 maxVal; in init() member
322 …"", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init()
323 … "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
/external/deqp/modules/gles3/accuracy/
Des3aVaryingInterpolationTests.cpp103 …desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective);
115 … 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 …"", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init()
330 … "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
/external/deqp/modules/gles3/functional/
Des3fFragmentOutputTests.cpp647 Vec4 maxVal (range.y()); in iterate() local
656 maxVal = tcu::min(maxVal, fmtInfo.valueMax); in iterate()
659 …< curInVec << " value range: " << valueRangeToString(numScalars, minVal, maxVal) << TestLog::EndMe… in iterate()
671 Vec4 c = minVal + (maxVal-minVal)*f; in iterate()
683 IVec4 maxVal (range.y()); in iterate() local
694 maxVal = select(maxVal, tcu::min(maxVal, fmtMaxVal), isZero); in iterate()
697 …< curInVec << " value range: " << valueRangeToString(numScalars, minVal, maxVal) << TestLog::EndMe… in iterate()
700 …const IVec4 step = ((maxVal.cast<deInt64>() - minVal.cast<deInt64>()) / (rangeDiv.cast<deInt64>()… in iterate()
712 DE_ASSERT(boolAll(logicalAnd(greaterThanEqual(c, minVal), lessThanEqual(c, maxVal)))); in iterate()
722 UVec4 maxVal (range.y()); in iterate() local
[all …]
/external/mesa3d/src/glsl/builtins/profiles/
D100.glsl143 float clamp(float x, float minVal, float maxVal);
144 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal);
145 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal);
146 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal);
148 vec2 clamp(vec2 x, float minVal, float maxVal);
149 vec3 clamp(vec3 x, float minVal, float maxVal);
150 vec4 clamp(vec4 x, float minVal, float maxVal);
D110.glsl143 float clamp(float x, float minVal, float maxVal);
144 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal);
145 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal);
146 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal);
148 vec2 clamp(vec2 x, float minVal, float maxVal);
149 vec3 clamp(vec3 x, float minVal, float maxVal);
150 vec4 clamp(vec4 x, float minVal, float maxVal);
D130.glsl237 float clamp(float x, float minVal, float maxVal);
238 vec2 clamp(vec2 x, vec2 minVal, vec2 maxVal);
239 vec3 clamp(vec3 x, vec3 minVal, vec3 maxVal);
240 vec4 clamp(vec4 x, vec4 minVal, vec4 maxVal);
242 vec2 clamp(vec2 x, float minVal, float maxVal);
243 vec3 clamp(vec3 x, float minVal, float maxVal);
244 vec4 clamp(vec4 x, float minVal, float maxVal);
246 int clamp(int x, int minVal, int maxVal);
247 ivec2 clamp(ivec2 x, ivec2 minVal, ivec2 maxVal);
248 ivec3 clamp(ivec3 x, ivec3 minVal, ivec3 maxVal);
[all …]

123