Lines Matching refs:planes

79         const C2PlaneInfo &plane = layout.planes[i];  in _ImageCopy()
133 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy()
134 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy()
135 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy()
224 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy()
225 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy()
226 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy()
296 && layout.planes[layout.PLANE_Y].channel == C2PlaneInfo::CHANNEL_Y in IsYUV420()
297 && layout.planes[layout.PLANE_Y].allocatedDepth == 8 in IsYUV420()
298 && layout.planes[layout.PLANE_Y].bitDepth == 8 in IsYUV420()
299 && layout.planes[layout.PLANE_Y].rightShift == 0 in IsYUV420()
300 && layout.planes[layout.PLANE_Y].colSampling == 1 in IsYUV420()
301 && layout.planes[layout.PLANE_Y].rowSampling == 1 in IsYUV420()
302 && layout.planes[layout.PLANE_U].channel == C2PlaneInfo::CHANNEL_CB in IsYUV420()
303 && layout.planes[layout.PLANE_U].allocatedDepth == 8 in IsYUV420()
304 && layout.planes[layout.PLANE_U].bitDepth == 8 in IsYUV420()
305 && layout.planes[layout.PLANE_U].rightShift == 0 in IsYUV420()
306 && layout.planes[layout.PLANE_U].colSampling == 2 in IsYUV420()
307 && layout.planes[layout.PLANE_U].rowSampling == 2 in IsYUV420()
308 && layout.planes[layout.PLANE_V].channel == C2PlaneInfo::CHANNEL_CR in IsYUV420()
309 && layout.planes[layout.PLANE_V].allocatedDepth == 8 in IsYUV420()
310 && layout.planes[layout.PLANE_V].bitDepth == 8 in IsYUV420()
311 && layout.planes[layout.PLANE_V].rightShift == 0 in IsYUV420()
312 && layout.planes[layout.PLANE_V].colSampling == 2 in IsYUV420()
313 && layout.planes[layout.PLANE_V].rowSampling == 2); in IsYUV420()
320 && layout.planes[layout.PLANE_Y].channel == C2PlaneInfo::CHANNEL_Y in IsYUV420_10bit()
321 && layout.planes[layout.PLANE_Y].allocatedDepth == 16 in IsYUV420_10bit()
322 && layout.planes[layout.PLANE_Y].bitDepth == 10 in IsYUV420_10bit()
323 && layout.planes[layout.PLANE_Y].colSampling == 1 in IsYUV420_10bit()
324 && layout.planes[layout.PLANE_Y].rowSampling == 1 in IsYUV420_10bit()
325 && layout.planes[layout.PLANE_U].channel == C2PlaneInfo::CHANNEL_CB in IsYUV420_10bit()
326 && layout.planes[layout.PLANE_U].allocatedDepth == 16 in IsYUV420_10bit()
327 && layout.planes[layout.PLANE_U].bitDepth == 10 in IsYUV420_10bit()
328 && layout.planes[layout.PLANE_U].colSampling == 2 in IsYUV420_10bit()
329 && layout.planes[layout.PLANE_U].rowSampling == 2 in IsYUV420_10bit()
330 && layout.planes[layout.PLANE_V].channel == C2PlaneInfo::CHANNEL_CR in IsYUV420_10bit()
331 && layout.planes[layout.PLANE_V].allocatedDepth == 16 in IsYUV420_10bit()
332 && layout.planes[layout.PLANE_V].bitDepth == 10 in IsYUV420_10bit()
333 && layout.planes[layout.PLANE_V].colSampling == 2 in IsYUV420_10bit()
334 && layout.planes[layout.PLANE_V].rowSampling == 2); in IsYUV420_10bit()
344 && layout.planes[layout.PLANE_U].colInc == 2 in IsNV12()
345 && layout.planes[layout.PLANE_U].rootIx == layout.PLANE_U in IsNV12()
346 && layout.planes[layout.PLANE_U].offset == 0 in IsNV12()
347 && layout.planes[layout.PLANE_V].colInc == 2 in IsNV12()
348 && layout.planes[layout.PLANE_V].rootIx == layout.PLANE_U in IsNV12()
349 && layout.planes[layout.PLANE_V].offset == 1); in IsNV12()
358 && layout.planes[layout.PLANE_U].colInc == 4 in IsP010()
359 && layout.planes[layout.PLANE_U].rootIx == layout.PLANE_U in IsP010()
360 && layout.planes[layout.PLANE_U].offset == 0 in IsP010()
361 && layout.planes[layout.PLANE_V].colInc == 4 in IsP010()
362 && layout.planes[layout.PLANE_V].rootIx == layout.PLANE_U in IsP010()
363 && layout.planes[layout.PLANE_V].offset == 2 in IsP010()
364 && layout.planes[layout.PLANE_Y].rightShift == 6 in IsP010()
365 && layout.planes[layout.PLANE_U].rightShift == 6 in IsP010()
366 && layout.planes[layout.PLANE_V].rightShift == 6); in IsP010()
376 && layout.planes[layout.PLANE_U].colInc == 2 in IsNV21()
377 && layout.planes[layout.PLANE_U].rootIx == layout.PLANE_V in IsNV21()
378 && layout.planes[layout.PLANE_U].offset == 1 in IsNV21()
379 && layout.planes[layout.PLANE_V].colInc == 2 in IsNV21()
380 && layout.planes[layout.PLANE_V].rootIx == layout.PLANE_V in IsNV21()
381 && layout.planes[layout.PLANE_V].offset == 0); in IsNV21()
390 && layout.planes[layout.PLANE_U].colInc == 1 in IsI420()
391 && layout.planes[layout.PLANE_U].rootIx == layout.PLANE_U in IsI420()
392 && layout.planes[layout.PLANE_U].offset == 0 in IsI420()
393 && layout.planes[layout.PLANE_V].colInc == 1 in IsI420()
394 && layout.planes[layout.PLANE_V].rootIx == layout.PLANE_V in IsI420()
395 && layout.planes[layout.PLANE_V].offset == 0); in IsI420()
471 AHardwareBuffer_Planes planes; in GetYuv420FlexibleLayout() local
477 &planes); in GetYuv420FlexibleLayout()
483 if (planes.planeCount != 3) { in GetYuv420FlexibleLayout()
486 if (planes.planes[0].pixelStride != 1) { in GetYuv420FlexibleLayout()
489 if (planes.planes[1].pixelStride == 1 && planes.planes[2].pixelStride == 1) { in GetYuv420FlexibleLayout()
492 if (planes.planes[1].pixelStride == 2 && planes.planes[2].pixelStride == 2) { in GetYuv420FlexibleLayout()
494 static_cast<uint8_t *>(planes.planes[2].data) - in GetYuv420FlexibleLayout()
495 static_cast<uint8_t *>(planes.planes[1].data); in GetYuv420FlexibleLayout()
643 pRed += layout.planes[C2PlanarLayout::PLANE_R].colInc; in ConvertRGBToPlanarYUV()
644 pGreen += layout.planes[C2PlanarLayout::PLANE_G].colInc; in ConvertRGBToPlanarYUV()
645 pBlue += layout.planes[C2PlanarLayout::PLANE_B].colInc; in ConvertRGBToPlanarYUV()
653 pRed -= layout.planes[C2PlanarLayout::PLANE_R].colInc * src.width(); in ConvertRGBToPlanarYUV()
654 pGreen -= layout.planes[C2PlanarLayout::PLANE_G].colInc * src.width(); in ConvertRGBToPlanarYUV()
655 pBlue -= layout.planes[C2PlanarLayout::PLANE_B].colInc * src.width(); in ConvertRGBToPlanarYUV()
656 pRed += layout.planes[C2PlanarLayout::PLANE_R].rowInc; in ConvertRGBToPlanarYUV()
657 pGreen += layout.planes[C2PlanarLayout::PLANE_G].rowInc; in ConvertRGBToPlanarYUV()
658 pBlue += layout.planes[C2PlanarLayout::PLANE_B].rowInc; in ConvertRGBToPlanarYUV()