Lines Matching refs:gBuffer
195 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()
226 outPlanes->planes[0].rowStride = gBuffer->getStride() * pixelStride; in AHardwareBuffer_lockPlanes()
227 return gBuffer->lockAsync(usage, usage, bounds, &outPlanes->planes[0].data, fence); in AHardwareBuffer_lockPlanes()
234 GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_unlock() local
236 return gBuffer->unlock(); in AHardwareBuffer_unlock()
238 return gBuffer->unlockAsync(fence); in AHardwareBuffer_unlock()
243 const GraphicBuffer* gBuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_sendHandleToUnixSocket() local
245 size_t flattenedSize = gBuffer->getFlattenedSize(); in AHardwareBuffer_sendHandleToUnixSocket()
246 size_t fdCount = gBuffer->getFdCount(); in AHardwareBuffer_sendHandleToUnixSocket()
257 status_t err = gBuffer->flatten(dataStart, flattenedSizeCopy, fdsStart, in AHardwareBuffer_sendHandleToUnixSocket()
356 GraphicBuffer* gBuffer = new GraphicBuffer(); in AHardwareBuffer_recvHandleFromUnixSocket() local
357 status_t err = gBuffer->unflatten(data, dataLen, fdData, fdCount); in AHardwareBuffer_recvHandleFromUnixSocket()
361 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gBuffer); in AHardwareBuffer_recvHandleFromUnixSocket()
373 GraphicBuffer* gBuffer = new GraphicBuffer(); in AHardwareBuffer_isSupported() local
374 status_t err = gBuffer->isSupported(desc->width, desc->height, desc->format, desc->layers, in AHardwareBuffer_isSupported()