CV_FOURCC() public static method

Generate 4-character code of codec used to compress the frames. For example, CV_FOURCC('P','I','M','1') is MPEG-1 codec, CV_FOURCC('M','J','P','G') is motion-jpeg codec etc.
public static CV_FOURCC ( char c1, char c2, char c3, char c4 ) : int
c1 char
c2 char
c3 char
c4 char
return int
Beispiel #1
0
 /// <summary>
 /// Create a video writer using the specific information.
 /// On windows, it will open a codec selection dialog.
 /// On linux, it will use the default codec for the specified filename
 /// </summary>
 /// <param name="fileName">The name of the video file to be written to </param>
 /// <param name="fps">frame rate per second</param>
 /// <param name="width">the width of the frame</param>
 /// <param name="height">the height of the frame</param>
 /// <param name="isColor">true if this is a color video, false otherwise</param>
 public VideoWriter(String fileName, int fps, int width, int height, bool isColor)
     : this(fileName,
            /*Emgu.Util.Platform.OperationSystem == Emgu.Util.TypeEnum.OS.Windows ? -1 :*/ CvInvoke.CV_FOURCC('I', 'Y', 'U', 'V'),
            fps, width, height, isColor)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Create a video writer using the specific information
 /// </summary>
 /// <param name="fileName">The name of the video file to be written to </param>
 /// <param name="fps">frame rate per second</param>
 /// <param name="width">the width of the frame</param>
 /// <param name="height">the height of the frame</param>
 /// <param name="isColor">true if this is a color video, false otherwise</param>
 public VideoWriter(String fileName, int fps, int width, int height, bool isColor)
     : this(fileName, CvInvoke.CV_FOURCC('M', 'J', 'P', 'G'), fps, width, height, isColor)
 {
 }