Home
last modified time | relevance | path

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

/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp49 sp<GraphicBuffer> gbuffer(new GraphicBuffer( in AHardwareBuffer_allocate() local
53 status_t err = gbuffer->initCheck(); in AHardwareBuffer_allocate()
54 if (err != 0 || gbuffer->handle == nullptr) { 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()
[all …]
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp200 sp<GraphicBuffer> gbuffer(new GraphicBuffer(handle, in hgbp_createFromHandle() local
204 status_t err = gbuffer->initCheck(); in hgbp_createFromHandle()
205 if (err != 0 || gbuffer->handle == 0) return err; in hgbp_createFromHandle()
207 *outBuffer = gbuffer; in hgbp_createFromHandle()
216 const GraphicBuffer* gbuffer = hgbp_AHBuffer_to_GraphicBuffer(buffer); in hgbp_describe() local
218 outDesc->width = gbuffer->getWidth(); in hgbp_describe()
219 outDesc->height = gbuffer->getHeight(); in hgbp_describe()
220 outDesc->layers = gbuffer->getLayerCount(); in hgbp_describe()
221 outDesc->format = uint32_t(gbuffer->getPixelFormat()); in hgbp_describe()
222 outDesc->usage = uint64_t(gbuffer->getUsage()); in hgbp_describe()
[all …]