fromFileAsync static method
Implementation
static Future<VideoWriter> fromFileAsync(
String filename,
String codec,
double fps,
(int, int) frameSize, {
bool isColor = true,
}) async {
final vw = await cvRunAsync<VideoWriter>(
cvideo.VideoWriter_New_Async,
(c, p) => c.complete(VideoWriter.fromPointer(p.cast<cvideo.VideoWriter>())),
);
await vw.openAsync(filename, codec, fps, frameSize, isColor: isColor);
return vw;
}