CameraPlane typedef

CameraPlane = ({Uint8List bytes, int pixelStride, int rowStride})

A single camera frame plane exposed by a camera plugin.

Structurally identical to YuvPlane. Dart records are compared by shape, so the two names are interchangeable at call sites. Use CameraPlane when the plane may be YUV or packed BGRA/RGBA (e.g. passing to cameraFrameToBgrMat); use YuvPlane for the YUV-specific packYuv420.

Implementation

typedef CameraPlane = ({Uint8List bytes, int rowStride, int pixelStride});