Searched refs:scaler (Results 1 – 4 of 4) sorted by relevance
93 static float clipAndClampFloatToPcm16(float sample, float scaler) { in clipAndClampFloatToPcm16() argument99 float fval = sample * scaler; in clipAndClampFloatToPcm16()107 float scaler = amplitude; in AAudioConvert_floatToPcm16() local110 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()120 float scaler = amplitude1; in AAudioConvert_floatToPcm16() local126 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()128 scaler += delta; in AAudioConvert_floatToPcm16()138 float scaler = amplitude / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local140 destination[i] = source[i] * scaler; in AAudioConvert_pcm16ToFloat()151 float scaler = amplitude1 / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local[all …]
134 float scaler = 255 * 60 / 360.0f; in JNI_COLORSPACE_METHOD() local136 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) : in JNI_COLORSPACE_METHOD()137 static_cast<int>(scaler * ((g - b) / delta + 6)); in JNI_COLORSPACE_METHOD()139 h = static_cast<int>(scaler * ((b - r) / delta + 2)); in JNI_COLORSPACE_METHOD()141 h = static_cast<int>(scaler * ((r - g) / delta + 4)); in JNI_COLORSPACE_METHOD()
357 private static Bitmap transform(Matrix scaler, in transform() argument408 scaler.setScale(scale, scale); in transform()410 scaler = null; in transform()415 scaler.setScale(scale, scale); in transform()417 scaler = null; in transform()422 if (scaler != null) { in transform()425 source.getWidth(), source.getHeight(), scaler, true); in transform()
68 const float scaler = 1.0f / 32768.0f; in convertPcm16ToFloat() local70 destination[i] = source[i] * scaler; in convertPcm16ToFloat()