Home
last modified time | relevance | path

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

/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/
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 …]
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()
/external/deqp/modules/gles2/functional/
Des2fColorClearTest.cpp107 const int targetHeight = renderTarget.getHeight(); in iterate() local
108 const int numPixels = targetWidth * targetHeight; in iterate()
112 Surface refImage (targetWidth, targetHeight); in iterate()
113 Surface resImage (targetWidth, targetHeight); in iterate()
114 Surface diffImage (targetWidth, targetHeight); in iterate()
133 clearHeight = targetHeight; in iterate()
138 clearY = (rnd.getUint32() % (2*targetHeight)) - targetHeight; in iterate()
140 clearHeight = (rnd.getUint32() % targetHeight); in iterate()
170 for (int y = 0; y < targetHeight; y++) in iterate()
250 for (int y = 0; y < targetHeight; y++) in iterate()
Des2fPrerequisiteTests.cpp179 int targetHeight = renderTarget.getHeight(); in iterate() local
195 imageHeight = targetHeight; in iterate()
202 imageHeight = targetHeight / 2; in iterate()
207 y = targetHeight / 2; in iterate()
209 imageHeight = targetHeight - y; in iterate()
213 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate()
215 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1)); in iterate()
/external/deqp/modules/gles3/functional/
Des3fColorClearTest.cpp107 const int targetHeight = renderTarget.getHeight(); in iterate() local
108 const int numPixels = targetWidth * targetHeight; in iterate()
112 Surface refImage (targetWidth, targetHeight); in iterate()
113 Surface resImage (targetWidth, targetHeight); in iterate()
114 Surface diffImage (targetWidth, targetHeight); in iterate()
133 clearHeight = targetHeight; in iterate()
138 clearY = (rnd.getUint32() % (2*targetHeight)) - targetHeight; in iterate()
140 clearHeight = (rnd.getUint32() % targetHeight); in iterate()
170 for (int y = 0; y < targetHeight; y++) in iterate()
250 for (int y = 0; y < targetHeight; y++) in iterate()
Des3fPrerequisiteTests.cpp179 int targetHeight = renderTarget.getHeight(); in iterate() local
195 imageHeight = targetHeight; in iterate()
202 imageHeight = targetHeight / 2; in iterate()
207 y = targetHeight / 2; in iterate()
209 imageHeight = targetHeight - y; in iterate()
213 y = deRandom_getUint32(&rnd) % (targetHeight - 1); in iterate()
215 imageHeight = 1 + (deRandom_getUint32(&rnd) % (targetHeight - y - 1)); in iterate()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
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()
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()
/external/deqp/modules/glshared/
DglsInteractionTestUtil.cpp54 …tate (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight) in computeRandomRenderState() argument
158 int minScissorH = deCeilFloatToInt32(minScissorSize * (float)targetHeight); in computeRandomRenderState()
160 int maxScissorH = targetHeight + 2*maxScissorOutOfBounds; in computeRandomRenderState()
165 int scissorY = rnd.getInt(-maxScissorOutOfBounds, targetHeight+maxScissorOutOfBounds-scissorH); in computeRandomRenderState()
220 …omQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeight) in computeRandomQuad() argument
231 int minH = deCeilFloatToInt32(minSize * (float)targetHeight); in computeRandomQuad()
233 int maxH = targetHeight + 2*maxOutOfBounds; in computeRandomQuad()
238 int y = rnd.getInt(-maxOutOfBounds, targetHeight+maxOutOfBounds-height); in computeRandomQuad()
DglsInteractionTestUtil.hpp121 …te (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight);
122 …ad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeight);
/external/webrtc/sdk/android/api/org/webrtc/
DVideoFileRenderer.java90 final int targetHeight = frame.getRotation() % 180 == 0 ? outputFileHeight : outputFileWidth; in renderFrameOnRenderThread() local
93 final float fileAspectRatio = (float) targetWidth / (float) targetHeight; in renderFrameOnRenderThread()
108 buffer.cropAndScale(cropX, cropY, cropWidth, cropHeight, targetWidth, targetHeight); in renderFrameOnRenderThread()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DTransformationUtils.java101 final int targetHeight = (int) (minPercentage * toFit.getHeight()); in fitCenter() local
103 if (toFit.getWidth() == targetWidth && toFit.getHeight() == targetHeight) { in fitCenter()
111 Bitmap toReuse = pool.get(targetWidth, targetHeight, config); in fitCenter()
113 toReuse = Bitmap.createBitmap(targetWidth, targetHeight, config); in fitCenter()
DDownsampler.java198 int targetHeight = (int) Math.ceil(inHeight / (double) sampleSize); in downsampleWithSize() local
200 setInBitmap(options, pool.getDirty(targetWidth, targetHeight, config)); in downsampleWithSize()
/external/deqp/modules/egl/
DteglNativeCoordMappingTests.cpp229 void render (const glw::Functions& gl, deUint32 program, int targetWidth, int targetHeight, int x, … in render() argument
233 toGLCoord(targetWidth, targetHeight, x, y), in render()
234 toGLCoord(targetWidth, targetHeight, x+width, y), in render()
235 toGLCoord(targetWidth, targetHeight, x+width, y+height), in render()
237 toGLCoord(targetWidth, targetHeight, x+width, y+height), in render()
238 toGLCoord(targetWidth, targetHeight, x, y+height), in render()
239 toGLCoord(targetWidth, targetHeight, x, y) in render()
250 gl.viewport(0, 0, targetWidth, targetHeight); in render()
/external/webrtc/examples/objc/AppRTCMobile/
DARDCaptureController.m80 int targetHeight = [_settings currentVideoResolutionHeightFromStore];
87 int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
/external/webrtc/examples/objcnativeapi/objc/
DNADViewController.mm127 int targetHeight = 480;
134 int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
/external/swiftshader/src/OpenGL/libGLES_CM/
DContext.cpp2812 float targetHeight = (float)renderbuffer->getHeight(); in drawTexture() local
2814 float y0 = 2.0f * y / targetHeight - 1.0f; in drawTexture()
2816 float y1 = 2.0f * (y + height) / targetHeight - 1.0f; in drawTexture()
/external/doclava/res/assets/templates-sdk/assets/js/
Ddocs.js6379 var targetHeight = visible ? contentHeight : 0;
6393 $el.css('maxHeight', targetHeight);
Dandroid_3p-bundle.js2658targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,off… property
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryPipelineBarrierTests.cpp4166 deInt32 targetHeight) in PrepareRenderPassContext() argument
4171 , m_targetHeight (targetHeight) in PrepareRenderPassContext()
4205 deInt32 targetHeight) in VerifyRenderPassContext() argument
4207 …ceTarget (TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), targetWidth, targetHeight) in VerifyRenderPassContext()