Home
last modified time | relevance | path

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

/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/libs/gui/
DGLConsumer.cpp813 float bufferWidth = buf->getWidth(); in computeTransformMatrix() local
845 if (cropRect.width() < bufferWidth) { in computeTransformMatrix()
846 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix()
848 bufferWidth; 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/ndk/
DNdkImageReader.cpp396 const int bufferWidth = getBufferWidth(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/
DGLConsumer.h143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight);
/frameworks/native/services/surfaceflinger/
DLayer.cpp1857 int bufferWidth; in getTransform() local
1860 bufferWidth = p->getBE().compositionInfo.mBuffer->getWidth(); in getTransform()
1864 bufferWidth = p->getBE().compositionInfo.mBuffer->getHeight(); in getTransform()
1866 float sx = p->getDrawingState().active.w / static_cast<float>(bufferWidth); in getTransform()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp114 int32_t bufferWidth = int32_t(outBuffer->getWidth()); in expectBufferColor() local
116 if (x + width > bufferWidth) { in expectBufferColor()
117 x = std::min(x, bufferWidth); in expectBufferColor()
118 width = bufferWidth - x; in expectBufferColor()