Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp68 static float clipAndClampFloatToPcm16(float sample, float scaler) { in clipAndClampFloatToPcm16() argument
73 float fval = sample * scaler; in clipAndClampFloatToPcm16()
81 const float scaler = amplitude; in AAudioConvert_floatToPcm16() local
84 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
94 float scaler = amplitude1; in AAudioConvert_floatToPcm16() local
100 *destination++ = clipAndClampFloatToPcm16(sample, scaler); in AAudioConvert_floatToPcm16()
102 scaler += delta; in AAudioConvert_floatToPcm16()
112 const float scaler = amplitude / SHORT_SCALE; in AAudioConvert_pcm16ToFloat() local
114 destination[i] = source[i] * scaler; in AAudioConvert_pcm16ToFloat()
125 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.java361 private static Bitmap transform(Matrix scaler, in transform() argument
412 scaler.setScale(scale, scale); in transform()
414 scaler = null; in transform()
419 scaler.setScale(scale, scale); in transform()
421 scaler = null; in transform()
426 if (scaler != null) { in transform()
429 source.getWidth(), source.getHeight(), scaler, true); in transform()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp80 constexpr float scaler = 1.0f / 32768.0f; in convertPcm16ToFloat() local
82 destination[i] = source[i] * scaler; in convertPcm16ToFloat()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java702 final BitmapFactory.Options scaler; in generateCrop() local
709 scaler = new BitmapFactory.Options(); in generateCrop()
710 scaler.inSampleSize = scale; in generateCrop()
715 scaler = null; in generateCrop()
717 Bitmap cropped = decoder.decodeRegion(cropHint, scaler); in generateCrop()