/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/ops/ |
D | ResizeWithCropOrPadOp.java | 38 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 …]
|
D | ResizeOp.java | 40 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/ |
D | Padder.java | 47 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/ |
D | Padder.java | 54 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/ |
D | es2fColorClearTest.cpp | 106 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 …]
|
D | es2fPrerequisiteTests.cpp | 178 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/ |
D | es3fColorClearTest.cpp | 106 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 …]
|
D | es3fPrerequisiteTests.cpp | 178 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/ |
D | GifFrameManager.java | 30 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()
|
D | GifDrawable.java | 85 … 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/ |
D | glsInteractionTestUtil.cpp | 54 …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()
|
D | glsInteractionTestUtil.hpp | 121 …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/ |
D | number_padding.cpp | 43 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/ |
D | VideoFileRenderer.java | 89 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/ |
D | TransformationUtils.java | 100 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()
|
D | Downsampler.java | 197 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/ |
D | teglNativeCoordMappingTests.cpp | 229 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/ |
D | ARDCaptureController.m | 79 int targetWidth = [_settings currentVideoResolutionWidthFromStore]; 87 int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
|
/external/deqp/external/vulkancts/modules/vulkan/image/ |
D | vktImageMismatchedWriteOpTests.cpp | 353 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/ |
D | NADViewController.mm | 126 int targetWidth = 640; 134 int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cShaderViewportLayerArrayTests.cpp | 273 const GLfloat targetWidth = (GLfloat)renderTarget.getWidth(); in createMaxViewports() local 290 if (x > (targetWidth - viewportWidth)) in createMaxViewports()
|
/external/icu/libicu/cts_headers/unicode/ |
D | numberformatter.h | 1381 static Padder codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position);
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numberformatter.h | 1381 static Padder codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position);
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | Context.cpp | 2811 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/ |
D | vktMemoryPipelineBarrierTests.cpp | 4165 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()
|