메소드 | 설명 | |
---|---|---|
FourCC ( char c1, char c2, char c3, char c4 ) : int |
Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
|
|
FourCC ( string code ) : int |
Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
|
|
IsOpened ( ) : bool |
Returns true if video writer has been successfully initialized.
|
|
Open ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : void |
Creates video writer structure.
|
|
Open ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : void |
Creates video writer structure.
|
|
Open ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : void |
Creates video writer structure.
|
|
Release ( ) : void |
|
|
VideoWriter ( ) : System |
|
|
VideoWriter ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : System |
Creates video writer structure.
|
|
VideoWriter ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : System |
Creates video writer structure.
|
|
VideoWriter ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : System |
Creates video writer structure.
|
|
Write ( OpenCvSharp.Mat image ) : void |
Writes/appends one frame to video file.
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
메소드 | 설명 | |
---|---|---|
VideoWriter ( |
Initializes from native pointer
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. /// |
리턴 | void |
public static FourCC ( char c1, char c2, char c3, char c4 ) : int | ||
c1 | char | |
c2 | char | |
c3 | char | |
c4 | char | |
리턴 | int |
public Open ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : void | ||
fileName | string | Name of the output video file. |
fourcc | FourCC | 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. |
fps | double | Framerate of the created video stream. |
frameSize | Size | Size of video frames. |
isColor | bool | If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only). |
리턴 | void |
public Open ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : void | ||
fileName | string | Name of the output video file. |
fourcc | int | 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. |
fps | double | Framerate of the created video stream. |
frameSize | Size | Size of video frames. |
isColor | bool | If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only). |
리턴 | void |
public Open ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : void | ||
fileName | string | Name of the output video file. |
fourcc | string | 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. |
fps | double | Framerate of the created video stream. |
frameSize | Size | Size of video frames. |
isColor | bool | If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only). |
리턴 | void |
public VideoWriter ( string fileName, FourCC fourcc, double fps, Size frameSize, bool isColor = true ) : System | ||
fileName | string | Name of the output video file. |
fourcc | FourCC | 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. |
fps | double | Framerate of the created video stream. |
frameSize | Size | Size of video frames. |
isColor | bool | If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only). |
리턴 | System |
public VideoWriter ( string fileName, int fourcc, double fps, Size frameSize, bool isColor = true ) : System | ||
fileName | string | Name of the output video file. |
fourcc | int | 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. |
fps | double | Framerate of the created video stream. |
frameSize | Size | Size of video frames. |
isColor | bool | If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only). |
리턴 | System |
public VideoWriter ( string fileName, string fourcc, double fps, Size frameSize, bool isColor = true ) : System | ||
fileName | string | Name of the output video file. |
fourcc | string | 4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc. /// Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. |
fps | double | Framerate of the created video stream. |
frameSize | Size | Size of video frames. |
isColor | bool | If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only). |
리턴 | System |
public Write ( OpenCvSharp.Mat image ) : void | ||
image | OpenCvSharp.Mat | the written frame. |
리턴 | void |