Searched refs:inHeight (Results 1 – 5 of 5) sorted by relevance
/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/ |
D | Utils.java | 109 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) { in getMaxCropRect() argument 112 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect() 114 cropRect.bottom = inHeight; in getMaxCropRect() 115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; in getMaxCropRect() 124 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; in getMaxCropRect() 125 cropRect.bottom = inHeight - cropRect.top; in getMaxCropRect()
|
/packages/modules/NeuralNetworks/common/operations/ |
D | RoiAlign.cpp | 71 uint32_t inHeight = getSizeOfDimension(inputShape, 1); in roiAlignNhwc() local 95 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiAlignNhwc() 97 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiAlignNhwc() 121 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiAlignNhwc() 151 if (y1 >= inHeight - 1) { in roiAlignNhwc() 152 y1 = y2 = inHeight - 1; in roiAlignNhwc() 198 uint32_t inHeight = getSizeOfDimension(inputShape, 1); in roiAlignQuantNhwc() local 223 NN_RET_CHECK(hRoiStart <= inHeight); in roiAlignQuantNhwc() 225 NN_RET_CHECK(hRoiEnd <= inHeight); in roiAlignQuantNhwc() 250 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiAlignQuantNhwc() [all …]
|
D | ResizeImageOps.cpp | 71 const int inHeight = getSizeOfDimension(inputShape, 1); in resizeNearestNeighbor() local 77 const float heightScale = calculateResizeScale(inHeight, outHeight, alignCorners); in resizeNearestNeighbor() 87 inHeight - 1); in resizeNearestNeighbor() 98 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor() 242 uint32_t inHeight = getSizeOfDimension(input, useNchw ? 2 : 1); in prepare() local 245 NN_RET_CHECK_GT(inHeight, 0); in prepare() 255 height = std::floor(static_cast<float>(inHeight) * in prepare() 261 static_cast<float>(inHeight) * in prepare()
|
D | RoiPooling.cpp | 66 uint32_t inHeight = getSizeOfDimension(inputShape, 1); in roiPoolingNhwc() local 90 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiPoolingNhwc() 92 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiPoolingNhwc() 107 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiPoolingNhwc() 119 hStart = std::min(hStart, inHeight); in roiPoolingNhwc() 120 hEnd = std::min(hEnd, inHeight); in roiPoolingNhwc() 239 uint32_t inHeight = getSizeOfDimension(input, useNchw ? 2 : 1); in prepare() local
|
/packages/modules/NeuralNetworks/common/include/ |
D | OperationsUtils.h | 221 inline PaddingScheme getPaddingScheme(int32_t inWidth, int32_t inHeight, int32_t strideWidth, in getPaddingScheme() argument 235 calculateExplicitPadding(inHeight, strideHeight, filterHeight, kPaddingSame, in getPaddingScheme()
|