C# Class NewTOAPIA.DirectShow.VideoCaptureDevice

VideoCaptureDevice - capture video from local device
Inheritance: IVideoSource
显示文件 Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
OnNewBuffer ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int

Private Methods

Method 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 method

public static CreateCaptureDeviceFromIndex ( int index, int width, int height ) : VideoCaptureDevice
index int
width int
height int
return VideoCaptureDevice

CreateCaptureDeviceFromName() public static method

public static CreateCaptureDeviceFromName ( string friendlyName, int width, int height ) : VideoCaptureDevice
friendlyName string
width int
height int
return VideoCaptureDevice

GetCameraControl() public method

public GetCameraControl ( ) : IAMCameraControl
return IAMCameraControl

GetNumberOfInputDevices() public static method

public static GetNumberOfInputDevices ( ) : int
return int

OnNewBuffer() protected method

protected OnNewBuffer ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int
SampleTime double
pBuffer System.IntPtr
BufferLen int
return int

SignalToStop() public method

public SignalToStop ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

VideoCaptureDevice() public method

public VideoCaptureDevice ( ) : System
return System

VideoCaptureDevice() public method

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

WaitForStop() public method

public WaitForStop ( ) : void
return void

WorkerThread() public method

public WorkerThread ( ) : void
return void