openAsync method
Implementation
Future<bool> openAsync(
String filename,
String codec,
double fps,
(int, int) frameSize, {
bool isColor = true,
}) async {
final name = filename.toNativeUtf8().cast<ffi.Char>();
final codec_ = codec.toNativeUtf8().cast<ffi.Char>();
final rval = cvRunAsync<bool>(
(callback) => cvideo.VideoWriter_Open_Async(
ref, name, codec_, fps, frameSize.$1, frameSize.$2, isColor, callback),
boolCompleter,
);
calloc.free(name);
calloc.free(codec_);
return rval;
}