C# 클래스 NewTOAPIA.Media.VfwCaptureDevice

This class encapsulates a video capture device as represented by the AviCap interface of old. There are only two functions that are connected to actual API calls. All the other methods are actually messages that are sent to a window.
파일 보기 프로젝트 열기: Wiladams/NewTOAPIA

보호된 프로퍼티들

프로퍼티 타입 설명
fWindowHandle System.IntPtr

공개 메소드들

메소드 설명
ConfigureCapture ( ) : void
Connect ( ) : bool
CreateWindow ( int x, int y, int width, int height, int style, IntPtr parentID ) : void
Disconnect ( ) : void
OnConnected ( ) : void
OnDisconnecting ( ) : void
SendMessage ( int msg, uint wParam, int lParam ) : int
SendSimpleMessage ( int msg ) : int
SetCallbackOnCapControl ( VfwcapControlCallback fpProc ) : bool
SetCallbackOnError ( VfwcapErrorCallback fpProc ) : bool
SetCallbackOnFrame ( VfwVideoFrameDelegate fpProc ) : bool
SetCallbackOnStatus ( VfwcapStatusCallback fpProc ) : bool
SetCallbackOnVideoStream ( VfwVideoFrameDelegate fpProc ) : bool
SetFramesPerSecond ( int fps ) : void
capCaptureSequence ( ) : bool
capCaptureSequenceNoFile ( ) : bool
capDlgVideoDisplay ( ) : bool
capDlgVideoFormat ( ) : bool
capDlgVideoSource ( ) : bool
capDriverConnect ( ) : bool
capDriverDisconnect ( ) : bool
capDriverGetCaps ( CAPDRIVERCAPS &s ) : bool
capDriverGetName ( StringBuilder szName, int wSize ) : bool
capDriverGetVersion ( StringBuilder szVer, int wSize ) : bool
capEditCopy ( ) : bool
capFileAlloc ( Int32 dwSize ) : bool
capFileGetCaptureFile ( StringBuilder szName, int wSize ) : bool
capFileSaveAs ( string szName ) : bool
capFileSaveDIB ( string szName ) : bool
capFileSetCaptureFile ( string szName ) : bool
capFileSetInfoChunk ( CAPINFOCHUNK &infoChunk ) : bool
capGetAudioFormat ( WAVEFORMATEX &s, int wSize ) : int
capGetAudioFormatSize ( ) : int
capGetUserData ( ) : bool
capSetAudioFormat ( WAVEFORMATEX &s, int wSize ) : bool
capSetUserData ( int lUser ) : bool

보호된 메소드들

메소드 설명
VfwCaptureDevice ( int index, int width, int height, int fps, int windowStyle, IntPtr parentWindow ) : System
capCaptureAbort ( ) : bool
capCaptureGetSetup ( CAPTUREPARMS &s ) : bool
capCaptureSetSetup ( CAPTUREPARMS &s ) : bool
capCaptureSingleFrame ( ) : bool
capCaptureSingleFrameClose ( ) : bool
capCaptureSingleFrameOpen ( ) : bool
capCaptureStop ( ) : bool
capDlgVideoCompression ( ) : bool
capGetMCIDeviceName ( StringBuilder szName, int wSize ) : bool
capGetStatus ( CAPSTATUS &s ) : bool
capGetVideoFormat ( BITMAPINFO &s ) : int

Retrieves a copy of the video format information.

capGetVideoFormatSize ( ) : int

Retrieve the size needed to hold the data structure representing the video format information.

capGrabFrame ( ) : bool

Grab a single frame from the device. Overlay and preview are stopped if they are currently active.

capGrabFrameNoStop ( ) : bool

Grab a single from from the device. Overlay and Preview are not stopped.

capOverlay ( bool f ) : bool
capPaletteAuto ( int iFrames, int &iColors ) : bool
capPaletteManual ( int fGrab, int iColors ) : bool
capPaletteOpen ( string szName ) : bool
capPalettePaste ( ) : bool
capPaletteSave ( string szName ) : bool
capPreview ( bool f ) : bool
capPreviewRate ( int wMS ) : bool
capPreviewScale ( bool f ) : bool
capSetMCIDeviceName ( string szName ) : bool
capSetScrollPos ( POINT &lpP ) : bool
capSetVideoFormat ( BITMAPINFO &s ) : bool

비공개 메소드들

