readAsync method
Implementation
Future<(bool, Mat)> readAsync({Mat? m}) async {
m ??= Mat.empty();
final p = calloc<ffi.Bool>();
return cvRunAsync0(
(callback) => cvideoio.cv_VideoCapture_read(ref, m!.ref, p, callback),
(c) {
final rval = (p.value, m!);
calloc.free(p);
return c.complete(rval);
},
);
}