Home
last modified time | relevance | path

Searched refs:targetWidth (Results 1 – 25 of 27) sorted by relevance

12

/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/
DResizeWithCropOrPadOp.java38 private final int targetWidth; field in ResizeWithCropOrPadOp
48 public ResizeWithCropOrPadOp(int targetHeight, int targetWidth) { in ResizeWithCropOrPadOp() argument
50 this.targetWidth = targetWidth; in ResizeWithCropOrPadOp()
51 output = Bitmap.createBitmap(this.targetWidth, this.targetHeight, Config.ARGB_8888); in ResizeWithCropOrPadOp()
78 if (targetWidth > w) { // padding in apply()
81 dstL = (targetWidth - w) / 2; in apply()
85 dstR = targetWidth; in apply()
86 srcL = (w - targetWidth) / 2; in apply()
87 srcR = srcL + targetWidth; in apply()
114 return targetWidth; in getOutputImageWidth()
[all …]
DResizeOp.java40 private final int targetWidth; field in ResizeOp
50 public ResizeOp(int targetHeight, int targetWidth, ResizeMethod resizeMethod) { in ResizeOp() argument
52 this.targetWidth = targetWidth; in ResizeOp()
69 Bitmap.createScaledBitmap(image.getBitmap(), targetWidth, targetHeight, useBilinear); in apply()
81 return targetWidth; in getOutputImageWidth()
87 point.x * inputImageWidth / targetWidth, point.y * inputImageHeight / targetHeight); in inverseTransform()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPadder.java47 int targetWidth; field in Padder
50 public Padder(String paddingString, int targetWidth, PadPosition position) { in Padder() argument
53 this.targetWidth = targetWidth; in Padder()
61 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { in codePoints() argument
63 if (targetWidth >= 0) { in codePoints()
65 return new Padder(paddingString, targetWidth, position); in codePoints()
78 return targetWidth > 0; in isValid()
88 int requiredPadding = targetWidth - modLength - string.codePointCount(); in padAndApply()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java54 int targetWidth; field in Padder
57 public Padder(String paddingString, int targetWidth, PadPosition position) { in Padder() argument
60 this.targetWidth = targetWidth; in Padder()
68 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { in codePoints() argument
70 if (targetWidth >= 0) { in codePoints()
72 return new Padder(paddingString, targetWidth, position); in codePoints()
85 return targetWidth > 0; in isValid()
95 int requiredPadding = targetWidth - modLength - string.codePointCount(); in padAndApply()
/external/deqp/modules/gles2/functional/
Des2fColorClearTest.cpp106 const int targetWidth = renderTarget.getWidth(); 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()
132 clearWidth = targetWidth; in iterate()
137 clearX = (rnd.getUint32() % (2*targetWidth)) - targetWidth; in iterate()
139 clearWidth = (rnd.getUint32() % targetWidth); in iterate()
184 while (x < targetWidth) in iterate()
188 int spanLength = (targetWidth - x); in iterate()
[all …]
Des2fPrerequisiteTests.cpp178 int targetWidth = renderTarget.getWidth(); in iterate() local
194 imageWidth = targetWidth; in iterate()
201 imageWidth = targetWidth / 2; in iterate()
206 x = targetWidth / 2; in iterate()
208 imageWidth = targetWidth - x; in iterate()
212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); in iterate()
214 imageWidth = 1 + (deRandom_getUint32(&rnd) % (targetWidth - x - 1)); in iterate()
/external/deqp/modules/gles3/functional/
Des3fColorClearTest.cpp106 const int targetWidth = renderTarget.getWidth(); 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()
132 clearWidth = targetWidth; in iterate()
137 clearX = (rnd.getUint32() % (2*targetWidth)) - targetWidth; in iterate()
139 clearWidth = (rnd.getUint32() % targetWidth); in iterate()
184 while (x < targetWidth) in iterate()
188 int spanLength = (targetWidth - x); in iterate()
[all …]
Des3fPrerequisiteTests.cpp178 int targetWidth = renderTarget.getWidth(); in iterate() local
194 imageWidth = targetWidth; in iterate()
201 imageWidth = targetWidth / 2; in iterate()
206 x = targetWidth / 2; in iterate()
208 imageWidth = targetWidth - x; in iterate()
212 x = deRandom_getUint32(&rnd) % (targetWidth - 1); in iterate()
214 imageWidth = 1 + (deRandom_getUint32(&rnd) % (targetWidth - x - 1)); in iterate()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifFrameManager.java30 private final int targetWidth; field in GifFrameManager
43 public GifFrameManager(Context context, GifDecoder decoder, int targetWidth, int targetHeight) { in GifFrameManager() argument
44 …ext, Glide.get(context).getBitmapPool(), decoder, new Handler(Looper.getMainLooper()), targetWidth, in GifFrameManager()
49 int targetWidth, int targetHeight) { in GifFrameManager() argument
53 this.targetWidth = targetWidth; in GifFrameManager()
127 super(targetWidth, targetHeight); in DelayTarget()
DGifDrawable.java85 … frameManager = new GifFrameManager(state.context, decoder, state.targetWidth, state.targetHeight); in GifDrawable()
318 int targetWidth; field in GifDrawable.GifState
325 Transformation<Bitmap> frameTransformation, int targetWidth, int targetHeight, in GifState() argument
336 this.targetWidth = targetWidth; in GifState()
347 targetWidth = original.targetWidth; in GifState()
/external/deqp/modules/glshared/
DglsInteractionTestUtil.cpp54 …rState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeig… in computeRandomRenderState() argument
157 int minScissorW = deCeilFloatToInt32(minScissorSize * (float)targetWidth); in computeRandomRenderState()
159 int maxScissorW = targetWidth + 2*maxScissorOutOfBounds; in computeRandomRenderState()
164 int scissorX = rnd.getInt(-maxScissorOutOfBounds, targetWidth+maxScissorOutOfBounds-scissorW); in computeRandomRenderState()
220 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, i… in computeRandomQuad() argument
230 int minW = deCeilFloatToInt32(minSize * (float)targetWidth); in computeRandomQuad()
232 int maxW = targetWidth + 2*maxOutOfBounds; in computeRandomQuad()
237 int x = rnd.getInt(-maxOutOfBounds, targetWidth+maxOutOfBounds-width); in computeRandomQuad()
DglsInteractionTestUtil.hpp121 …State (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeig…
122 …mQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, int targetHeig…
/external/icu/icu4c/source/i18n/
Dnumber_padding.cpp43 Padder Padder::codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position) { in codePoints() argument
45 if (targetWidth >= 0) { in codePoints()
46 return {cp, targetWidth, position}; in codePoints()
/external/webrtc/sdk/android/api/org/webrtc/
DVideoFileRenderer.java89 final int targetWidth = frame.getRotation() % 180 == 0 ? outputFileWidth : outputFileHeight; 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.java100 final int targetWidth = (int) (minPercentage * toFit.getWidth()); 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.java197 int targetWidth = (int) Math.ceil(inWidth / (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.m79 int targetWidth = [_settings currentVideoResolutionWidthFromStore];
87 int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageMismatchedWriteOpTests.cpp353 bool comparePixels(const tcu::Vector<T,N>& res, const tcu::Vector<T,N>& ref, const int targetWidth,… in comparePixels() argument
357 for (int i = 0; ok && i < targetWidth; ++i)
808 const int targetWidth = getNumUsedChannels(texFormat.order); in compare() local
819 …doContinue = ut::comparePixels(result.getPixelInt(x,y), reference.getPixelInt(x,y), targetWidth ); in compare()
822 …oContinue = ut::comparePixels(result.getPixelUint(x,y), reference.getPixelUint(x,y), targetWidth ); in compare()
825 …ue = ut::comparePixels(result.getPixel(x,y), reference.getPixel(x,y), targetWidth, 0.0005f); in compare()
/external/webrtc/examples/objcnativeapi/objc/
DNADViewController.mm126 int targetWidth = 640;
134 int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
/external/deqp/external/openglcts/modules/gl/
Dgl4cShaderViewportLayerArrayTests.cpp273 const GLfloat targetWidth = (GLfloat)renderTarget.getWidth(); in createMaxViewports() local
290 if (x > (targetWidth - viewportWidth)) in createMaxViewports()
/external/icu/libicu/cts_headers/unicode/
Dnumberformatter.h1381 static Padder codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position);
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h1381 static Padder codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position);
/external/swiftshader/src/OpenGL/libGLES_CM/
DContext.cpp2811 float targetWidth = (float)renderbuffer->getWidth(); in drawTexture() local
2813 float x0 = 2.0f * x / targetWidth - 1.0f; in drawTexture()
2815 float x1 = 2.0f * (x + width) / targetWidth - 1.0f; in drawTexture()
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryPipelineBarrierTests.cpp4165 deInt32 targetWidth, in PrepareRenderPassContext() argument
4170 , m_targetWidth (targetWidth) in PrepareRenderPassContext()
4204 deInt32 targetWidth, in VerifyRenderPassContext() argument
4207 …, m_referenceTarget (TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), targetWidth, t… in VerifyRenderPassContext()

12