Lines Matching refs:outPlanes
184 int32_t fence, const ARect* rect, AHardwareBuffer_Planes* outPlanes) { in AHardwareBuffer_lockPlanes() argument
185 if (!buffer || !outPlanes) return BAD_VALUE; in AHardwareBuffer_lockPlanes()
203 memset(outPlanes->planes, 0, sizeof(outPlanes->planes)); in AHardwareBuffer_lockPlanes()
208 outPlanes->planeCount = 3; in AHardwareBuffer_lockPlanes()
209 outPlanes->planes[0].data = yuvData.y; in AHardwareBuffer_lockPlanes()
210 outPlanes->planes[0].pixelStride = 1; in AHardwareBuffer_lockPlanes()
211 outPlanes->planes[0].rowStride = yuvData.ystride; in AHardwareBuffer_lockPlanes()
212 outPlanes->planes[1].data = yuvData.cb; in AHardwareBuffer_lockPlanes()
213 outPlanes->planes[1].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes()
214 outPlanes->planes[1].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes()
215 outPlanes->planes[2].data = yuvData.cr; in AHardwareBuffer_lockPlanes()
216 outPlanes->planes[2].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes()
217 outPlanes->planes[2].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes()
219 outPlanes->planeCount = 0; in AHardwareBuffer_lockPlanes()
224 outPlanes->planeCount = 1; in AHardwareBuffer_lockPlanes()
225 outPlanes->planes[0].pixelStride = pixelStride; 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()