Home
last modified time | relevance | path

Searched refs:outWidth (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DResize.cpp32 RandomVariable outHeight, outWidth; in resizeOpConstructor() local
36 outWidth = op->inputs[1]->value<RandomVariable>(); in resizeOpConstructor()
41 outWidth = op->inputs[0]->dimensions[widthIndex] * op->inputs[1]->value<float>(); in resizeOpConstructor()
45 outWidth = op->inputs[0]->dimensions[widthIndex] * in resizeOpConstructor()
56 outHeight, outWidth}; in resizeOpConstructor()
58 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outHeight, outWidth, in resizeOpConstructor()
DReshape.cpp39 auto outWidth = op->inputs[0]->dimensions[widthIndex].exactDiv(blockSize); in spaceToDepthConstructor() local
43 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outDepth, outHeight, outWidth}; in spaceToDepthConstructor()
45 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outHeight, outWidth, outDepth}; in spaceToDepthConstructor()
94 auto outWidth = op->inputs[0]->dimensions[widthIndex] * blockSize; in depthToSpaceConstructor() local
98 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outDepth, outHeight, outWidth}; in depthToSpaceConstructor()
100 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outHeight, outWidth, outDepth}; in depthToSpaceConstructor()
183 auto outWidth = op->inputs[0]->dimensions[widthIndex] * blockWidth; in batchToSpaceConstructor() local
186 op->outputs[0]->dimensions = {outBatch, op->inputs[0]->dimensions[1], outHeight, outWidth}; in batchToSpaceConstructor()
188 op->outputs[0]->dimensions = {outBatch, outHeight, outWidth, op->inputs[0]->dimensions[3]}; in batchToSpaceConstructor()
249 auto outWidth = paddedWidth.exactDiv(blockWidth); in spaceToBatchConstructor() local
[all …]
DBoundingBox.cpp56 auto outWidth = op->inputs[4]->value<RandomVariable>(); in roiConstructor() local
58 op->outputs[0]->dimensions = {outBatch, outDepth, outHeight, outWidth}; in roiConstructor()
60 op->outputs[0]->dimensions = {outBatch, outHeight, outWidth, outDepth}; in roiConstructor()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java425 final int outWidth = (int) Math.round(cropRect.width() * cropScale); in cropImageAndSetWallpaper()
437 cropRect, cropRotation, outWidth, outHeight, true, false, onEndCrop); in cropImageAndSetWallpaper()
467 RectF cropBounds, int rotation, int outWidth, int outHeight,
472 outWidth, outHeight, setWallpaper, saveCroppedBitmap, onEndRunnable);
476 RectF cropBounds, int rotation, int outWidth, int outHeight,
480 outWidth, outHeight, setWallpaper, saveCroppedBitmap, onEndRunnable);
484 RectF cropBounds, int rotation, int outWidth, int outHeight,
489 outWidth, outHeight, setWallpaper, saveCroppedBitmap, onEndRunnable);
493 RectF cropBounds, int rotation, int outWidth, int outHeight,
499 outWidth, outHeight, setWallpaper, saveCroppedBitmap, onEndRunnable);
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java40 if ((onlyBoundsOptions.outWidth == -1) || (onlyBoundsOptions.outHeight == -1)) { in resolveImage()
45 (onlyBoundsOptions.outHeight > onlyBoundsOptions.outWidth) in resolveImage()
47 : onlyBoundsOptions.outWidth; in resolveImage()
/frameworks/base/core/java/android/app/
DWallpaperManager.java651 public Drawable getBuiltInDrawable(int outWidth, int outHeight, in getBuiltInDrawable() argument
653 return getBuiltInDrawable(outWidth, outHeight, scaleToFit, in getBuiltInDrawable()
673 public Drawable getBuiltInDrawable(int outWidth, int outHeight, boolean scaleToFit, in getBuiltInDrawable() argument
696 if (outWidth <= 0 || outHeight <= 0) { in getBuiltInDrawable()
707 if (options.outWidth != 0 && options.outHeight != 0) { in getBuiltInDrawable()
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()
729 float right = left + outWidth; in getBuiltInDrawable()
[all …]
DDisabledWallpaperManager.java93 public Drawable getBuiltInDrawable(int outWidth, int outHeight, boolean scaleToFit, in getBuiltInDrawable() argument
99 public Drawable getBuiltInDrawable(int outWidth, int outHeight, boolean scaleToFit, in getBuiltInDrawable() argument
/frameworks/ml/nn/common/operations/
DResizeImageOps.cpp73 const int outWidth = getSizeOfDimension(outputShape, 2); in resizeNearestNeighbor() local
76 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor()
89 for (int x = 0; x < outWidth; ++x) { in resizeNearestNeighbor()
99 outputData + b * outHeight * outWidth * channels + in resizeNearestNeighbor()
100 y * outWidth * channels + x * channels); in resizeNearestNeighbor()
DRoiAlign.cpp73 uint32_t outWidth = getSizeOfDimension(outputShape, 2); in roiAlignNhwc() local
106 T_Roi wStepSize = roiWidth / static_cast<T_Roi>(outWidth); in roiAlignNhwc()
121 for (uint32_t j = 0; j < outWidth; j++) { in roiAlignNhwc()
200 uint32_t outWidth = getSizeOfDimension(outputShape, 2); in roiAlignQuantNhwc() local
229 float wStepSize = roiWidth / static_cast<float>(outWidth); in roiAlignQuantNhwc()
250 for (uint32_t j = 0; j < outWidth; j++) { in roiAlignQuantNhwc()
DRoiPooling.cpp69 uint32_t outWidth = getSizeOfDimension(outputShape, 2); in roiPoolingNhwc() local
103 T_Roi wStepSize = roiWidth / static_cast<T_Roi>(outWidth); in roiPoolingNhwc()
108 for (uint32_t j = 0; j < outWidth; j++) { in roiPoolingNhwc()
DPooling.cpp372 uint32_t outWidth = computeOutSize(width, param.filter_width, param.stride_width, in prepare() local
379 output.dimensions = {batches, channels, outHeight, outWidth}; in prepare()
381 output.dimensions = {batches, outHeight, outWidth, channels}; in prepare()
DTransposeConv2D.cpp524 uint32_t outWidth = computeOutSizeTransposeConv(width, filterWidth, param.strideWidth, in prepare() local
528 NN_RET_CHECK_GT(outWidth, 0); in prepare()
534 output.dimensions = {batches, channels_out, outHeight, outWidth}; in prepare()
536 output.dimensions = {batches, outHeight, outWidth, channels_out}; in prepare()
DConv2D.cpp138 uint32_t outWidth = getSizeOfDimension(outputShape, 2); \
650 uint32_t outWidth = in prepare() local
660 output.dimensions = {batches, channels_out, outHeight, outWidth}; in prepare()
662 output.dimensions = {batches, outHeight, outWidth, channels_out}; in prepare()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp298 uint32_t outWidth, outHeight; in setDisplayProjection() local
308 outWidth = videoWidth; in setDisplayProjection()
313 outWidth = (uint32_t)(videoHeight / displayAspect); in setDisplayProjection()
316 offX = (videoWidth - outWidth) / 2; in setDisplayProjection()
318 Rect displayRect(offX, offY, offX + outWidth, offY + outHeight); in setDisplayProjection()
323 outHeight, outWidth, offY, offX); in setDisplayProjection()
327 outWidth, outHeight, offX, offY); in setDisplayProjection()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java226 srcW = mOpts.outWidth; in decode()
230 srcH = mOpts.outWidth; in decode()
412 result.setLogicalWidth(mOpts.outWidth); in decode()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java100 final int width = options.outWidth; in calculateInSampleSize()
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp200 status_t GraphicBufferMapper::getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth) { in getWidth() argument
201 return mMapper->getWidth(bufferHandle, outWidth); in getWidth()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java202 return new Point(opts.outWidth, opts.outHeight); in getImageBounds()
/frameworks/native/libs/ui/include/ui/
DGraphicBufferMapper.h99 status_t getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth);
DGralloc4.h72 status_t getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth) const override;
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBufferMapper.h99 status_t getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth);
/frameworks/native/libs/gralloc/types/
DGralloc4.cpp960 status_t encodeWidth(uint64_t width, hidl_vec<uint8_t>* outWidth) { in encodeWidth() argument
961 return encodeMetadata(MetadataType_Width, width, outWidth, encodeInteger); in encodeWidth()
964 status_t decodeWidth(const hidl_vec<uint8_t>& width, uint64_t* outWidth) { in decodeWidth() argument
965 return decodeMetadata(MetadataType_Width, width, outWidth, decodeInteger); in decodeWidth()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java368 public int outWidth; field in BitmapFactory.Options
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.h296 /*out*/int32_t* outWidth, /*out*/int32_t* outHeight);
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java1943 width = opt.outWidth; in SetHtml()
1945 if (opt.outWidth > getMaxImageWidthPx()) { in SetHtml()
1947 height = height * getMaxImageWidthPx() / opt.outWidth; in SetHtml()
2638 width = opt.outWidth; in getDrawable()
2642 if (opt.outWidth > MAXWIDTH) { in getDrawable()
2644 height = height * MAXWIDTH / opt.outWidth; in getDrawable()

12