Home
last modified time | relevance | path

Searched refs:bufferHeight (Results 1 – 15 of 15) sorted by relevance

/aosp12/frameworks/native/services/surfaceflinger/tests/
H A DLayerTransactionTest.h138 int32_t bufferWidth, int32_t bufferHeight) { in fillBufferStateLayerColor() argument
140 new GraphicBuffer(bufferWidth, bufferHeight, PIXEL_FORMAT_RGBA_8888, 1, in fillBufferStateLayerColor()
150 uint32_t bufferWidth, uint32_t bufferHeight) { in fillLayerColor() argument
153 fillBufferQueueLayerColor(layer, color, bufferWidth, bufferHeight); in fillLayerColor()
156 fillBufferStateLayerColor(layer, color, bufferWidth, bufferHeight); in fillLayerColor()
187 ASSERT_TRUE(bufferWidth % 2 == 0 && bufferHeight % 2 == 0); in fillBufferQueueLayerQuadrant()
190 const int32_t halfH = bufferHeight / 2; in fillBufferQueueLayerQuadrant()
198 bufferHeight), in fillBufferQueueLayerQuadrant()
209 new GraphicBuffer(bufferWidth, bufferHeight, PIXEL_FORMAT_RGBA_8888, 1, in fillBufferStateLayerQuadrant()
214 ASSERT_TRUE(bufferWidth % 2 == 0 && bufferHeight % 2 == 0); in fillBufferStateLayerQuadrant()
[all …]
H A DTransactionTestHarnesses.h128 uint32_t bufferHeight) { in fillLayerColor() argument
130 bufferWidth, bufferHeight)); in fillLayerColor()
134 uint32_t bufferHeight, const Color& topLeft, const Color& topRight, in fillLayerQuadrant() argument
137 bufferWidth, bufferHeight, in fillLayerQuadrant()
H A DLayerTypeAndRenderTypeTransaction_test.cpp315 const uint32_t bufferHeight = 300; in TEST_P() local
322 ASSERT_NO_FATAL_FAILURE(layer = createLayer("test", bufferWidth, bufferHeight)); in TEST_P()
323 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layer, Color::RED, bufferWidth, bufferHeight)); in TEST_P()
372 const uint32_t bufferHeight = 750 * 2; in TEST_P() local
381 ASSERT_NO_FATAL_FAILURE(layer = createLayer("test", bufferWidth, bufferHeight)); in TEST_P()
382 ASSERT_NO_FATAL_FAILURE(fillLayerQuadrant(layer, bufferWidth, bufferHeight, Color::RED, in TEST_P()
442 const uint32_t bufferHeight = 300; in TEST_P() local
449 ASSERT_NO_FATAL_FAILURE(layer = createLayer("test", bufferWidth, bufferHeight)); in TEST_P()
450 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layer, Color::BLUE, bufferWidth, bufferHeight)); in TEST_P()
453 ASSERT_NO_FATAL_FAILURE(child = createLayer("child", bufferWidth, bufferHeight)); in TEST_P()
[all …]
/aosp12/frameworks/native/libs/gui/
H A DGLConsumerUtils.cpp64 float bufferHeight = buf->getHeight(); in computeTransformMatrix() local
100 if (cropRect.height() < bufferHeight) { in computeTransformMatrix()
101 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / in computeTransformMatrix()
102 bufferHeight; in computeTransformMatrix()
104 bufferHeight; in computeTransformMatrix()
H A DGLConsumer.cpp748 Rect GLConsumer::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument
754 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
755 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
757 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
758 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
/aosp12/frameworks/native/libs/nativedisplay/surfacetexture/
H A DSurfaceTexture.cpp297 float bufferHeight = buf->getHeight(); in computeTransformMatrix() local
332 if (cropRect.height() < bufferHeight) { in computeTransformMatrix()
333 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / bufferHeight; in computeTransformMatrix()
334 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / bufferHeight; in computeTransformMatrix()
350 Rect SurfaceTexture::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument
356 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
357 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
359 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
360 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
/aosp12/frameworks/native/services/surfaceflinger/tests/utils/
H A DTransactionUtils.h111 int32_t bufferHeight = int32_t(outBuffer->getHeight()); in expectBufferColor() local
116 if (y + height > bufferHeight) { in expectBufferColor()
117 y = std::min(y, bufferHeight); in expectBufferColor()
118 height = bufferHeight - y; in expectBufferColor()
/aosp12/frameworks/av/media/libstagefright/filters/
H A DGraphicBufferListener.cpp33 size_t bufferWidth, size_t bufferHeight, size_t bufferCount) { in init() argument
39 mConsumer->setDefaultBufferSize(bufferWidth, bufferHeight); in init()
H A DGraphicBufferListener.h32 size_t bufferWidth, size_t bufferHeight, size_t bufferCount);
/aosp12/frameworks/native/services/surfaceflinger/
H A DBufferStateLayer.cpp342 uint32_t bufferHeight = mDrawingState.buffer->getBuffer()->getHeight(); in updateGeometry() local
345 std::swap(bufferWidth, bufferHeight); in updateGeometry()
350 std::swap(bufferWidth, bufferHeight); in updateGeometry()
355 float sy = destH / static_cast<float>(bufferHeight); in updateGeometry()
938 uint32_t bufferHeight = s.buffer->getBuffer()->height; in bufferNeedsFiltering() local
942 std::swap(bufferWidth, bufferHeight); in bufferNeedsFiltering()
948 std::swap(bufferWidth, bufferHeight); in bufferNeedsFiltering()
953 return layerSize.width() != bufferWidth || layerSize.height() != bufferHeight; in bufferNeedsFiltering()
H A DBufferLayer.cpp268 float bufferHeight = getBufferSize(s).getHeight(); in prepareClientComposition() local
275 bufferHeight = float(win.bottom) - float(win.top); in prepareClientComposition()
278 const float scaleHeight = (float(win.bottom) - float(win.top)) / bufferHeight; in prepareClientComposition()
280 const float translateY = float(win.top) / bufferHeight; in prepareClientComposition()
/aosp12/frameworks/av/media/ndk/
H A DNdkImageReader.cpp435 const int bufferHeight = getBufferHeight(buffer); in acquireImageLocked() local
456 ALOGV_IF(readerWidth != bufferWidth || readerHeight != bufferHeight, in acquireImageLocked()
458 __FUNCTION__, bufferWidth, bufferHeight, readerWidth, readerHeight); in acquireImageLocked()
492 bufferWidth, bufferHeight, mNumPlanes); in acquireImageLocked()
/aosp12/frameworks/native/libs/nativedisplay/include/surfacetexture/
H A DSurfaceTexture.h159 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight);
/aosp12/frameworks/av/camera/ndk/ndk_vendor/tests/
H A DAImageReaderVendorTest.cpp457 int32_t bufferHeight = static_cast<int32_t>(outDesc.height); in HandleImageAvailable() local
476 if (bufferWidth != mWidth || bufferHeight != mHeight) { in HandleImageAvailable()
478 mHeight, bufferWidth, bufferHeight); in HandleImageAvailable()
/aosp12/frameworks/native/libs/gui/include/gui/
H A DGLConsumer.h144 uint32_t bufferHeight);