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.cpp749 Rect GLConsumer::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument
755 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop()
756 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop()
758 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop()
759 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.cpp420 uint32_t bufferWidth = s.buffer->getWidth(); in getDrawingCrop() local
423 bufferWidth <= std::numeric_limits<int32_t>::max()) { in getDrawingCrop()
424 crop.right = std::min(crop.right, static_cast<int32_t>(bufferWidth)); in getDrawingCrop()
515 uint32_t bufferWidth = s.buffer->width; in updateTexImage() local
519 std::swap(bufferWidth, bufferHeight); in updateTexImage()
525 std::swap(bufferWidth, bufferHeight); in updateTexImage()
530 (s.active.w != bufferWidth || s.active.h != bufferHeight)) { in updateTexImage()
533 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.cpp331 int bufferWidth = mActiveBuffer->getWidth(); in getBufferScaleTransform() local
335 std::swap(bufferWidth, bufferHeight); in getBufferScaleTransform()
338 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/av/media/ndk/
DNdkImageReader.cpp433 const int bufferWidth = getBufferWidth(buffer); in acquireImageLocked() local
455 ALOGV_IF(readerWidth != bufferWidth || readerHeight != bufferHeight, in acquireImageLocked()
457 __FUNCTION__, bufferWidth, bufferHeight, readerWidth, readerHeight); in acquireImageLocked()
491 bufferWidth, bufferHeight, mNumPlanes); in acquireImageLocked()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp144 int32_t bufferWidth = int32_t(outBuffer->getWidth()); in expectBufferColor() local
146 if (x + width > bufferWidth) { in expectBufferColor()
147 x = std::min(x, bufferWidth); in expectBufferColor()
148 width = bufferWidth - x; in expectBufferColor()
420 int32_t bufferWidth, int32_t bufferHeight) { in fillBufferQueueLayerColor() argument
423 fillANativeWindowBufferColor(buffer, Rect(0, 0, bufferWidth, bufferHeight), color); in fillBufferQueueLayerColor()
428 int32_t bufferWidth, int32_t bufferHeight) { in fillBufferStateLayerColor() argument
430 new GraphicBuffer(bufferWidth, bufferHeight, PIXEL_FORMAT_RGBA_8888, 1, in fillBufferStateLayerColor()
434 fillGraphicBufferColor(buffer, Rect(0, 0, bufferWidth, bufferHeight), color); in fillBufferStateLayerColor()
439 int32_t bufferWidth, int32_t bufferHeight) { in fillLayerColor() argument
[all …]
/frameworks/av/camera/ndk/ndk_vendor/tests/
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()
/frameworks/native/libs/gui/include/gui/
DGLConsumer.h143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth,