Home
last modified time | relevance | path

Searched refs:bufferWidth (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/libs/gui/
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()
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()
/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.cpp308 float bufferWidth = buf->getWidth(); in computeTransformMatrix() local
340 if (cropRect.width() < bufferWidth) { in computeTransformMatrix()
341 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix()
342 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / bufferWidth; in computeTransformMatrix()
362 Rect SurfaceTexture::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument
368 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
369 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
371 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
372 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
DSurfaceTexture.h146 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight);
/frameworks/native/services/surfaceflinger/
DBufferStateLayer.cpp416 uint32_t bufferWidth = s.buffer->getWidth(); in getDrawingCrop() local
419 bufferWidth <= std::numeric_limits<int32_t>::max()) { in getDrawingCrop()
420 crop.right = std::min(crop.right, static_cast<int32_t>(bufferWidth)); in getDrawingCrop()
518 uint32_t bufferWidth = s.buffer->width; in updateTexImage() local
522 std::swap(bufferWidth, bufferHeight); in updateTexImage()
528 std::swap(bufferWidth, bufferHeight); in updateTexImage()
533 (s.active.w != bufferWidth || s.active.h != bufferHeight)) { in updateTexImage()
536 mName.string(), bufferWidth, bufferHeight, s.active.w, s.active.h); in updateTexImage()
DBufferLayer.cpp215 float bufferWidth = getBufferSize(s).getWidth(); in prepareClientLayer() local
222 bufferWidth = float(win.right) - float(win.left); in prepareClientLayer()
227 const float scaleWidth = (float(win.right) - float(win.left)) / bufferWidth; in prepareClientLayer()
229 const float translateX = float(win.left) / bufferWidth; in prepareClientLayer()
DLayer.cpp332 int bufferWidth = mActiveBuffer->getWidth(); in getBufferScaleTransform() local
336 std::swap(bufferWidth, bufferHeight); in getBufferScaleTransform()
339 float sx = activeWidth / static_cast<float>(bufferWidth); in getBufferScaleTransform()
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp33 size_t bufferWidth, size_t bufferHeight, size_t bufferCount) { in init() argument
39 mConsumer->setDefaultBufferSize(bufferWidth, bufferHeight); in init()
DGraphicBufferListener.h32 size_t bufferWidth, size_t bufferHeight, size_t bufferCount);
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp143 int32_t bufferWidth = int32_t(outBuffer->getWidth()); in expectBufferColor() local
145 if (x + width > bufferWidth) { in expectBufferColor()
146 x = std::min(x, bufferWidth); in expectBufferColor()
147 width = bufferWidth - x; in expectBufferColor()
418 int32_t bufferWidth, int32_t bufferHeight) { in fillBufferQueueLayerColor() argument
421 fillANativeWindowBufferColor(buffer, Rect(0, 0, bufferWidth, bufferHeight), color); in fillBufferQueueLayerColor()
426 int32_t bufferWidth, int32_t bufferHeight) { in fillBufferStateLayerColor() argument
428 new GraphicBuffer(bufferWidth, bufferHeight, PIXEL_FORMAT_RGBA_8888, 1, in fillBufferStateLayerColor()
432 fillGraphicBufferColor(buffer, Rect(0, 0, bufferWidth, bufferHeight), color); in fillBufferStateLayerColor()
437 int32_t bufferWidth, int32_t bufferHeight) { in fillLayerColor() argument
[all …]
/frameworks/av/media/ndk/
DNdkImageReader.cpp424 const int bufferWidth = getBufferWidth(buffer); in acquireImageLocked() local
446 ALOGV_IF(readerWidth != bufferWidth || readerHeight != bufferHeight, in acquireImageLocked()
448 __FUNCTION__, bufferWidth, bufferHeight, readerWidth, readerHeight); in acquireImageLocked()
482 bufferWidth, bufferHeight, mNumPlanes); in acquireImageLocked()
/frameworks/av/camera/ndk/ndk_vendor/tests/
DAImageReaderVendorTest.cpp454 int32_t bufferWidth = static_cast<int32_t>(outDesc.width); in HandleImageAvailable() local
474 if (bufferWidth != mWidth || bufferHeight != mHeight) { in HandleImageAvailable()
476 mHeight, bufferWidth, bufferHeight); in HandleImageAvailable()
/frameworks/native/libs/gui/include/gui/
DGLConsumer.h143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth,