Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/common/operations/
DRoiAlign.cpp72 uint32_t inWidth = getSizeOfDimension(inputShape, 2); in roiAlignNhwc() local
94 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiAlignNhwc()
96 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiAlignNhwc()
121 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiAlignNhwc()
147 if (x1 >= inWidth - 1) { in roiAlignNhwc()
148 x1 = x2 = inWidth - 1; in roiAlignNhwc()
158 uint32_t offsets[] = {y1 * inWidth * inDepth + x1 * inDepth, in roiAlignNhwc()
159 y1 * inWidth * inDepth + x2 * inDepth, in roiAlignNhwc()
160 y2 * inWidth * inDepth + x1 * inDepth, in roiAlignNhwc()
161 y2 * inWidth * inDepth + x2 * inDepth}; in roiAlignNhwc()
[all …]
DResizeImageOps.cpp72 const int inWidth = getSizeOfDimension(inputShape, 2); in resizeNearestNeighbor() local
78 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor()
94 inWidth - 1); in resizeNearestNeighbor()
98 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor()
99 inY * inWidth * channels + inX * channels, in resizeNearestNeighbor()
243 uint32_t inWidth = getSizeOfDimension(input, useNchw ? 3 : 2); in prepare() local
246 NN_RET_CHECK_GT(inWidth, 0); in prepare()
257 width = std::floor(static_cast<float>(inWidth) * in prepare()
264 static_cast<float>(inWidth) * in prepare()
DRoiPooling.cpp67 uint32_t inWidth = getSizeOfDimension(inputShape, 2); in roiPoolingNhwc() local
89 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiPoolingNhwc()
91 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiPoolingNhwc()
107 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiPoolingNhwc()
117 wStart = std::min(wStart, inWidth); in roiPoolingNhwc()
118 wEnd = std::min(wEnd, inWidth); in roiPoolingNhwc()
127 T_Input inputValue = batchBase[h * inWidth * inDepth + w * inDepth + k]; in roiPoolingNhwc()
240 uint32_t inWidth = getSizeOfDimension(input, useNchw ? 3 : 2); in prepare() local
/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/
DUtils.java109 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) { in getMaxCropRect() argument
112 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; in getMaxCropRect()
116 cropRect.right = inWidth - cropRect.left; in getMaxCropRect()
123 cropRect.right = inWidth; in getMaxCropRect()
124 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; in getMaxCropRect()
/packages/modules/NeuralNetworks/common/include/
DOperationsUtils.h221 inline PaddingScheme getPaddingScheme(int32_t inWidth, int32_t inHeight, int32_t strideWidth, in getPaddingScheme() argument
233 calculateExplicitPadding(inWidth, strideWidth, filterWidth, kPaddingSame, &expectedPaddingLeft, in getPaddingScheme()