C# Class NewTOAPIA.DirectShow.VideoCaptureDevice

VideoCaptureDevice - capture video from local device
Inheritance: IVideoSource
Afficher le fichier Open project: Wiladams/NewTOAPIA Class Usage Examples

Méthodes publiques

Méthode Description
CreateCaptureDeviceFromIndex ( int index, int width, int height ) : VideoCaptureDevice
CreateCaptureDeviceFromName ( string friendlyName, int width, int height ) : VideoCaptureDevice
GetCameraControl ( ) : IAMCameraControl
GetNumberOfInputDevices ( ) : int
SignalToStop ( ) : void
Start ( ) : void
Stop ( ) : void
VideoCaptureDevice ( ) : System
VideoCaptureDevice ( DsDevice device, int width, int height ) : System
WaitForStop ( ) : void
WorkerThread ( ) : void

Méthodes protégées

Méthode Description
OnNewBuffer ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int

Private Methods

Méthode Description
AcquireInterfaces ( ) : void
AddFilters ( ) : void
AddSampleGrabber ( ) : void
AddSourceFilter ( ) : void
ConfigureSourceFilter ( IAMStreamConfig streamConfig, int iWidth, int iHeight, short bitsPerPixel ) : void

Configure the capture filter once it is in the graph.

We configure the source filter with the desired size, mediasubtype, and bits per pixel. This must be done before the capture pin is connected to other filters in the graph.

ConnectFilters ( ) : void
Free ( ) : void
GetCaptureSize ( ) : void
GetIndexedVideoInputDevice ( int indexed ) : IBaseFilter
ReleaseInterfaces ( ) : void
SetupGraph ( ) : void

Method Details

CreateCaptureDeviceFromIndex() public static méthode

public static CreateCaptureDeviceFromIndex ( int index, int width, int height ) : VideoCaptureDevice
index int
width int
height int
Résultat VideoCaptureDevice

CreateCaptureDeviceFromName() public static méthode

public static CreateCaptureDeviceFromName ( string friendlyName, int width, int height ) : VideoCaptureDevice
friendlyName string
width int
height int
Résultat VideoCaptureDevice

GetCameraControl() public méthode

public GetCameraControl ( ) : IAMCameraControl
Résultat IAMCameraControl

GetNumberOfInputDevices() public static méthode

public static GetNumberOfInputDevices ( ) : int
Résultat int

OnNewBuffer() protected méthode

protected OnNewBuffer ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int
SampleTime double
pBuffer System.IntPtr
BufferLen int
Résultat int

SignalToStop() public méthode

public SignalToStop ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

VideoCaptureDevice() public méthode

public VideoCaptureDevice ( ) : System
Résultat System

VideoCaptureDevice() public méthode

public VideoCaptureDevice ( DsDevice device, int width, int height ) : System
device NewTOAPIA.DirectShow.Core.DsDevice
width int
height int
Résultat System

WaitForStop() public méthode

public WaitForStop ( ) : void
Résultat void

WorkerThread() public méthode

public WorkerThread ( ) : void
Résultat void