C# 클래스 HCS_Encoder.VideoCapture

Callback based video capture class
상속: ISampleGrabberCB, IDisposable
파일 보기 프로젝트 열기: i-e-b/HLS---Smooth-Encoder

공개 프로퍼티들

프로퍼티 타입 설명
m_Dropped int
m_MediaEvent IMediaEvent
m_frameRate int

보호된 프로퍼티들

프로퍼티 타입 설명
m_IncrementTimecodes bool
m_TimecodeBase double

공개 메소드들

메소드 설명
Dispose ( ) : void

release everything.

IsCompleted ( ) : bool

Check if source media has ended. Only makes sense for file input.

Pause ( ) : void
Start ( ) : void
VideoCapture ( ) : System

Use capture device zero, default frame rate and size

VideoCapture ( int iDeviceNum ) : System

Use specified capture device, default frame rate and size

VideoCapture ( int iDeviceNum, int iFrameRate ) : System

Use specified capture device, specified frame rate and default size

VideoCapture ( int iDeviceNum, int iFrameRate, int iWidth, int iHeight ) : System

Use specified capture device, specified frame rate and size

VideoCapture ( string Filename ) : System

Start a frame-by-frame capture of a source file. Must be one that can be played in Windows Media Player.

보호된 메소드들

메소드 설명
OnFrameAvailable ( object sender, VideoDataEventArgs e ) : void

비공개 메소드들

메소드 설명
CloseInterfaces ( ) : void

Shut down capture

ConfigureSampleGrabber ( ISampleGrabber sampGrabber ) : void
CopyMemory ( IntPtr Destination, IntPtr Source, int Length ) : void
ISampleGrabberCB ( double SampleTime, IMediaSample pSample ) : int

sample callback, NOT USED.

ISampleGrabberCB ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int

buffer callback, COULD BE FROM FOREIGN THREAD.

RescaleToTargetSize ( IntPtr pBuffer ) : Bitmap

Scale a 24bpp interleaved image into another 24bpp interleaved image.

SaveSizeInfo ( ISampleGrabber sampGrabber ) : void
SetConfigParms ( ICaptureGraphBuilder2 capGraph, IBaseFilter capFilter, int iFrameRate, int iWidth, int iHeight ) : void
SetupGraph ( DsDevice dev, int iFrameRate, int iWidth, int iHeight ) : void

build the capture graph for grabber.

SetupGraph ( string FileName ) : void
VideoIndex ( IPin pPin ) : int
_Capture ( int iDeviceNum, int iFrameRate, int iWidth, int iHeight ) : void

메소드 상세

Dispose() 공개 메소드

release everything.
public Dispose ( ) : void
리턴 void

IsCompleted() 공개 메소드

Check if source media has ended. Only makes sense for file input.
public IsCompleted ( ) : bool
리턴 bool

OnFrameAvailable() 보호된 메소드

protected OnFrameAvailable ( object sender, VideoDataEventArgs e ) : void
sender object
e VideoDataEventArgs
리턴 void

Pause() 공개 메소드

public Pause ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

VideoCapture() 공개 메소드

Use capture device zero, default frame rate and size
public VideoCapture ( ) : System
리턴 System

VideoCapture() 공개 메소드

Use specified capture device, default frame rate and size
public VideoCapture ( int iDeviceNum ) : System
iDeviceNum int
리턴 System

VideoCapture() 공개 메소드

Use specified capture device, specified frame rate and default size
public VideoCapture ( int iDeviceNum, int iFrameRate ) : System
iDeviceNum int
iFrameRate int
리턴 System

VideoCapture() 공개 메소드

Use specified capture device, specified frame rate and size
public VideoCapture ( int iDeviceNum, int iFrameRate, int iWidth, int iHeight ) : System
iDeviceNum int
iFrameRate int
iWidth int
iHeight int
리턴 System

VideoCapture() 공개 메소드

Start a frame-by-frame capture of a source file. Must be one that can be played in Windows Media Player.
public VideoCapture ( string Filename ) : System
Filename string
리턴 System

프로퍼티 상세

m_Dropped 공개적으로 프로퍼티

public int m_Dropped
리턴 int

m_IncrementTimecodes 보호되어 있는 프로퍼티

protected bool m_IncrementTimecodes
리턴 bool

m_MediaEvent 공개적으로 프로퍼티

public IMediaEvent m_MediaEvent
리턴 IMediaEvent

m_TimecodeBase 보호되어 있는 프로퍼티

protected double m_TimecodeBase
리턴 double

m_frameRate 공개적으로 프로퍼티

public int m_frameRate
리턴 int