YuvPlane typedef

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

A single YUV plane exposed by a camera plugin, decoupled from any specific Flutter plugin's type (e.g. CameraImage.Plane).

  • bytes: the plane's raw pixel buffer.
  • rowStride: bytes between the start of consecutive rows (may exceed the logical row width when the buffer is padded).
  • pixelStride: bytes between consecutive pixel samples within a row. 1 for planar (I420 U/V). 2 for semi-planar (NV12/NV21 U/V). Always 1 for the Y plane.

Implementation

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