open method
void
open(})
Implementation
void open(
String filename,
String codec,
double fps,
(int, int) frameSize, {
int? apiPreference,
bool isColor = true,
}) {
final cname = filename.toNativeUtf8();
final codec_ = VideoWriter.fourcc(codec);
apiPreference == null
? cvRun(
() => cffi.VideoWriter_Open(
ref,
cname.cast(),
codec_,
fps,
frameSize.$1,
frameSize.$2,
isColor,
),
)
: cvRun(
() => cffi.VideoWriter_Open_1(
ref,
cname.cast(),
apiPreference,
codec_,
fps,
frameSize.$1,
frameSize.$2,
isColor,
),
);
calloc.free(cname);
}