C# Class HCS_Encoder.VideoCapture

Callback based video capture class
Inheritance: ISampleGrabberCB, IDisposable
Afficher le fichier Open project: i-e-b/HLS---Smooth-Encoder

Méthodes publiques

Свойство Type Description
m_Dropped int
m_MediaEvent IMediaEvent
m_frameRate int

Protected Properties

Свойство Type Description
m_IncrementTimecodes bool
m_TimecodeBase double

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnFrameAvailable ( object sender, VideoDataEventArgs e ) : void

Private Methods

Méthode Description
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

Method Details

Dispose() public méthode

release everything.
public Dispose ( ) : void
Résultat void

IsCompleted() public méthode

Check if source media has ended. Only makes sense for file input.
public IsCompleted ( ) : bool
Résultat bool

OnFrameAvailable() protected méthode

protected OnFrameAvailable ( object sender, VideoDataEventArgs e ) : void
sender object
e VideoDataEventArgs
Résultat void

Pause() public méthode

public Pause ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

VideoCapture() public méthode

Use capture device zero, default frame rate and size
public VideoCapture ( ) : System
Résultat System

VideoCapture() public méthode

Use specified capture device, default frame rate and size
public VideoCapture ( int iDeviceNum ) : System
iDeviceNum int
Résultat System

VideoCapture() public méthode

Use specified capture device, specified frame rate and default size
public VideoCapture ( int iDeviceNum, int iFrameRate ) : System
iDeviceNum int
iFrameRate int
Résultat System

VideoCapture() public méthode

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
Résultat System

VideoCapture() public méthode

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
Résultat System

Property Details

m_Dropped public_oe property

public int m_Dropped
Résultat int

m_IncrementTimecodes protected_oe property

protected bool m_IncrementTimecodes
Résultat bool

m_MediaEvent public_oe property

public IMediaEvent m_MediaEvent
Résultat IMediaEvent

m_TimecodeBase protected_oe property

protected double m_TimecodeBase
Résultat double

m_frameRate public_oe property

public int m_frameRate
Résultat int