Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp78 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
80 : GraphicBuffer(inWidth, inHeight, inFormat, 1, static_cast<uint64_t>(inUsage), requestorName) in GraphicBuffer()
84 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument
87 mInitCheck = initWithSize(inWidth, inHeight, inFormat, inLayerCount, inUsage, in GraphicBuffer()
92 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
96 inWidth, inHeight, inFormat, inLayerCount, static_cast<uint64_t>(inUsage), in GraphicBuffer()
102 uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument
105 mInitCheck = initWithHandle(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
146 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument
153 static_cast<int>(inWidth) == width && in reallocate()
[all …]
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
130 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth,
135 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth, in GraphicBuffer() argument
138 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
140 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
143 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
166 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
169 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
198 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
244 status_t initWithSize(uint32_t inWidth, uint32_t inHeight,
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
130 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth,
135 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth, in GraphicBuffer() argument
138 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
140 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
143 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
166 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
169 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
198 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
244 status_t initWithSize(uint32_t inWidth, uint32_t inHeight,
[all …]
/frameworks/ml/nn/common/operations/
DRoiAlign.cpp70 uint32_t inWidth = getSizeOfDimension(inputShape, 2); in roiAlignNhwc() local
92 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiAlignNhwc()
94 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiAlignNhwc()
119 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiAlignNhwc()
145 if (x1 >= inWidth - 1) { in roiAlignNhwc()
146 x1 = x2 = inWidth - 1; in roiAlignNhwc()
156 uint32_t offsets[] = {y1 * inWidth * inDepth + x1 * inDepth, in roiAlignNhwc()
157 y1 * inWidth * inDepth + x2 * inDepth, in roiAlignNhwc()
158 y2 * inWidth * inDepth + x1 * inDepth, in roiAlignNhwc()
159 y2 * inWidth * inDepth + x2 * inDepth}; in roiAlignNhwc()
[all …]
DResizeImageOps.cpp70 const int inWidth = getSizeOfDimension(inputShape, 2); in resizeNearestNeighbor() local
76 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor()
92 inWidth - 1); in resizeNearestNeighbor()
96 std::copy_n(inputData + b * inHeight * inWidth * channels + in resizeNearestNeighbor()
97 inY * inWidth * channels + inX * channels, in resizeNearestNeighbor()
237 uint32_t inWidth = getSizeOfDimension(input, useNchw ? 3 : 2); in prepare() local
240 NN_RET_CHECK_GT(inWidth, 0); in prepare()
251 width = std::floor(static_cast<float>(inWidth) * in prepare()
258 static_cast<float>(inWidth) * in prepare()
DRoiPooling.cpp66 uint32_t inWidth = getSizeOfDimension(inputShape, 2); in roiPoolingNhwc() local
88 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiPoolingNhwc()
90 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiPoolingNhwc()
106 const T_Input* batchBase = inputData + batchId * inHeight * inWidth * inDepth; in roiPoolingNhwc()
116 wStart = std::min(wStart, inWidth); in roiPoolingNhwc()
117 wEnd = std::min(wEnd, inWidth); in roiPoolingNhwc()
126 T_Input inputValue = batchBase[h * inWidth * inDepth + w * inDepth + k]; in roiPoolingNhwc()
239 uint32_t inWidth = getSizeOfDimension(input, useNchw ? 3 : 2); in prepare() local
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DScaleFilter.java57 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument
58 return (int)(inWidth * mScale); in getOutputWidth()
62 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument
DCropFilter.java157 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument
158 return mOutputWidth <= 0 ? inWidth : mOutputWidth; in getOutputWidth()
161 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument
/frameworks/base/core/java/android/app/
DWallpaperManager.java700 int inWidth; in getBuiltInDrawable() local
708 inWidth = options.outWidth; in getBuiltInDrawable()
722 outWidth = Math.min(inWidth, outWidth); in getBuiltInDrawable()
725 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable()
728 float left = (inWidth - outWidth) * horizontalAlignment; in getBuiltInDrawable()
810 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument
814 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
818 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; in getMaxCropRect()
822 cropRect.right = inWidth; in getMaxCropRect()
823 float cropHeight = outHeight * (inWidth / (float) outWidth); in getMaxCropRect()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java811 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) {
814 if (inWidth / (float) inHeight > outWidth / (float) outHeight) {
817 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
818 cropRect.right = inWidth - cropRect.left;
825 cropRect.right = inWidth;
826 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2;
/frameworks/ml/nn/common/include/
DOperationsUtils.h237 inline PaddingScheme getPaddingScheme(int32_t inWidth, int32_t inHeight, int32_t strideWidth, in getPaddingScheme() argument
249 calculateExplicitPadding(inWidth, strideWidth, filterWidth, kPaddingSame, &expectedPaddingLeft, in getPaddingScheme()