/// <summary> /// Creates a CVVideoWriter compatible with this video. /// </summary> /// <param name="filename">The file name of the output video</param> /// <param name="codec">The codec to use</param> /// <returns>A CVVideoWriter object</returns> public CVVideoWriter CreateVideoWriter(string filename, CVCodec codec) { return(new CVVideoWriter(filename, codec, Capture.Width, Capture.Height)); }
/// <summary> /// Creates a CVVideoWriter compatible with this video. /// </summary> /// <param name="filename">The file name of the output video</param> /// <param name="codec">The codec to use</param> /// <returns>A CVVideoWriter object</returns> public CVVideoWriter CreateVideoWriter(string filename, CVCodec codec) { return new CVVideoWriter(filename, codec, Capture.Width, Capture.Height); }
public CVVideoWriter(string filename, CVCodec codec, CVFramesPerSecond fps, int width, int height, bool is_color) { Create(filename, codec, fps, width, height, is_color); }
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 CVVideoWriter(string filename, CVCodec codec, CVFramesPerSecond fps, int width, int height) { Create(filename, codec, fps, width, height, true); }