Home
last modified time | relevance | path

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

/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.java454 private static Bitmap transform(Matrix scaler, in transform() argument
505 scaler.setScale(scale, scale); in transform()
507 scaler = null; in transform()
512 scaler.setScale(scale, scale); in transform()
514 scaler = null; in transform()
519 if (scaler != null) { in transform()
522 source.getWidth(), source.getHeight(), scaler, true); in transform()
/frameworks/ml/nn/common/operations/
DResizeImageOps.cpp78 const std::function<float(const int, const float)> scaler = in resizeNearestNeighbor() local
83 int inY = std::min((alignCorners) ? static_cast<int>(roundf(scaler(y, heightScale))) in resizeNearestNeighbor()
84 : static_cast<int>(floorf(scaler(y, heightScale))), in resizeNearestNeighbor()
90 int inX = std::min((alignCorners) ? static_cast<int>(roundf(scaler(x, widthScale))) in resizeNearestNeighbor()
91 : static_cast<int>(floorf(scaler(x, widthScale))), in resizeNearestNeighbor()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp118 constexpr float scaler = 1.0f / 32768.0f; in convertPcm16ToFloat() local
120 destination[i] = source[i] * scaler; in convertPcm16ToFloat()