Searched refs:bufferHeight (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/libs/gui/ |
D | GLConsumer.cpp | 814 float bufferHeight = buf->getHeight(); in computeTransformMatrix() local 850 if (cropRect.height() < bufferHeight) { in computeTransformMatrix() 851 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / in computeTransformMatrix() 852 bufferHeight; in computeTransformMatrix() 854 bufferHeight; in computeTransformMatrix() 875 Rect GLConsumer::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument 881 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 882 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 884 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 885 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
|
/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 | 397 const int bufferHeight = getBufferHeight(buffer); in acquireImageLocked() local 418 ALOGV_IF(readerWidth != bufferWidth || readerHeight != bufferHeight, in acquireImageLocked() 420 __FUNCTION__, bufferWidth, bufferHeight, readerWidth, readerHeight); in acquireImageLocked() 454 bufferWidth, bufferHeight, mNumPlanes); in acquireImageLocked()
|
/frameworks/native/libs/gui/include/gui/ |
D | GLConsumer.h | 143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight);
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 1858 int bufferHeight; in getTransform() local 1861 bufferHeight = p->getBE().compositionInfo.mBuffer->getHeight(); in getTransform() 1863 bufferHeight = p->getBE().compositionInfo.mBuffer->getWidth(); in getTransform() 1867 float sy = p->getDrawingState().active.h / static_cast<float>(bufferHeight); in getTransform()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Transaction_test.cpp | 115 int32_t bufferHeight = int32_t(outBuffer->getHeight()); in expectBufferColor() local 120 if (y + height > bufferHeight) { in expectBufferColor() 121 y = std::min(y, bufferHeight); in expectBufferColor() 122 height = bufferHeight - y; in expectBufferColor()
|