Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 public CVVideoWriter(string filename, CVCodec codec, CVFramesPerSecond fps, int width, int height, bool is_color)
 {
     Create(filename, codec, fps, width, height, is_color);
 }
Beispiel #4
0
 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();
 }
Beispiel #5
0
 public CVVideoWriter(string filename, CVCodec codec, CVFramesPerSecond fps, int width, int height)
 {
     Create(filename, codec, fps, width, height, true);
 }