Home
last modified time | relevance | path

Searched refs:targetHeight (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/aosp_15_r20/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/
H A DResizeWithCropOrPadOp.java37 private final int targetHeight; field in ResizeWithCropOrPadOp
48 public ResizeWithCropOrPadOp(int targetHeight, int targetWidth) { in ResizeWithCropOrPadOp() argument
49 this.targetHeight = targetHeight; in ResizeWithCropOrPadOp()
51 output = Bitmap.createBitmap(this.targetWidth, this.targetHeight, Config.ARGB_8888); in ResizeWithCropOrPadOp()
89 if (targetHeight > h) { // padding in apply()
92 dstT = (targetHeight - h) / 2; in apply()
96 dstB = targetHeight; in apply()
97 srcT = (h - targetHeight) / 2; in apply()
98 srcB = srcT + targetHeight; in apply()
109 return targetHeight; in getOutputImageHeight()
[all …]
H A DResizeOp.java39 private final int targetHeight; field in ResizeOp
50 public ResizeOp(int targetHeight, int targetWidth, ResizeMethod resizeMethod) { in ResizeOp() argument
51 this.targetHeight = targetHeight; in ResizeOp()
69 Bitmap.createScaledBitmap(image.getBitmap(), targetWidth, targetHeight, useBilinear); in apply()
76 return targetHeight; in getOutputImageHeight()
87 point.x * inputImageWidth / targetWidth, point.y * inputImageHeight / targetHeight); in inverseTransform()
/aosp_15_r20/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java98 public void decodeBitmap(int targetWidth, int targetHeight, boolean useHardwareBitmapIfPossible, in decodeBitmap() argument
102 mOriginalAsset.decodeBitmap(targetWidth, targetHeight, useHardwareBitmapIfPossible, in decodeBitmap()
106 CacheKey key = new CacheKey(mOriginalAsset, targetWidth, targetHeight); in decodeBitmap()
117 if (targetWidth == 0 && targetHeight == 0) { in decodeBitmap()
120 mOriginalAsset.decodeBitmap(targetWidth, targetHeight, useHardwareBitmapIfPossible, in decodeBitmap()
132 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
136 mOriginalAsset.decodeBitmapRegion(rect, targetWidth, targetHeight, shouldAdjustForRtl, in decodeBitmapRegion()
140 CacheKey key = new CacheKey(mOriginalAsset, targetWidth, targetHeight, shouldAdjustForRtl, in decodeBitmapRegion()
146 mOriginalAsset.decodeBitmapRegion(rect, targetWidth, targetHeight, shouldAdjustForRtl, in decodeBitmapRegion()
DStreamableAsset.java80 public void decodeBitmap(int targetWidth, int targetHeight, boolean useHardwareBitmapIfPossible, in decodeBitmap() argument
84 int newTargetHeight = targetHeight; in decodeBitmap()
167 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
169 runDecodeBitmapRegionTask(rect, targetWidth, targetHeight, shouldAdjustForRtl, receiver); in decodeBitmapRegion()
216 public void runDecodeBitmapRegionTask(Rect rect, int targetWidth, int targetHeight, in runDecodeBitmapRegionTask() argument
220 int newTargetHeight = targetHeight; in runDecodeBitmapRegionTask()
/aosp_15_r20/external/deqp/modules/gles2/functional/
H A Des2fColorClearTest.cpp110 const int targetHeight = renderTarget.getHeight(); in iterate() local
111 const int numPixels = targetWidth * targetHeight; in iterate()
115 Surface refImage(targetWidth, targetHeight); in iterate()
116 Surface resImage(targetWidth, targetHeight); in iterate()
117 Surface diffImage(targetWidth, targetHeight); in iterate()
136 clearHeight = targetHeight; in iterate()
141 clearY = (rnd.getUint32() % (2 * targetHeight)) - targetHeight; in iterate()
143 clearHeight = (rnd.getUint32() % targetHeight); in iterate()
173 for (int y = 0; y < targetHeight; y++) in iterate()
257 for (int y = 0; y < targetHeight; y++) in iterate()
H A Des2fPrerequisiteTests.cpp177 int targetHeight = renderTarget.getHeight(); in iterate() local
193 imageHeight = targetHeight; in iterate()
200 imageHeight = targetHeight / 2; in iterate()
205 y = targetHeight / 2; in iterate()
207 imageHeight = targetHeight - y; in iterate()
211 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate()
213 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1)); in iterate()
/aosp_15_r20/external/deqp/modules/gles3/functional/
H A Des3fColorClearTest.cpp110 const int targetHeight = renderTarget.getHeight(); in iterate() local
111 const int numPixels = targetWidth * targetHeight; in iterate()
115 Surface refImage(targetWidth, targetHeight); in iterate()
116 Surface resImage(targetWidth, targetHeight); in iterate()
117 Surface diffImage(targetWidth, targetHeight); in iterate()
136 clearHeight = targetHeight; in iterate()
141 clearY = (rnd.getUint32() % (2 * targetHeight)) - targetHeight; in iterate()
143 clearHeight = (rnd.getUint32() % targetHeight); in iterate()
173 for (int y = 0; y < targetHeight; y++) in iterate()
257 for (int y = 0; y < targetHeight; y++) in iterate()
H A Des3fPrerequisiteTests.cpp177 int targetHeight = renderTarget.getHeight(); in iterate() local
193 imageHeight = targetHeight; in iterate()
200 imageHeight = targetHeight / 2; in iterate()
205 y = targetHeight / 2; in iterate()
207 imageHeight = targetHeight - y; in iterate()
211 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate()
213 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1)); in iterate()
/aosp_15_r20/packages/apps/Gallery/src/com/android/camera/
DUtil.java153 int targetHeight, in transform() argument
157 int deltaY = source.getHeight() - targetHeight; in transform()
165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform()
175 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform()
177 int dstY = (targetHeight - src.height()) / 2; in transform()
182 targetHeight - dstY); in transform()
193 float viewAspect = (float) targetWidth / targetHeight; in transform()
196 float scale = targetHeight / bitmapHeightF; in transform()
225 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform()
232 targetHeight); in transform()
/aosp_15_r20/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
H A DGifFrameManager.java31 private final int targetHeight; field in GifFrameManager
43 public GifFrameManager(Context context, GifDecoder decoder, int targetWidth, int targetHeight) { in GifFrameManager() argument
45 targetHeight); in GifFrameManager()
49 int targetWidth, int targetHeight) { in GifFrameManager() argument
54 this.targetHeight = targetHeight; in GifFrameManager()
127 super(targetWidth, targetHeight); in DelayTarget()
H A DGifDrawable.java85 … frameManager = new GifFrameManager(state.context, decoder, state.targetWidth, state.targetHeight); in GifDrawable()
319 int targetHeight; field in GifDrawable.GifState
325 Transformation<Bitmap> frameTransformation, int targetWidth, int targetHeight, in GifState() argument
337 this.targetHeight = targetHeight; in GifState()
348 targetHeight = original.targetHeight; in GifState()
/aosp_15_r20/external/deqp/modules/glshared/
H A DglsInteractionTestUtil.cpp55 int targetHeight) in computeRandomRenderState() argument
116 int minScissorH = deCeilFloatToInt32(minScissorSize * (float)targetHeight); in computeRandomRenderState()
118 int maxScissorH = targetHeight + 2 * maxScissorOutOfBounds; in computeRandomRenderState()
123 …int scissorY = rnd.getInt(-maxScissorOutOfBounds, targetHeight + maxScissorOutOfBounds - scissorH); in computeRandomRenderState()
186 …domQuad(de::Random &rnd, gls::FragmentOpUtil::IntegerQuad &quad, int targetWidth, int targetHeight) in computeRandomQuad() argument
197 int minH = deCeilFloatToInt32(minSize * (float)targetHeight); in computeRandomQuad()
199 int maxH = targetHeight + 2 * maxOutOfBounds; in computeRandomQuad()
204 int y = rnd.getInt(-maxOutOfBounds, targetHeight + maxOutOfBounds - height); in computeRandomQuad()
/aosp_15_r20/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java107 int targetHeight = imageHeight; in loadImageThumbnailFromStream() local
109 while (targetHeight > heightBound || targetWidth > widthBound || in loadImageThumbnailFromStream()
110 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE || in loadImageThumbnailFromStream()
111 targetHeight * targetWidth > maximumPixels) { in loadImageThumbnailFromStream()
114 targetHeight = imageWidth / sampleSize; in loadImageThumbnailFromStream()
124 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) { in loadImageThumbnailFromStream()
/aosp_15_r20/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java473 int targetHeight, in transform() argument
479 int deltaY = source.getHeight() - targetHeight; in transform()
487 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform()
497 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform()
499 int dstY = (targetHeight - src.height()) / 2; in transform()
504 targetHeight - dstY); in transform()
516 float viewAspect = (float) targetWidth / targetHeight; in transform()
519 float scale = targetHeight / bitmapHeightF; in transform()
548 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform()
555 targetHeight); in transform()
/aosp_15_r20/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java101 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument
108 targetWidth, targetHeight, inputConfig != null ? inputConfig : Bitmap.Config.ARGB_8888); in getRoundedBitmap()
113 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap()
126 Math.min((float) inputWidth / targetWidth, (float) inputHeight / targetHeight); in getRoundedBitmap()
129 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); in getRoundedBitmap()
/aosp_15_r20/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
H A DCameraHelper.java71 int targetHeight = h; in getOptimalVideoSize() local
80 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
82 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
90 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
92 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/aosp_15_r20/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
H A DCameraHelper.java70 int targetHeight = h; in getOptimalVideoSize() local
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/aosp_15_r20/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
H A DCameraHelper.java71 int targetHeight = h; in getOptimalVideoSize() local
80 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
82 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
90 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
92 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/aosp_15_r20/developers/samples/android/common/src/java/com/example/android/common/media/
DCameraHelper.java71 int targetHeight = h; in getOptimalVideoSize() local
80 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
82 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
90 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
92 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/aosp_15_r20/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
H A DCameraHelper.java70 int targetHeight = h; in getOptimalVideoSize() local
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/aosp_15_r20/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument
131 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, in getRoundedBitmap()
137 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap()
150 (float) inputHeight / targetHeight); in getRoundedBitmap()
153 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); in getRoundedBitmap()
/aosp_15_r20/packages/apps/TV/src/com/android/tv/ui/
DKeypadChannelSwitchView.java336 int targetHeight = mBaseViewHeight + itemListHeight; in updateViewHeight() local
344 mCurrentHeight = targetHeight; in updateViewHeight()
345 setViewHeight(this, targetHeight); in updateViewHeight()
346 } else if (mCurrentHeight != targetHeight) { in updateViewHeight()
347 mResizeAnimator = createResizeAnimator(targetHeight); in updateViewHeight()
352 private Animator createResizeAnimator(int targetHeight) { in createResizeAnimator() argument
353 ValueAnimator animator = ValueAnimator.ofInt(mCurrentHeight, targetHeight); in createResizeAnimator()
/aosp_15_r20/hardware/google/gfxstream/host/gl/
DCompositorGl.cpp56 const uint32_t targetHeight = targetImage->height; in compose() local
63 s_gles2.glViewport(0, 0, targetWidth, targetHeight); in compose()
79 m_textureDraw->drawLayer(layer.props, targetWidth, targetHeight, layerImage->width, in compose()
82 m_textureDraw->drawLayer(layer.props, targetWidth, targetHeight, 1, 1, 0); in compose()
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
H A DMediaDataUtils.java105 float targetHeight = (float) target.second; in getScaleFactor() local
107 if (width == 0 || height == 0 || targetWidth == 0 || targetHeight == 0) { in getScaleFactor()
111 if ((width / height) > (targetWidth / targetHeight)) { in getScaleFactor()
113 return targetHeight / height; in getScaleFactor()
/aosp_15_r20/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DReorderAlgorithmUnitTest.java250 int targetHeight = boardGenerator.getRandom(1, height - 2); in generateRandomTestCase() local
253 int minTargetHeight = boardGenerator.getRandom(1, targetHeight); in generateRandomTestCase()
256 int y = boardGenerator.getRandom(0, height - targetHeight); in generateRandomTestCase()
259 targetWidth * targetHeight); in generateRandomTestCase()
261 ItemConfiguration solution = solve(board, x, y, targetWidth, targetHeight, in generateRandomTestCase()
273 testCase.spanY = targetHeight; in generateRandomTestCase()

12345678910>>...13