Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/cpu_operations/
DRoiAlign.cpp56 const T_Roi widthScale = 1.0f / widthStride; in roiAlignNhwc() local
82 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiAlignNhwc()
84 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiAlignNhwc()
89 T_Roi wRoiStart = roiInfo[0] * widthScale; in roiAlignNhwc()
91 T_Roi wRoiEnd = roiInfo[2] * widthScale; in roiAlignNhwc()
183 const float widthScale = 1.0f / widthStride; in roiAlignQuantNhwc() local
199 float wRoiStart = static_cast<float>(roiInfo[0]) * widthScale * 0.125f; in roiAlignQuantNhwc()
201 float wRoiEnd = static_cast<float>(roiInfo[2]) * widthScale * 0.125f; in roiAlignQuantNhwc()
357 float heightScale, widthScale; in prepare() local
360 widthScale = context->getInputValue<_Float16>(kWidthStrideScalar); in prepare()
[all …]
DRoiPooling.cpp50 const T_Roi widthScale = 1.0f / widthStride; in roiPoolingNhwc() local
76 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiPoolingNhwc()
78 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiPoolingNhwc()
83 int32_t wRoiStart = std::round(static_cast<float>(roiInfo[0] * widthScale)); in roiPoolingNhwc()
85 int32_t wRoiEnd = std::round(static_cast<float>(roiInfo[2] * widthScale)); in roiPoolingNhwc()
DResizeImageOps.cpp71 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor() local
85 int inX = std::min((alignCorners) ? static_cast<int>(roundf(scaler(x, widthScale))) in resizeNearestNeighbor()
86 : static_cast<int>(floorf(scaler(x, widthScale))), in resizeNearestNeighbor()
/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()
/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()