Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h97 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
134 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth,
139 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth, in GraphicBuffer() argument
142 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
144 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
147 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
176 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
179 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
208 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
259 status_t initWithSize(uint32_t inWidth, uint32_t inHeight,
[all …]
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h97 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
134 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth,
139 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth, in GraphicBuffer() argument
142 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
144 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
147 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
176 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
179 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
208 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
259 status_t initWithSize(uint32_t inWidth, uint32_t inHeight,
[all …]
/frameworks/native/libs/ui/
DGraphicBuffer.cpp83 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
85 : GraphicBuffer(inWidth, inHeight, inFormat, 1, static_cast<uint64_t>(inUsage), requestorName) in GraphicBuffer()
89 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument
92 mInitCheck = initWithSize(inWidth, inHeight, inFormat, inLayerCount, inUsage, in GraphicBuffer()
97 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
101 inWidth, inHeight, inFormat, inLayerCount, static_cast<uint64_t>(inUsage), in GraphicBuffer()
107 uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument
110 mInitCheck = initWithHandle(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
167 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument
174 static_cast<int>(inWidth) == width && in reallocate()
[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.java639 int inWidth; in getBuiltInDrawable() local
647 inWidth = options.outWidth; in getBuiltInDrawable()
661 outWidth = Math.min(inWidth, outWidth); in getBuiltInDrawable()
664 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable()
667 float left = (inWidth - outWidth) * horizontalAlignment; in getBuiltInDrawable()
749 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument
753 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
757 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; in getMaxCropRect()
761 cropRect.right = inWidth; in getMaxCropRect()
762 float cropHeight = outHeight * (inWidth / (float) outWidth); in getMaxCropRect()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java814 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) {
817 if (inWidth / (float) inHeight > outWidth / (float) outHeight) {
820 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
821 cropRect.right = inWidth - cropRect.left;
828 cropRect.right = inWidth;
829 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()