/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 | 749 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/ |
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 | 420 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()
|
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 | 331 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/ |
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/av/media/ndk/ |
D | NdkImageReader.cpp | 433 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/ |
D | Transaction_test.cpp | 144 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/ |
D | AImageReaderVendorTest.cpp | 456 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/ |
D | GLConsumer.h | 143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth,
|