Home
last modified time | relevance | path

Searched refs:widthScale (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NeuralNetworks/common/operations/
DRoiAlign.cpp68 const T_Roi widthScale = 1.0f / widthStride; in roiAlignNhwc() local
94 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiAlignNhwc()
96 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiAlignNhwc()
101 T_Roi wRoiStart = roiInfo[0] * widthScale; in roiAlignNhwc()
103 T_Roi wRoiEnd = roiInfo[2] * widthScale; in roiAlignNhwc()
195 const float widthScale = 1.0f / widthStride; in roiAlignQuantNhwc() local
211 float wRoiStart = static_cast<float>(roiInfo[0]) * widthScale * 0.125f; in roiAlignQuantNhwc()
213 float wRoiEnd = static_cast<float>(roiInfo[2]) * widthScale * 0.125f; in roiAlignQuantNhwc()
412 float heightScale, widthScale; in prepare() local
415 widthScale = context->getInputValue<_Float16>(kWidthStrideScalar); in prepare()
[all …]
DRoiPooling.cpp63 const T_Roi widthScale = 1.0f / widthStride; in roiPoolingNhwc() local
89 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiPoolingNhwc()
91 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiPoolingNhwc()
96 int32_t wRoiStart = std::round(static_cast<float>(roiInfo[0] * widthScale)); in roiPoolingNhwc()
98 int32_t wRoiEnd = std::round(static_cast<float>(roiInfo[2] * widthScale)); in roiPoolingNhwc()
DResizeImageOps.cpp78 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor() local
92 int inX = std::min((alignCorners) ? static_cast<int>(roundf(scaler(x, widthScale))) in resizeNearestNeighbor()
93 : static_cast<int>(floorf(scaler(x, widthScale))), in resizeNearestNeighbor()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java60 float widthScale = 1f; in scaleBitmap() local
62 widthScale = (float) width / bm.getWidth(); in scaleBitmap()
64 float scale = heightScale > widthScale ? heightScale : widthScale; in scaleBitmap()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java269 float widthScale = Math.min(viewWidth / w, 3.0f); in getProperBaseMatrix() local
271 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java325 final float widthScale = Math.max(1, minimumWidth / (float) desiredWidth); in onMeasure() local
327 final float scale = Math.min(maxScale, Math.max(widthScale, heightScale)); in onMeasure()