C# 클래스 Accord.Video.VFW.AVIReader

AVI files reading using Video for Windows.

The class allows to read AVI files using Video for Windows API.

Sample usage:

// instantiate AVI reader AVIReader reader = new AVIReader( ); // open video file reader.Open( "test.avi" ); // read the video file while ( reader.Position - reader.Start < reader.Length ) { // get next frame Bitmap image = reader.GetNextFrame( ); // .. process the frame somehow or display it } reader.Close( );
상속: IDisposable
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
AVIReader ( ) : System

Initializes a new instance of the AVIReader class.

Initializes Video for Windows library.

Close ( ) : void

Close video file.

Dispose ( ) : void

Dispose the object.

Frees unmanaged resources used by the object. The object becomes unusable after that.

GetNextFrame ( ) : Bitmap

Get next frame of opened video stream.

The method reads and returns the next video frame in the opened video stream at the position, which is set in Position property.

Open ( string fileName ) : void

Open AVI file.

The method opens a video file and prepares the stream and decoder for reading video frames with the help of GetNextFrame method.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Dispose the object.

메소드 상세

AVIReader() 공개 메소드

Initializes a new instance of the AVIReader class.
Initializes Video for Windows library.
public AVIReader ( ) : System
리턴 System

Close() 공개 메소드

Close video file.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Dispose the object.
Frees unmanaged resources used by the object. The object becomes unusable after that.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Dispose the object.
protected Dispose ( bool disposing ) : void
disposing bool Indicates if disposing was initiated manually.
리턴 void

GetNextFrame() 공개 메소드

Get next frame of opened video stream.

The method reads and returns the next video frame in the opened video stream at the position, which is set in Position property.

Thrown if no video file was open. A error occurred while reading next video frame. See exception message.
public GetNextFrame ( ) : Bitmap
리턴 System.Drawing.Bitmap

Open() 공개 메소드

Open AVI file.

The method opens a video file and prepares the stream and decoder for reading video frames with the help of GetNextFrame method.

Failed opening the specified file. A error occurred while opening the video file. See exception message.
public Open ( string fileName ) : void
fileName string AVI file name to open.
리턴 void