Home
last modified time | relevance | path

Searched refs:bufferWidth (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()
189 const int32_t halfW = bufferWidth / 2; in fillBufferQueueLayerQuadrant()
197 Rect(halfW, halfH, bufferWidth, 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.h127 void fillLayerColor(const sp<SurfaceControl>& layer, const Color& color, uint32_t bufferWidth, in fillLayerColor() argument
130 bufferWidth, bufferHeight)); in fillLayerColor()
133 void fillLayerQuadrant(const sp<SurfaceControl>& layer, uint32_t bufferWidth, in fillLayerQuadrant() argument
137 bufferWidth, bufferHeight, in fillLayerQuadrant()
H A DLayerTypeAndRenderTypeTransaction_test.cpp314 const uint32_t bufferWidth = 1500; 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()
371 const uint32_t bufferWidth = 150 * 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()
441 const uint32_t bufferWidth = 1500; 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.cpp63 float bufferWidth = buf->getWidth(); in computeTransformMatrix() local
95 if (cropRect.width() < bufferWidth) { in computeTransformMatrix()
96 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix()
98 bufferWidth; 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.cpp296 float bufferWidth = buf->getWidth(); in computeTransformMatrix() local
328 if (cropRect.width() < bufferWidth) { in computeTransformMatrix()
329 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix()
330 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / bufferWidth; 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.h110 int32_t bufferWidth = int32_t(outBuffer->getWidth()); in expectBufferColor() local
112 if (x + width > bufferWidth) { in expectBufferColor()
113 x = std::min(x, bufferWidth); in expectBufferColor()
114 width = bufferWidth - x; 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.cpp341 uint32_t bufferWidth = mDrawingState.buffer->getBuffer()->getWidth(); in updateGeometry() local
345 std::swap(bufferWidth, bufferHeight); in updateGeometry()
350 std::swap(bufferWidth, bufferHeight); in updateGeometry()
354 float sx = destW / static_cast<float>(bufferWidth); in updateGeometry()
937 uint32_t bufferWidth = s.buffer->getBuffer()->width; 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.cpp267 float bufferWidth = getBufferSize(s).getWidth(); in prepareClientComposition() local
274 bufferWidth = float(win.right) - float(win.left); in prepareClientComposition()
279 const float scaleWidth = (float(win.right) - float(win.left)) / bufferWidth; in prepareClientComposition()
281 const float translateX = float(win.left) / bufferWidth; in prepareClientComposition()
/aosp12/frameworks/av/media/ndk/
H A DNdkImageReader.cpp434 const int bufferWidth = getBufferWidth(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.cpp456 int32_t bufferWidth = static_cast<int32_t>(outDesc.width); 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.h143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth,