Home
last modified time | relevance | path

Searched refs:getHeight (Results 1 – 25 of 713) sorted by relevance

12345678910>>...29

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DGCNILPSched.cpp111 unsigned Height = Succ.getSUnit()->getHeight(); in closestSucc()
136 int LHeight = (int)left->getHeight(); in BUCompareLatency()
137 int RHeight = (int)right->getHeight(); in BUCompareLatency()
180 if (!DisableSchedHeight && left->getHeight() != right->getHeight()) { in pickBest()
181 int spread = (int)left->getHeight() - (int)right->getHeight(); in pickBest()
183 return left->getHeight() > right->getHeight() ? right : left; in pickBest()
229 if (left->getHeight() != right->getHeight()) in pickBest()
230 return (left->getHeight() > right->getHeight()) ? right : left; in pickBest()
260 if (C.SU->getHeight() <= CurCycle) { in releasePending()
283 PredSU->setHeightToAtLeast(SU->getHeight() + PredEdge.getLatency()); in releasePredecessors()
[all …]
/external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/
DImagePanel.java87 gg.fillRect(0, 0, getWidth(), getHeight()); in paintComponent()
90 …= new TexturePaint(background, new Rectangle(0, 0, background.getWidth(), background.getHeight())); in paintComponent()
92 gg.fillRect(0, 0, getWidth(), getHeight()); in paintComponent()
97 float panelRatio = (float)getWidth() / (float)getHeight(); in paintComponent()
98 float imgRatio = (float)image.getWidth() / (float)image.getHeight(); in paintComponent()
103 gg.drawImage(image, 0, (int)(getHeight()/2 - th/2), (int) tw, (int) th, null); in paintComponent()
105 float tw = (float)getHeight() * imgRatio; in paintComponent()
106 float th = (float)getHeight(); in paintComponent()
111 float panelRatio = (float)getWidth() / (float)getHeight(); in paintComponent()
118 int ty = getHeight()/2 - th/2; in paintComponent()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapFactoryTest.java42 assertEquals(53, bitmap.getHeight()); in decodeResource_shouldSetDescriptionAndCreatedFrom()
73 assertEquals(100, bitmap.getHeight()); in decodeFile_shouldSetDescriptionAndCreatedFrom()
85 assertEquals(100, bitmap.getHeight()); in decodeStream_shouldSetDescriptionAndCreatedFrom()
86 …bitmap.getPixels(new int[bitmap.getHeight() * bitmap.getWidth()], 0, 0, 0, 0, bitmap.getWidth(), b… in decodeStream_shouldSetDescriptionAndCreatedFrom()
97 assertEquals(100, bitmap.getHeight()); in decodeBytes_shouldSetDescriptionAndCreatedFrom()
107 assertEquals(100, bitmap.getHeight()); in decodeStream_shouldSetDescriptionWithNullOptions()
117 assertEquals(456, bitmap.getHeight()); in decodeResource_shouldGetWidthAndHeightFromHints()
148 assertEquals(456, bitmap.getHeight()); in decodeFile_shouldGetWidthAndHeightFromHints()
169 assertEquals(456, bitmap.getHeight()); in decodeUri_shouldGetWidthAndHeightFromHints()
185 assertEquals(456, bitmap.getHeight()); in decodeFileDescriptor_shouldGetWidthAndHeightFromHints()
[all …]
/external/deqp/framework/referencerenderer/
DrrMultisamplePixelBufferAccess.cpp45 tcu::IVec3(m_access.getHeight(), m_access.getDepth(), 1), in toSinglesampleAccess()
55 tcu::IVec3(1, original.getWidth(), original.getHeight()), in fromSinglesampleAccess()
85 tcu::IVec3(m_access.getHeight(), m_access.getDepth(), 1), in toSinglesampleAccess()
95 tcu::IVec3(1, original.getWidth(), original.getHeight()), in fromSinglesampleAccess()
117 DE_ASSERT(dst.getWidth() == src.raw().getHeight()); in resolveMultisampleColorBuffer()
118 DE_ASSERT(dst.getHeight() == src.raw().getDepth()); in resolveMultisampleColorBuffer()
129 for (int y = 0; y < dst.getHeight(); y++) in resolveMultisampleColorBuffer()
143 DE_ASSERT(dst.getWidth() == src.raw().getHeight()); in resolveMultisampleDepthBuffer()
144 DE_ASSERT(dst.getHeight() == src.raw().getDepth()); in resolveMultisampleDepthBuffer()
158 for (int y = 0; y < dst.getHeight(); y++) in resolveMultisampleDepthBuffer()
[all …]
/external/perfetto/ui/src/frontend/
Dtrack.ts53 getHeight(): number { method in Track
79 checkerboard(ctx, this.getHeight(), startPx, endPx);
91 let textYPos = this.getHeight() / 2;
96 textYPos = this.getHeight() / 2 - 6;
107 const rectMargin = this.getHeight() / 12;
109 xPos, rectMargin, rectWidth, this.getHeight() - rectMargin * 2);
116 ctx.fillText(text2, xPos + 8, this.getHeight() / 2 + 6);
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DTransformationUtils.java41 } else if (toCrop.getWidth() == width && toCrop.getHeight() == height) { in centerCrop()
48 if (toCrop.getWidth() * height > width * toCrop.getHeight()) { in centerCrop()
49 scale = (float) height / (float) toCrop.getHeight(); in centerCrop()
53 dy = (height - toCrop.getHeight() * scale) * 0.5f; in centerCrop()
87 if (toFit.getWidth() == width && toFit.getHeight() == height) { in fitCenter()
94 final float heightPercentage = height / (float) toFit.getHeight(); in fitCenter()
101 final int targetHeight = (int) (minPercentage * toFit.getHeight()); in fitCenter()
103 if (toFit.getWidth() == targetWidth && toFit.getHeight() == targetHeight) { in fitCenter()
120 Log.v(TAG, "toFit: " + toFit.getWidth() + "x" + toFit.getHeight()); in fitCenter()
121 Log.v(TAG, "toReuse: " + toReuse.getWidth() + "x" + toReuse.getHeight()); in fitCenter()
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DRenderbuffer.cpp120 GLsizei RenderbufferTexture2D::getHeight() const in getHeight() function in es2::RenderbufferTexture2D
122 return mTexture2D->getHeight(GL_TEXTURE_2D, mLevel); in getHeight()
183 GLsizei RenderbufferTexture2DRect::getHeight() const in getHeight() function in es2::RenderbufferTexture2DRect
185 return mTexture2DRect->getHeight(GL_TEXTURE_RECTANGLE_ARB, 0); in getHeight()
246 GLsizei RenderbufferTexture3D::getHeight() const in getHeight() function in es2::RenderbufferTexture3D
248 return mTexture3D->getHeight(mTexture3D->getTarget(), mLevel); in getHeight()
314 GLsizei RenderbufferTextureCubeMap::getHeight() const in getHeight() function in es2::RenderbufferTextureCubeMap
316 return mTextureCubeMap->getHeight(mTarget, mLevel); in getHeight()
382 GLsizei Renderbuffer::getHeight() const in getHeight() function in es2::Renderbuffer
384 return mInstance->getHeight(); in getHeight()
[all …]
DTexture.cpp349 …image->loadImageData(0, 0, 0, image->getWidth(), image->getHeight(), depth, format, type, unpackPa… in setImage()
358 …image->loadCompressedData(0, 0, 0, image->getWidth(), image->getHeight(), depth, imageSize, pixels… in setCompressedImage()
504 GLsizei Texture2D::getHeight(GLenum target, GLint level) const in getHeight() function in es2::Texture2D
507 return image[level] ? image[level]->getHeight() : 0; in getHeight()
646 sourceRect.clip(0, 0, renderTarget->getWidth(), renderTarget->getHeight()); in copyImage()
661 …if(xoffset + width > image[level]->getWidth() || yoffset + height > image[level]->getHeight() || z… in copySubImage()
677 sourceRect.clip(0, 0, renderTarget->getWidth(), renderTarget->getHeight()); in copySubImage()
710 GLsizei height = image[mBaseLevel]->getHeight(); in isBaseLevelDefined()
748 GLsizei height = image[mBaseLevel]->getHeight(); in isMipmapComplete()
772 if(image[level]->getHeight() != std::max(1, height >> i)) in isMipmapComplete()
[all …]
/external/deqp/framework/opengl/
DgluPixelTransfer.cpp57 int height = dst.getHeight(); in readPixels()
76 int height = src.getHeight(); in texImage2D()
92 TCU_CHECK_INTERNAL(src.getSlicePitch() == src.getRowPitch()*src.getHeight()); in texImage3D()
95 int height = src.getHeight(); in texImage3D()
115 int height = src.getHeight(); in texSubImage2D()
131 TCU_CHECK_INTERNAL(src.getSlicePitch() == src.getRowPitch()*src.getHeight()); in texSubImage3D()
134 int height = src.getHeight(); in texSubImage3D()
DgluTexture.cpp133 …exture (getUncompressedFormat(levels[0].getFormat()), levels[0].getWidth(), levels[0].getHeight()) in Texture2D()
181 …gl.texImage2D(GL_TEXTURE_2D, levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* borde… in upload()
203 level.getHeight() == refLevelAccess.getHeight()); in loadCompressed()
208 level.getWidth(), level.getHeight(), 0 /* border */, level.getDataSize(), level.getData()); in loadCompressed()
233 …xture2D(context, isRGBA ? GL_RGBA : GL_RGB, GL_UNSIGNED_BYTE, level.getWidth(), level.getHeight()); in create()
306 …TURE_2D, m_refTexture.getNumLevels(), m_format, m_refTexture.getWidth(), m_refTexture.getHeight()); in upload()
314 …gl.texSubImage2D(GL_TEXTURE_2D, levelNdx, 0, 0, access.getWidth(), access.getHeight(), transferFo… in upload()
331 TCU_CHECK_INTERNAL(levels[0].getWidth() == levels[0].getHeight()); in TextureCube()
402 …ace((tcu::CubeFace)face), levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* border *… in upload()
427 level.getHeight() == refLevelAccess.getHeight()); in loadCompressed()
[all …]
DgluTextureTestUtil.cpp400 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in sampleTextureNonProjected()
408 for (int y = 0; y < dst.getHeight(); y++) in sampleTextureNonProjected()
412 float yf = ((float)y + 0.5f) / (float)dst.getHeight(); in sampleTextureNonProjected()
435 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in sampleTextureNonProjected()
436 tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); in sampleTextureNonProjected()
444 for (int y = 0; y < dst.getHeight(); y++) in sampleTextureNonProjected()
448 float yf = ((float)y + 0.5f) / (float)dst.getHeight(); in sampleTextureNonProjected()
472 float dstH = (float)dst.getHeight(); in sampleTextureProjected()
480 for (int py = 0; py < dst.getHeight(); py++) in sampleTextureProjected()
496 …s.lodMode, triU[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight()) in sampleTextureProjected()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmap.java224 …nt[shadowBitmap.getHeight() * shadowBitmap.getWidth()], 0, shadowBitmap.getWidth(), 0, 0, shadowBi… in createBitmap()
238 if (dstWidth == src.getWidth() && dstHeight == src.getHeight() && !filter) { in createScaledBitmap()
256 …ixels(new int[shadowBitmap.getHeight() * shadowBitmap.getWidth()], 0, 0, 0, 0, shadowBitmap.getWid… in createScaledBitmap()
262 if (x == 0 && y == 0 && width == src.getWidth() && height == src.getHeight()) { in createBitmap()
293 …if (x == 0 && y == 0 && width == src.getWidth() && height == src.getHeight() && (matrix == null ||… in createBitmap()
300 if (y + height > src.getHeight()) { in createBitmap()
380 colors = new int[getWidth() * getHeight()]; in setPixel()
396 height != getHeight() || in getPixels()
415 return getRowBytes() * getHeight(); in getByteCount()
435 shadowBitmap.height = getHeight(); in copy()
[all …]
/external/deqp/framework/common/
DtcuFuzzyImageCompare.cpp127 int h = src.getHeight(); in bilinearSample()
164 DE_ASSERT(dst.getWidth() == src.getWidth() && dst.getHeight() == src.getHeight()); in separableConvolve()
166 TextureLevel tmp (dst.getFormat(), dst.getHeight(), dst.getWidth()); in separableConvolve()
174 for (int j = 0; j < src.getHeight(); j++) in separableConvolve()
193 for (int j = 0; j < src.getHeight(); j++) in separableConvolve()
239 if (!deInBounds32(dx, 0, surface.getWidth()) || !deInBounds32(dy, 0, surface.getHeight())) in distSquaredToNeighbor()
275 DE_ASSERT(ref.getWidth() == cmp.getWidth() && ref.getHeight() == cmp.getHeight()); in fuzzyCompare()
276 DE_ASSERT(errorMask.getWidth() == ref.getWidth() && errorMask.getHeight() == ref.getHeight()); in fuzzyCompare()
282 int height = ref.getHeight(); in fuzzyCompare()
DtcuBilinearImageCompare.cpp94 DE_ASSERT(y1 < (deUint32)access.getHeight()); in bilinearSampleRGBA8()
125 const deUint32 y2 = (deUint32)de::min(y+1, reference.getHeight()-1); in comparePixelRGBA8()
180 !de::inBounds(v, 0, (reference.getHeight()-1)<<NUM_SUBPIXEL_BITS)) in comparePixelRGBA8()
201 for (int y = 0; y < reference.getHeight(); y++) in bilinearCompareRGBA8()
222 reference.getHeight() == result.getHeight() && in bilinearCompare()
226 reference.getHeight() == errorMask.getHeight() && in bilinearCompare()
/external/deqp/modules/gles2/functional/
Des2fShaderBuiltinVarTests.cpp283 const int height = m_context.getRenderTarget().getHeight(); in iterate()
333 for (int y = 0; y < refImg.getHeight(); y++) in iterate()
338 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight()); in iterate()
377 const int height = m_context.getRenderTarget().getHeight(); in iterate()
425 for (int y = 0; y < refImg.getHeight(); y++) in iterate()
430 const float yf = (float(refImg.getHeight()-y-1)+.5f) / float(refImg.getHeight()); in iterate()
464 const int height = de::min(256, m_context.getRenderTarget().getHeight()); in iterate()
515 const int viewportY = rnd.getInt(0, m_context.getRenderTarget().getHeight()-height); in iterate()
551 if (de::inBounds(dx, 0, refImg.getWidth()) && de::inBounds(dy, 0, refImg.getHeight())) in iterate()
586 const int height = de::min(64, m_context.getRenderTarget().getHeight()); in iterate()
[all …]
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DStylizeActivity.java155 0.0, 1.0 - (event.getY() - slider.getTop()) / slider.getHeight()));
228 final float y = (1.0f - value) * canvas.getHeight(); in onDraw()
240 canvas.drawRect(0, 0, getWidth(), getHeight(), linePaint); in onDraw()
368 previewHeight = size.getHeight(); in onPreviewSizeChosen()
535 bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in stylizeImage()
540 final int centerY = bitmap.getHeight() / 2; in stylizeImage()
544 final int y = i / bitmap.getHeight(); in stylizeImage()
561 LOGGER.i("Width: %s , Height: %s", bitmap.getWidth(), bitmap.getHeight()); in stylizeImage()
563 INPUT_NODE, floatValues, 1, bitmap.getWidth(), bitmap.getHeight(), 3); in stylizeImage()
577 bitmap.setPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in stylizeImage()
[all …]
DCameraConnectionFragment.java282 if (option.getHeight() >= minSize && option.getWidth() >= minSize) { in chooseOptimalSize()
301 LOGGER.i("Chosen size: " + chosenSize.getWidth() + "x" + chosenSize.getHeight()); in chooseOptimalSize()
343 openCamera(textureView.getWidth(), textureView.getHeight()); in onResume()
386 inputSize.getHeight()); in setUpCameraOutputs()
391 textureView.setAspectRatio(previewSize.getWidth(), previewSize.getHeight()); in setUpCameraOutputs()
393 textureView.setAspectRatio(previewSize.getHeight(), previewSize.getWidth()); in setUpCameraOutputs()
502 texture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in createCameraPreviewSession()
511 LOGGER.i("Opening camera preview: " + previewSize.getWidth() + "x" + previewSize.getHeight()); in createCameraPreviewSession()
516 previewSize.getWidth(), previewSize.getHeight(), ImageFormat.YUV_420_888, 2); in createCameraPreviewSession()
580 final RectF bufferRect = new RectF(0, 0, previewSize.getHeight(), previewSize.getWidth()); in configureTransform()
[all …]
DClassifierActivity.java125 previewHeight = size.getHeight(); in onPreviewSizeChosen()
196 canvas.getHeight() - copy.getHeight() * scaleFactor); in renderDebug()
209 lines.add("Crop: " + copy.getWidth() + "x" + copy.getHeight()); in renderDebug()
210 lines.add("View: " + canvas.getWidth() + "x" + canvas.getHeight()); in renderDebug()
214 borderedText.drawLines(canvas, 10, canvas.getHeight() - 10, lines); in renderDebug()
/external/deqp/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayStencilAttachments.cpp510 m_cube_map_array_data[test_index].getHeight(), /* height */ in createImmutableCubeArrayColor()
530 m_cube_map_array_data[test_index].getHeight(), /* height */ in createImmutableCubeArrayStencil()
541 m_cube_map_array_data[test_index].getHeight(), /* height */ in createImmutableCubeArrayStencil()
563 m_cube_map_array_data[test_index].getHeight(), /* height */ in createMutableCubeArrayColor()
587 m_cube_map_array_data[test_index].getHeight(), /* height */ in createMutableCubeArrayStencil()
612 for (glw::GLuint y = m_cube_map_array_data[test_index].getHeight() / 2; in fillStencilData()
613 y < m_cube_map_array_data[test_index].getHeight(); y++) in fillStencilData()
616 m_cube_map_array_data[test_index].getHeight() * m_n_components * in fillStencilData()
619 …glw::GLuint y_position_in_array = m_cube_map_array_data[test_index].getHeight() * m_n_components *… in fillStencilData()
799 …0, 0, m_cube_map_array_data[test_index].getWidth(), m_cube_map_array_data[test_index].getHeight()); in initTestIteration()
[all …]
/external/swiftshader/src/OpenGL/libGLES_CM/
DFramebuffer.cpp250 if(colorbuffer->getWidth() == 0 || colorbuffer->getHeight() == 0) in completeness()
283 height = colorbuffer->getHeight(); in completeness()
299 if(depthbuffer->getWidth() == 0 || depthbuffer->getHeight() == 0) in completeness()
327 height = depthbuffer->getHeight(); in completeness()
330 else if(width != depthbuffer->getWidth() || height != depthbuffer->getHeight()) in completeness()
349 if(stencilbuffer->getWidth() == 0 || stencilbuffer->getHeight() == 0) in completeness()
379 height = stencilbuffer->getHeight(); in completeness()
382 else if(width != stencilbuffer->getWidth() || height != stencilbuffer->getHeight()) in completeness()
DRenderbuffer.cpp120 GLsizei RenderbufferTexture2D::getHeight() const in getHeight() function in es1::RenderbufferTexture2D
122 return mTexture2D->getHeight(GL_TEXTURE_2D, 0); in getHeight()
188 GLsizei Renderbuffer::getHeight() const in getHeight() function in es1::Renderbuffer
190 return mInstance->getHeight(); in getHeight()
268 GLsizei RenderbufferStorage::getHeight() const in getHeight() function in es1::RenderbufferStorage
290 mHeight = renderTarget->getHeight(); in Colorbuffer()
368 mHeight = depthStencil->getHeight(); in DepthStencilbuffer()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZMachineScheduler.h81 if (lhs->getHeight() > rhs->getHeight()) in operator()
83 else if (lhs->getHeight() < rhs->getHeight()) in operator()
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJDecompressor.java159 public int getHeight() { in getHeight() method in TJDecompressor
161 return yuvImage.getHeight(); in getHeight()
389 yuvImage.getWidth(), pitch, yuvImage.getHeight(), pixelFormat, in decompress()
483 dstImage.getHeight()); in decompressToYUV()
485 dstImage.getHeight()); in decompressToYUV()
487 scaledHeight != dstImage.getHeight()) in decompressToYUV()
494 dstImage.getStrides(), dstImage.getHeight(), flags); in decompressToYUV()
708 yuvImage.getWidth(), stride, yuvImage.getHeight(), pixelFormat, in decompress()
740 int desiredHeight = dstImage.getHeight(); in decompress()
745 desiredHeight != yuvImage.getHeight()) in decompress()
[all …]
/external/deqp/modules/gles3/functional/
Des3fDitheringTests.cpp252 const int viewportHei = de::min(m_renderCtx.getRenderTarget().getHeight(), maxViewportHei); in drawAndCheckGradient()
254 const int viewportY = rnd.getInt(0, m_renderCtx.getRenderTarget().getHeight() - viewportHei); in drawAndCheckGradient()
291 for (int y = 0; y < renderedImg.getHeight(); y++) in drawAndCheckGradient()
295 …reasing ? y : x) + 0.5f) / (float)(isVerticallyIncreasing ? renderedImg.getHeight() : renderedImg.… in drawAndCheckGradient()
297 … increaseTol = ((renderedImg.getWidth() < 300) || (renderedImg.getHeight() < 300)) ? true… in drawAndCheckGradient()
325 …const int increasingDirectionSize = isVerticallyIncreasing ? renderedImg.getHeight() : renderedImg… in drawAndCheckGradient()
326 … constantDirectionSize = isVerticallyIncreasing ? renderedImg.getWidth() : renderedImg.getHeight(); in drawAndCheckGradient()
370 const int viewportHei = de::min(m_renderCtx.getRenderTarget().getHeight(), maxViewportHei); in drawAndCheckUnicoloredQuad()
372 const int viewportY = rnd.getInt(0, m_renderCtx.getRenderTarget().getHeight() - viewportHei); in drawAndCheckUnicoloredQuad()
405 for (int y = 0; y < renderedImg.getHeight(); y++) in drawAndCheckUnicoloredQuad()
[all …]
Des3fFboInvalidateTests.cpp196 readPixels(dst, 0, 0, getWidth(), getHeight()); in render()
232 …glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, getWidth(), getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE,… in render()
291 readPixels(dst, 0, 0, getWidth(), getHeight()); in render()
310 int invalidateY = getHeight() / 4; in render()
312 int invalidateH = getHeight() / 2; in render()
345 readPixels(dst, 0, 0, getWidth(), getHeight()); in render()
374 int invalidateY = getHeight() / 4; in render()
376 int invalidateH = getHeight() / 2; in render()
390 …glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA8, getWidth(), getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE,… in render()
435 readPixels(dst, 0, 0, getWidth(), getHeight()); in render()
[all …]

12345678910>>...29