fromLuminance static method

UGrayImage fromLuminance(
  1. Uint8List plane,
  2. int width,
  3. int height, {
  4. int rowStride = 0,
})

Wraps the Y plane of a YUV420/NV21 frame without copying when possible.

Implementation

static UGrayImage fromLuminance(Uint8List plane, int width, int height, {int rowStride = 0}) => UGrayImage(plane, width, height, rowStride: rowStride);