• Home
  • Raw
  • Download

Lines Matching refs:gbuffer

49     sp<GraphicBuffer> gbuffer(new GraphicBuffer(  in AHardwareBuffer_allocate()  local
53 status_t err = gbuffer->initCheck(); in AHardwareBuffer_allocate()
54 if (err != 0 || gbuffer->handle == 0) { in AHardwareBuffer_allocate()
59 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle); in AHardwareBuffer_allocate()
63 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gbuffer.get()); in AHardwareBuffer_allocate()
84 const GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_describe() local
86 outDesc->width = gbuffer->getWidth(); in AHardwareBuffer_describe()
87 outDesc->height = gbuffer->getHeight(); in AHardwareBuffer_describe()
88 outDesc->layers = gbuffer->getLayerCount(); in AHardwareBuffer_describe()
89 outDesc->format = AHardwareBuffer_convertFromPixelFormat(uint32_t(gbuffer->getPixelFormat())); in AHardwareBuffer_describe()
90 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe()
91 outDesc->stride = gbuffer->getStride(); in AHardwareBuffer_describe()
114 GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_lockAndGetInfo() local
118 if (gbuffer->getBufferMapperVersion() == GraphicBufferMapper::Version::GRALLOC_2) { in AHardwareBuffer_lockAndGetInfo()
123 if (gbuffer->getLayerCount() > 1) { in AHardwareBuffer_lockAndGetInfo()
131 bounds.set(Rect(gbuffer->getWidth(), gbuffer->getHeight())); in AHardwareBuffer_lockAndGetInfo()
137 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo()
142 gbuffer->unlock(); in AHardwareBuffer_lockAndGetInfo()
166 GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_lock() local
168 if (gbuffer->getLayerCount() > 1) { in AHardwareBuffer_lock()
176 bounds.set(Rect(gbuffer->getWidth(), gbuffer->getHeight())); in AHardwareBuffer_lock()
180 …return gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &bytesPe… in AHardwareBuffer_lock()
408 const GraphicBuffer* gbuffer = AHardwareBuffer_to_GraphicBuffer(buffer); in AHardwareBuffer_getNativeHandle() local
409 return gbuffer->handle; in AHardwareBuffer_getNativeHandle()
430 sp<GraphicBuffer> gbuffer(new GraphicBuffer(handle, wrapMethod, desc->width, desc->height, in AHardwareBuffer_createFromHandle() local
432 status_t err = gbuffer->initCheck(); in AHardwareBuffer_createFromHandle()
433 if (err != 0 || gbuffer->handle == 0) return err; in AHardwareBuffer_createFromHandle()
435 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gbuffer.get()); in AHardwareBuffer_createFromHandle()