protected void Create(string filename, CVCodec codec, CVFramesPerSecond fps, int width, int height, bool is_color) { vw_ = PInvoke.cvCreateVideoWriter(filename, (int)codec, (int)fps, new __CvSize(width, height), is_color ? 1 : 0); CVUtils.CheckLastError(); }
public static extern int cvWriteFrame(__CvVideoWriterPtr writer, __IplImagePtr image);
public void Release() { __CvVideoWriterPtr ptr = vw_; // CvVideoWriter* prt = vw_ PInvoke.cvReleaseVideoWriter(ref ptr); }
public static extern void cvReleaseVideoWriter(ref __CvVideoWriterPtr writer);