public static CV_FOURCC ( char c1, char c2, char c3, char c4 ) : int | ||
c1 | char | |
c2 | char | |
c3 | char | |
c4 | char | |
return | int |
/// <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) { }
/// <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) { }