Searched refs:heightScale (Results 1 – 5 of 5) sorted by relevance
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | RoiAlign.cpp | 55 const T_Roi heightScale = 1.0f / heightStride; in roiAlignNhwc() local 83 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiAlignNhwc() 85 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiAlignNhwc() 90 T_Roi hRoiStart = roiInfo[1] * heightScale; in roiAlignNhwc() 92 T_Roi hRoiEnd = roiInfo[3] * heightScale; in roiAlignNhwc() 182 const float heightScale = 1.0f / heightStride; in roiAlignQuantNhwc() local 200 float hRoiStart = static_cast<float>(roiInfo[1]) * heightScale * 0.125f; in roiAlignQuantNhwc() 202 float hRoiEnd = static_cast<float>(roiInfo[3]) * heightScale * 0.125f; in roiAlignQuantNhwc() 357 float heightScale, widthScale; in prepare() local 359 heightScale = context->getInputValue<_Float16>(kHeightStrideSalar); in prepare() [all …]
|
D | RoiPooling.cpp | 49 const T_Roi heightScale = 1.0f / heightStride; in roiPoolingNhwc() local 77 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiPoolingNhwc() 79 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiPoolingNhwc() 84 int32_t hRoiStart = std::round(static_cast<float>(roiInfo[1] * heightScale)); in roiPoolingNhwc() 86 int32_t hRoiEnd = std::round(static_cast<float>(roiInfo[3] * heightScale)); in roiPoolingNhwc()
|
D | ResizeImageOps.cpp | 70 const float heightScale = calculateResizeScale(inHeight, outHeight, alignCorners); in resizeNearestNeighbor() local 78 int inY = std::min((alignCorners) ? static_cast<int>(roundf(scaler(y, heightScale))) in resizeNearestNeighbor() 79 : static_cast<int>(floorf(scaler(y, heightScale))), in resizeNearestNeighbor()
|
/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()
|
/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()
|