toNv21 method

Future<Nv21Image> toNv21()

Converts the image to a Nv21Image.

Implementation

Future<Nv21Image> toNv21() async {
  final wrappedImage = await AnalysisImageUtils().yuv420toNv21(
    wrapped(),
  );
  return wrappedImage.unwrap() as Nv21Image;
}