C# 클래스 ZForge.Motion.VideoSource.AVIFileExVideoSource

AVI file video source.

The video source read AVI files using Video for Windows.

Sample usage:

// create AVI file video source AVIFileVideoSource source = new AVIFileVideoSource( "some file" ); // set event handlers source.NewFrame += new NewFrameEventHandler( video_NewFrame ); // start the video source source.Start( ); // ... // signal to stop source.SignalToStop( );
상속: IVideoSource
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 메소드들

메소드 설명
AVIFileExVideoSource ( ) : System

Initializes a new instance of the AVIFileVideoSource class.

AVIFileExVideoSource ( string source ) : System

Initializes a new instance of the AVIFileVideoSource class.

SignalToStop ( ) : void

Signal video source to stop its work.

Signals video source to stop its background thread, stop to provide new frames and free resources.

Start ( ) : void

Start video source.

Start video source and return execution to caller. Video source object creates background thread and notifies about new frames with the help of NewFrame event.

Stop ( ) : void

Stop video source.

Stops video source aborting its thread.

WaitForStop ( ) : void

Wait for video source has stopped.

Waits for source stopping after it was signalled to stop using SignalToStop method.

WorkerThread ( ) : void

Worker thread.

비공개 메소드들

메소드 설명
Free ( ) : void

Free resource.

메소드 상세

AVIFileExVideoSource() 공개 메소드

Initializes a new instance of the AVIFileVideoSource class.
public AVIFileExVideoSource ( ) : System
리턴 System

AVIFileExVideoSource() 공개 메소드

Initializes a new instance of the AVIFileVideoSource class.
public AVIFileExVideoSource ( string source ) : System
source string Video file name.
리턴 System

SignalToStop() 공개 메소드

Signal video source to stop its work.
Signals video source to stop its background thread, stop to provide new frames and free resources.
public SignalToStop ( ) : void
리턴 void

Start() 공개 메소드

Start video source.
Start video source and return execution to caller. Video source object creates background thread and notifies about new frames with the help of NewFrame event.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop video source.
Stops video source aborting its thread.
public Stop ( ) : void
리턴 void

WaitForStop() 공개 메소드

Wait for video source has stopped.
Waits for source stopping after it was signalled to stop using SignalToStop method.
public WaitForStop ( ) : void
리턴 void

WorkerThread() 공개 메소드

Worker thread.
public WorkerThread ( ) : void
리턴 void