/frameworks/native/libs/gui/ |
D | GLConsumerUtils.cpp | 63 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()
|
D | GLConsumer.cpp | 748 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/ |
D | SurfaceTexture.cpp | 308 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()
|
D | SurfaceTexture.h | 146 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight);
|
/frameworks/native/services/surfaceflinger/ |
D | BufferStateLayer.cpp | 416 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()
|
D | BufferLayer.cpp | 215 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()
|
D | Layer.cpp | 332 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/ |
D | GraphicBufferListener.cpp | 33 size_t bufferWidth, size_t bufferHeight, size_t bufferCount) { in init() argument 39 mConsumer->setDefaultBufferSize(bufferWidth, bufferHeight); in init()
|
D | GraphicBufferListener.h | 32 size_t bufferWidth, size_t bufferHeight, size_t bufferCount);
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Transaction_test.cpp | 143 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/ |
D | NdkImageReader.cpp | 424 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/ |
D | AImageReaderVendorTest.cpp | 454 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/ |
D | GLConsumer.h | 143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth,
|