Home
last modified time | relevance | path

Searched refs:gBuffer (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp195 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_lockPlanes() local
198 bounds.set(Rect(gBuffer->getWidth(), gBuffer->getHeight())); in AHardwareBuffer_lockPlanes()
202 int format = AHardwareBuffer_convertFromPixelFormat(uint32_t(gBuffer->getPixelFormat())); in AHardwareBuffer_lockPlanes()
206 int result = gBuffer->lockAsyncYCbCr(usage, bounds, &yuvData, fence); in AHardwareBuffer_lockPlanes()
230 outPlanes->planes[0].rowStride = gBuffer->getStride() * pixelStride; in AHardwareBuffer_lockPlanes()
231 return gBuffer->lockAsync(usage, usage, bounds, &outPlanes->planes[0].data, fence); in AHardwareBuffer_lockPlanes()
238 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_unlock() local
240 return gBuffer->unlock(); in AHardwareBuffer_unlock()
242 return gBuffer->unlockAsync(fence); in AHardwareBuffer_unlock()
247 const GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_sendHandleToUnixSocket() local
[all …]
/frameworks/av/media/ndk/
DNdkImageReader.cpp159 sp<GraphicBuffer> gBuffer = graphicBuffer.promote(); in onBufferFreed() local
160 if (gBuffer == nullptr) { in onBufferFreed()
169 msg->setObject(AImageReader::kGraphicBufferKey, gBuffer); in onBufferFreed()