fromFileAsync static method

Future<VideoWriter> fromFileAsync(
  1. String filename,
  2. String codec,
  3. double fps,
  4. (int, int) frameSize, {
  5. bool isColor = true,
})

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;
}