Home
last modified time | relevance | path

Searched refs:scaler (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp93 static float clipAndClampFloatToPcm16(float sample, float scaler) { in clipAndClampFloatToPcm16() argument
99 float fval = sample * scaler; in clipAndClampFloatToPcm16()
107 float scaler = amplitude; in AAudioConvert_floatToPcm16() local
110 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
120 float scaler = amplitude1; in AAudioConvert_floatToPcm16() local
126 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
128 scaler += delta; in AAudioConvert_floatToPcm16()
138 float scaler = amplitude / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local
140 destination[i] = source[i] * scaler; in AAudioConvert_pcm16ToFloat()
151 float scaler = amplitude1 / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcolorspace.cpp134 float scaler = 255 * 60 / 360.0f; in JNI_COLORSPACE_METHOD() local
136 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()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java357 private static Bitmap transform(Matrix scaler, in transform() argument
408 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()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp68 const float scaler = 1.0f / 32768.0f; in convertPcm16ToFloat() local
70 destination[i] = source[i] * scaler; in convertPcm16ToFloat()