/external/aac/libFDK/src/ |
D | scale.cpp | 352 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/ |
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() [all …]
|
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*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 …]
|
D | rsgVariableValue.hpp | 201 …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);
|
D | rsgVariableValue.cpp | 165 …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/aac/libAACenc/src/ |
D | noisedet.cpp | 170 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/skia/src/utils/ |
D | SkTextureCompressor.cpp | 83 uint8_t maxVal = 0; in compress_block_bb() local 86 maxVal = SkTMax(pixels[i], maxVal); in compress_block_bb() 90 SkASSERT(!is_extremal(maxVal)); in compress_block_bb() 93 generate_palette(palette, maxVal, minVal); in compress_block_bb() 115 static_cast<uint64_t>(maxVal) | in compress_block_bb() 125 uint8_t maxVal = 0; in compress_block_bb_ignore_extremal() local 132 maxVal = SkTMax(pixels[i], maxVal); in compress_block_bb_ignore_extremal() 136 SkASSERT(!is_extremal(maxVal)); in compress_block_bb_ignore_extremal() 139 generate_palette(palette, minVal, maxVal); in compress_block_bb_ignore_extremal() 172 (static_cast<uint64_t>(maxVal) << 8) | in compress_block_bb_ignore_extremal()
|
/external/deqp/modules/gles2/functional/ |
D | es2fShaderAlgorithmTests.cpp | 240 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/ |
D | tcuTextureUtil.cpp | 427 static inline float linearInterpolate (float t, float minVal, float maxVal) in linearInterpolate() argument 429 return minVal + (maxVal - minVal) * t; in linearInterpolate() 584 …lWithComponentGradients1D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients1D() argument 591 float r = linearInterpolate(s, minVal.x(), maxVal.x()); in fillWithComponentGradients1D() 592 float g = linearInterpolate(s, minVal.y(), maxVal.y()); in fillWithComponentGradients1D() 593 float b = linearInterpolate(s, minVal.z(), maxVal.z()); in fillWithComponentGradients1D() 594 float a = linearInterpolate(s, minVal.w(), maxVal.w()); in fillWithComponentGradients1D() 600 …lWithComponentGradients2D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal) in fillWithComponentGradients2D() argument 609 float r = linearInterpolate(( s + t) *0.5f, minVal.x(), maxVal.x()); in fillWithComponentGradients2D() 610 float g = linearInterpolate(( s + (1.0f-t))*0.5f, minVal.y(), maxVal.y()); in fillWithComponentGradients2D() [all …]
|
D | tcuImageCompare.cpp | 46 Vec4 maxVal; in computeScaleAndBias() local 55 maxVal = refMax; in computeScaleAndBias() 69 maxVal[0] = de::max(maxVal[0], resMax[0]); in computeScaleAndBias() 70 maxVal[1] = de::max(maxVal[1], resMax[1]); in computeScaleAndBias() 71 maxVal[2] = de::max(maxVal[2], resMax[2]); in computeScaleAndBias() 72 maxVal[3] = de::max(maxVal[3], resMax[3]); in computeScaleAndBias() 77 if (maxVal[c] - minVal[c] < eps) in computeScaleAndBias() 79 scale[c] = (maxVal[c] < eps) ? 1.0f : (1.0f / maxVal[c]); in computeScaleAndBias() 80 bias[c] = (c == 3) ? (1.0f - maxVal[c]*scale[c]) : (0.0f - minVal[c]*scale[c]); in computeScaleAndBias() 84 scale[c] = 1.0f / (maxVal[c] - minVal[c]); in computeScaleAndBias()
|
D | tcuTextureUtil.hpp | 90 …lWithComponentGradients (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal); 99 void estimatePixelValueRange (const ConstPixelBufferAccess& access, Vec4& minVal, Vec4& maxVal);
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
D | state_construct.c | 35 int16_t maxVal; in WebRtcIlbcfix_StateConstruct() local 53 maxVal = WebRtcIlbcfix_kFrgQuantMod[idxForMax]; in WebRtcIlbcfix_StateConstruct() 63 …(*tmp1) = (int16_t) ((WEBRTC_SPL_MUL_16_16(maxVal,WebRtcIlbcfix_kStateSq3[(*tmp2)])+(int32_t)20971… in WebRtcIlbcfix_StateConstruct() 71 …(*tmp1) = (int16_t) ((WEBRTC_SPL_MUL_16_16(maxVal,WebRtcIlbcfix_kStateSq3[(*tmp2)])+(int32_t)26214… in WebRtcIlbcfix_StateConstruct() 79 …(*tmp1) = (int16_t) ((WEBRTC_SPL_MUL_16_16(maxVal,WebRtcIlbcfix_kStateSq3[(*tmp2)])+(int32_t)65536… in WebRtcIlbcfix_StateConstruct()
|
D | state_search.c | 37 int16_t maxVal; in WebRtcIlbcfix_StateSearch() local 81 maxVal=WebRtcSpl_MaxAbsValueW16(sampleAr, iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch() 85 if ((((int32_t)maxVal)<<scaleRes)<23170) { in WebRtcIlbcfix_StateSearch() 86 maxValsq=((int32_t)maxVal*maxVal)<<(2+2*scaleRes); in WebRtcIlbcfix_StateSearch()
|
/external/chromium_org/third_party/skia/src/utils/ |
D | SkTextureCompressor_LATC.cpp | 131 uint8_t maxVal = 0; in compress_latc_block_bb() local 134 maxVal = SkTMax(pixels[i], maxVal); in compress_latc_block_bb() 138 SkASSERT(!is_extremal(maxVal)); in compress_latc_block_bb() 141 generate_latc_palette(palette, maxVal, minVal); in compress_latc_block_bb() 163 static_cast<uint64_t>(maxVal) | in compress_latc_block_bb() 173 uint8_t maxVal = 0; in compress_latc_block_bb_ignore_extremal() local 180 maxVal = SkTMax(pixels[i], maxVal); in compress_latc_block_bb_ignore_extremal() 184 SkASSERT(!is_extremal(maxVal)); in compress_latc_block_bb_ignore_extremal() 187 generate_latc_palette(palette, minVal, maxVal); in compress_latc_block_bb_ignore_extremal() 220 (static_cast<uint64_t>(maxVal) << 8) | in compress_latc_block_bb_ignore_extremal()
|
/external/aac/libFDK/src/mips/ |
D | scale.cpp | 109 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/ |
D | ps_main.cpp | 557 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()
|
D | ps_bitenc.cpp | 296 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/ |
D | aacdec_tns.cpp | 230 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/opencv/cxcore/src/ |
D | cxminmaxloc.cpp | 63 *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/aac/libSBRdec/src/ |
D | env_calc.cpp | 1038 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/deqp/modules/gles3/accuracy/ |
D | es3aVaryingInterpolationTests.cpp | 103 …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() 308 Vec3 maxVal; in init() member 330 …"", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init() 331 … "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
|
/external/deqp/modules/gles2/accuracy/ |
D | es2aVaryingInterpolationTests.cpp | 100 …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() 301 Vec3 maxVal; in init() member 323 …"", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init() 324 … "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
|
/external/deqp/modules/gles3/functional/ |
D | es3fFragmentOutputTests.cpp | 582 Vec4 maxVal (range.y()); in iterate() local 591 maxVal = tcu::min(maxVal, fmtInfo.valueMax); in iterate() 594 …:Message << "out" << curInVec << " value range: " << minVal << " -> " << maxVal << TestLog::EndMes… in iterate() 606 Vec4 c = minVal + (maxVal-minVal)*f; in iterate() 618 IVec4 maxVal (range.y()); in iterate() local 629 maxVal = select(maxVal, tcu::min(maxVal, fmtMaxVal), isZero); in iterate() 632 …:Message << "out" << curInVec << " value range: " << minVal << " -> " << maxVal << TestLog::EndMes… in iterate() 635 …const IVec4 step = ((maxVal.cast<deInt64>() - minVal.cast<deInt64>()) / (rangeDiv.cast<deInt64>()… in iterate() 647 DE_ASSERT(boolAll(logicalAnd(greaterThanEqual(c, minVal), lessThanEqual(c, maxVal)))); in iterate() 657 UVec4 maxVal (range.y()); in iterate() local [all …]
|
/external/chromium_org/third_party/mesa/src/src/glsl/builtins/profiles/ |
D | 100.glsl | 143 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);
|
/external/mesa3d/src/glsl/builtins/profiles/ |
D | 100.glsl | 143 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);
|