Searched refs:heightScale (Results 1 – 6 of 6) sorted by relevance
/packages/modules/NeuralNetworks/common/operations/ |
D | RoiAlign.cpp | 67 const T_Roi heightScale = 1.0f / heightStride; in roiAlignNhwc() local 95 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiAlignNhwc() 97 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiAlignNhwc() 102 T_Roi hRoiStart = roiInfo[1] * heightScale; in roiAlignNhwc() 104 T_Roi hRoiEnd = roiInfo[3] * heightScale; in roiAlignNhwc() 194 const float heightScale = 1.0f / heightStride; in roiAlignQuantNhwc() local 212 float hRoiStart = static_cast<float>(roiInfo[1]) * heightScale * 0.125f; in roiAlignQuantNhwc() 214 float hRoiEnd = static_cast<float>(roiInfo[3]) * heightScale * 0.125f; in roiAlignQuantNhwc() 412 float heightScale, widthScale; in prepare() local 414 heightScale = context->getInputValue<_Float16>(kHeightStrideSalar); in prepare() [all …]
|
D | RoiPooling.cpp | 62 const T_Roi heightScale = 1.0f / heightStride; in roiPoolingNhwc() local 90 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiPoolingNhwc() 92 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiPoolingNhwc() 97 int32_t hRoiStart = std::round(static_cast<float>(roiInfo[1] * heightScale)); in roiPoolingNhwc() 99 int32_t hRoiEnd = std::round(static_cast<float>(roiInfo[3] * heightScale)); in roiPoolingNhwc()
|
D | ResizeImageOps.cpp | 77 const float heightScale = calculateResizeScale(inHeight, outHeight, alignCorners); in resizeNearestNeighbor() local 85 int inY = std::min((alignCorners) ? static_cast<int>(roundf(scaler(y, heightScale))) in resizeNearestNeighbor() 86 : static_cast<int>(floorf(scaler(y, heightScale))), in resizeNearestNeighbor()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | BitmapUtils.java | 56 float heightScale = 1f; in scaleBitmap() local 58 heightScale = (float) height / bm.getHeight(); in scaleBitmap() 64 float scale = heightScale > widthScale ? heightScale : widthScale; in scaleBitmap()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 270 float heightScale = Math.min(viewHeight / h, 3.0f); in getProperBaseMatrix() local 271 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | VideoThumbnailView.java | 326 final float heightScale = Math.max(1, minimumHeight / (float) desiredHeight); in onMeasure() local 327 final float scale = Math.min(maxScale, Math.max(widthScale, heightScale)); in onMeasure()
|