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 Uint8Listin A buffer that contains the Y plane.
uPlane Uint8Listin A buffer that contains the U plane.
vPlane Uint8Listin A buffer that contains the V plane.
yWidth intin The width, in pixels, of the Y plane.
yHeight intin The height, in pixels, of the Y plane.
uvPixelStride intin The pixel-level stride, in pixels, of the U and V planes.
uvRowStride intin The row-level stride, in pixels, of the U and V planes.
dstPixelFormat PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created image.
Exceptions
An error has occurred during Face Library execution.