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()
211 outPlanes->planes[0].pixelStride = 2; in AHardwareBuffer_lockPlanes()
213 outPlanes->planes[0].pixelStride = 1; in AHardwareBuffer_lockPlanes()
215 outPlanes->planes[0].rowStride = yuvData.ystride; in AHardwareBuffer_lockPlanes()
216 outPlanes->planes[1].data = yuvData.cb; in AHardwareBuffer_lockPlanes()
217 outPlanes->planes[1].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes()
218 outPlanes->planes[1].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes()
219 outPlanes->planes[2].data = yuvData.cr; in AHardwareBuffer_lockPlanes()
220 outPlanes->planes[2].pixelStride = yuvData.chroma_step; in AHardwareBuffer_lockPlanes()
221 outPlanes->planes[2].rowStride = yuvData.cstride; in AHardwareBuffer_lockPlanes()
223 outPlanes->planeCount = 0; in AHardwareBuffer_lockPlanes()
228 outPlanes->planeCount = 1; in AHardwareBuffer_lockPlanes()
229 outPlanes->planes[0].pixelStride = pixelStride; 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()