C# Класс NewTOAPIA.DirectShow.VideoCaptureDevice

VideoCaptureDevice - capture video from local device
Наследование: IVideoSource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnNewBuffer ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int

Приватные методы

Метод Описание
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

Описание методов

CreateCaptureDeviceFromIndex() публичный статический Метод

public static CreateCaptureDeviceFromIndex ( int index, int width, int height ) : VideoCaptureDevice
index int
width int
height int
Результат VideoCaptureDevice

CreateCaptureDeviceFromName() публичный статический Метод

public static CreateCaptureDeviceFromName ( string friendlyName, int width, int height ) : VideoCaptureDevice
friendlyName string
width int
height int
Результат VideoCaptureDevice

GetCameraControl() публичный Метод

public GetCameraControl ( ) : IAMCameraControl
Результат IAMCameraControl

GetNumberOfInputDevices() публичный статический Метод

public static GetNumberOfInputDevices ( ) : int
Результат int

OnNewBuffer() защищенный Метод

protected OnNewBuffer ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int
SampleTime double
pBuffer System.IntPtr
BufferLen int
Результат int

SignalToStop() публичный Метод

public SignalToStop ( ) : void
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Stop() публичный Метод

public Stop ( ) : void
Результат void

VideoCaptureDevice() публичный Метод

public VideoCaptureDevice ( ) : System
Результат System

VideoCaptureDevice() публичный Метод

public VideoCaptureDevice ( DsDevice device, int width, int height ) : System
device NewTOAPIA.DirectShow.Core.DsDevice
width int
height int
Результат System

WaitForStop() публичный Метод

public WaitForStop ( ) : void
Результат void

WorkerThread() публичный Метод

public WorkerThread ( ) : void
Результат void