메소드 설명
SendCallbackMessage ( [ hWnd, int wMsg, uint wParam, VfwVideoFrameDelegate lParam ) : int
SendCallbackMessage ( [ hWnd, int wMsg, uint wParam, VfwcapControlCallback lParam ) : int
SendCallbackMessage ( [ hWnd, int wMsg, uint wParam, VfwcapErrorCallback lParam ) : int
SendCallbackMessage ( [ hWnd, int wMsg, uint wParam, VfwcapStatusCallback lParam ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, BITMAPINFO &caps ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, CAPDRIVERCAPS &caps ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, CAPINFOCHUNK &infoChunk ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, CAPSTATUS &waveFormat ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, CAPTUREPARMS &waveFormat ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, POINT &waveFormat ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, WAVEFORMATEX &waveFormat ) : int
SendMessageW ( [ hWnd, int Msg, uint wParam, [ lpString ) : int

메소드 상세

ConfigureCapture() 공개 메소드

public ConfigureCapture ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( ) : bool
리턴 bool

CreateWindow() 공개 메소드

public CreateWindow ( int x, int y, int width, int height, int style, IntPtr parentID ) : void
x int
y int
width int
height int
style int
parentID System.IntPtr
리턴 void

Disconnect() 공개 메소드

public Disconnect ( ) : void
리턴 void

OnConnected() 공개 메소드

public OnConnected ( ) : void
리턴 void

OnDisconnecting() 공개 메소드

public OnDisconnecting ( ) : void
리턴 void

SendMessage() 공개 메소드

public SendMessage ( int msg, uint wParam, int lParam ) : int
msg int
wParam uint
lParam int
리턴 int

SendSimpleMessage() 공개 메소드

public SendSimpleMessage ( int msg ) : int
msg int
리턴 int

SetCallbackOnCapControl() 공개 메소드

public SetCallbackOnCapControl ( VfwcapControlCallback fpProc ) : bool
fpProc VfwcapControlCallback
리턴 bool

SetCallbackOnError() 공개 메소드

public SetCallbackOnError ( VfwcapErrorCallback fpProc ) : bool
fpProc VfwcapErrorCallback
리턴 bool

SetCallbackOnFrame() 공개 메소드

public SetCallbackOnFrame ( VfwVideoFrameDelegate fpProc ) : bool
fpProc VfwVideoFrameDelegate
리턴 bool

SetCallbackOnStatus() 공개 메소드

public SetCallbackOnStatus ( VfwcapStatusCallback fpProc ) : bool
fpProc VfwcapStatusCallback
리턴 bool

SetCallbackOnVideoStream() 공개 메소드

public SetCallbackOnVideoStream ( VfwVideoFrameDelegate fpProc ) : bool
fpProc VfwVideoFrameDelegate
리턴 bool

SetFramesPerSecond() 공개 메소드

public SetFramesPerSecond ( int fps ) : void
fps int
리턴 void

VfwCaptureDevice() 보호된 메소드

protected VfwCaptureDevice ( 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

capCaptureAbort() 보호된 메소드

protected capCaptureAbort ( ) : bool
리턴 bool

capCaptureGetSetup() 보호된 메소드

protected capCaptureGetSetup ( CAPTUREPARMS &s ) : bool
s TOAPI.AviCap32.CAPTUREPARMS
리턴 bool

capCaptureSequence() 공개 메소드

public capCaptureSequence ( ) : bool
리턴 bool

capCaptureSequenceNoFile() 공개 메소드

public capCaptureSequenceNoFile ( ) : bool
리턴 bool

capCaptureSetSetup() 보호된 메소드

protected capCaptureSetSetup ( CAPTUREPARMS &s ) : bool
s TOAPI.AviCap32.CAPTUREPARMS
리턴 bool

capCaptureSingleFrame() 보호된 메소드

protected capCaptureSingleFrame ( ) : bool
리턴 bool

capCaptureSingleFrameClose() 보호된 메소드

protected capCaptureSingleFrameClose ( ) : bool
리턴 bool

capCaptureSingleFrameOpen() 보호된 메소드

protected capCaptureSingleFrameOpen ( ) : bool
리턴 bool

capCaptureStop() 보호된 메소드

protected capCaptureStop ( ) : bool
리턴 bool

capDlgVideoCompression() 보호된 메소드

protected capDlgVideoCompression ( ) : bool
리턴 bool

capDlgVideoDisplay() 공개 메소드

public capDlgVideoDisplay ( ) : bool
리턴 bool

capDlgVideoFormat() 공개 메소드

public capDlgVideoFormat ( ) : bool
리턴 bool

capDlgVideoSource() 공개 메소드

public capDlgVideoSource ( ) : bool
리턴 bool

capDriverConnect() 공개 메소드

public capDriverConnect ( ) : bool
리턴 bool

capDriverDisconnect() 공개 메소드

public capDriverDisconnect ( ) : bool
리턴 bool

capDriverGetCaps() 공개 메소드

public capDriverGetCaps ( CAPDRIVERCAPS &s ) : bool
s TOAPI.AviCap32.CAPDRIVERCAPS
리턴 bool

capDriverGetName() 공개 메소드

public capDriverGetName ( StringBuilder szName, int wSize ) : bool
szName StringBuilder
wSize int
리턴 bool

capDriverGetVersion() 공개 메소드

public capDriverGetVersion ( StringBuilder szVer, int wSize ) : bool
szVer StringBuilder
wSize int
리턴 bool

capEditCopy() 공개 메소드

public capEditCopy ( ) : bool
리턴 bool

capFileAlloc() 공개 메소드

public capFileAlloc ( Int32 dwSize ) : bool
dwSize System.Int32
리턴 bool

capFileGetCaptureFile() 공개 메소드

public capFileGetCaptureFile ( StringBuilder szName, int wSize ) : bool
szName StringBuilder
wSize int
리턴 bool

capFileSaveAs() 공개 메소드

public capFileSaveAs ( string szName ) : bool
szName string
리턴 bool

capFileSaveDIB() 공개 메소드

public capFileSaveDIB ( string szName ) : bool
szName string
리턴 bool

capFileSetCaptureFile() 공개 메소드

public capFileSetCaptureFile ( string szName ) : bool
szName string
리턴 bool

capFileSetInfoChunk() 공개 메소드

public capFileSetInfoChunk ( CAPINFOCHUNK &infoChunk ) : bool
infoChunk TOAPI.AviCap32.CAPINFOCHUNK
리턴 bool

capGetAudioFormat() 공개 메소드

public capGetAudioFormat ( WAVEFORMATEX &s, int wSize ) : int
s TOAPI.Types.WAVEFORMATEX
wSize int
리턴 int

capGetAudioFormatSize() 공개 메소드

public capGetAudioFormatSize ( ) : int
리턴 int

capGetMCIDeviceName() 보호된 메소드

protected capGetMCIDeviceName ( StringBuilder szName, int wSize ) : bool
szName StringBuilder
wSize int
리턴 bool

capGetStatus() 보호된 메소드

protected capGetStatus ( CAPSTATUS &s ) : bool
s TOAPI.AviCap32.CAPSTATUS
리턴 bool

capGetUserData() 공개 메소드

public capGetUserData ( ) : bool
리턴 bool

capGetVideoFormat() 보호된 메소드

Retrieves a copy of the video format information.
protected capGetVideoFormat ( BITMAPINFO &s ) : int
s TOAPI.Types.BITMAPINFO
리턴 int

capGetVideoFormatSize() 보호된 메소드

Retrieve the size needed to hold the data structure representing the video format information.
protected capGetVideoFormatSize ( ) : int
리턴 int

capGrabFrame() 보호된 메소드

Grab a single frame from the device. Overlay and preview are stopped if they are currently active.
protected capGrabFrame ( ) : bool
리턴 bool

capGrabFrameNoStop() 보호된 메소드

Grab a single from from the device. Overlay and Preview are not stopped.
protected capGrabFrameNoStop ( ) : bool
리턴 bool

capOverlay() 보호된 메소드

protected capOverlay ( bool f ) : bool
f bool
리턴 bool

capPaletteAuto() 보호된 메소드

protected capPaletteAuto ( int iFrames, int &iColors ) : bool
iFrames int
iColors int
리턴 bool

capPaletteManual() 보호된 메소드

protected capPaletteManual ( int fGrab, int iColors ) : bool
fGrab int
iColors int
리턴 bool

capPaletteOpen() 보호된 메소드

protected capPaletteOpen ( string szName ) : bool
szName string
리턴 bool

capPalettePaste() 보호된 메소드

protected capPalettePaste ( ) : bool
리턴 bool

capPaletteSave() 보호된 메소드

protected capPaletteSave ( string szName ) : bool
szName string
리턴 bool

capPreview() 보호된 메소드

protected capPreview ( bool f ) : bool
f bool
리턴 bool

capPreviewRate() 보호된 메소드

protected capPreviewRate ( int wMS ) : bool
wMS int
리턴 bool

capPreviewScale() 보호된 메소드

protected capPreviewScale ( bool f ) : bool
f bool
리턴 bool

capSetAudioFormat() 공개 메소드

public capSetAudioFormat ( WAVEFORMATEX &s, int wSize ) : bool
s TOAPI.Types.WAVEFORMATEX
wSize int
리턴 bool

capSetMCIDeviceName() 보호된 메소드

protected capSetMCIDeviceName ( string szName ) : bool
szName string
리턴 bool

capSetScrollPos() 보호된 메소드

protected capSetScrollPos ( POINT &lpP ) : bool
lpP POINT
리턴 bool

capSetUserData() 공개 메소드

public capSetUserData ( int lUser ) : bool
lUser int
리턴 bool

capSetVideoFormat() 보호된 메소드

protected capSetVideoFormat ( BITMAPINFO &s ) : bool
s TOAPI.Types.BITMAPINFO
리턴 bool

프로퍼티 상세

fWindowHandle 보호되어 있는 프로퍼티

protected IntPtr,System fWindowHandle
리턴 System.IntPtr