C# Класс NewTOAPIA.Media.VfwCameraDevice

The VfwCameraDevice object represents a Vfw video capture device. As Vfw also supports audio capture devices, this object is specialized to only the video capture interfaces.
Наследование: VfwCaptureDevice
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConfigureCapture ( ) : void

We can configure some settings related to capturing images from the camera. Primarily we want to control how many buffers are used in the capture process. If we are doing continuous capture, we can configure the interval between subsequent frames.

GetBitmapInfo ( ) : BITMAPINFO
GrabSingleFrame ( ) : bool

Grab a single frame from the video device. Disables Overlay and preview. Since we want complete control of video grabbing, this is what we want. We don't want or need a preview window, and we don't want to be doing overlay either. As the frame is grabbed, our frameDelegate function is called with the retrieved frame.

OnConnected ( ) : void
ShowCompressionChoices ( ) : void
ShowPreviewWindow ( ) : bool
ShowVideoFormats ( ) : void
ShowVideoSourceChoices ( ) : void

If the driver supports a dialog box to select the video Source, this method will display it on the screen.

StartStreaming ( ) : bool
StopStreaming ( ) : bool
VfwCameraDevice ( int width, int height ) : System
VfwCameraDevice ( int index, int width, int height, int fps, int windowStyle, IntPtr parentWindow ) : System

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

Метод Описание
ConfigureVideoFormat ( ) : void
ControlCallback ( IntPtr hWnd, int nState ) : int
ErrorCallback ( IntPtr hWnd, int nID, string lpsz ) : int
FrameCallBack ( IntPtr hwnd, VIDEOHDR &hdr ) : void
PrintCompressionType ( uint compression ) : void
StatusCallback ( IntPtr hWnd, int nID, string lpsz ) : int
StreamCallBack ( IntPtr hwnd, VIDEOHDR &hdr ) : void

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

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

We can configure some settings related to capturing images from the camera. Primarily we want to control how many buffers are used in the capture process. If we are doing continuous capture, we can configure the interval between subsequent frames.
public ConfigureCapture ( ) : void
Результат void

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

public GetBitmapInfo ( ) : BITMAPINFO
Результат TOAPI.Types.BITMAPINFO

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

Grab a single frame from the video device. Disables Overlay and preview. Since we want complete control of video grabbing, this is what we want. We don't want or need a preview window, and we don't want to be doing overlay either. As the frame is grabbed, our frameDelegate function is called with the retrieved frame.
public GrabSingleFrame ( ) : bool
Результат bool

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

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

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

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

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

public ShowPreviewWindow ( ) : bool
Результат bool

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

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

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

If the driver supports a dialog box to select the video Source, this method will display it on the screen.
public ShowVideoSourceChoices ( ) : void
Результат void

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

public StartStreaming ( ) : bool
Результат bool

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

public StopStreaming ( ) : bool
Результат bool

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

public VfwCameraDevice ( int width, int height ) : System
width int
height int
Результат System

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

public VfwCameraDevice ( int index, int width, int height, int fps, int windowStyle, IntPtr parentWindow ) : System
index int
width int
height int
fps int
windowStyle int
parentWindow System.IntPtr
Результат System