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>(
cffi.VideoWriter_New_Async,
(c, p) => c.complete(VideoWriter.fromPointer(p.cast<cvg.VideoWriter>())),
);
await vw.openAsync(filename, codec, fps, frameSize, isColor: isColor);
return vw;
}