Image.fromYuvPlanes Method

Module: Image

Definition

Creates an Image from the specified YUV planes.

static Image fromYuvPlanes(Uint8List? yPlane, Uint8List? uPlane, Uint8List? vPlane, int yWidth, int yHeight, int uvPixelStride, int uvRowStride, PixelFormat dstPixelFormat)

Parameters

yPlane Uint8List
in A buffer that contains the Y plane.

uPlane Uint8List
in A buffer that contains the U plane.

vPlane Uint8List
in A buffer that contains the V plane.

yWidth int
in The width, in pixels, of the Y plane.

yHeight int
in The height, in pixels, of the Y plane.

uvPixelStride int
in The pixel-level stride, in pixels, of the U and V planes.

uvRowStride int
in The row-level stride, in pixels, of the U and V planes.

dstPixelFormat PixelFormat
in The pixel format into which to convert the input image.

Returns

The newly created image.

Exceptions

An error has occurred during Face Library execution.