C# Class LitDev.Engines.Capture

Summary description for MainForm.
Inheritance: ISampleGrabberCB, IDisposable
Exibir arquivo Open project: litdev1/LitDev Class Usage Examples

Public Properties

Property Type Description
m_Dropped int

Public Methods

Method Description
Capture ( ) : System

Use capture device zero, default frame rate and size

Capture ( int iDeviceNum ) : System

Use specified capture device, default frame rate and size

Capture ( int iDeviceNum, int iFrameRate ) : System

Use specified capture device, specified frame rate and default size

Capture ( int iDeviceNum, int iFrameRate, int iWidth, int iHeight ) : System

Use specified capture device, specified frame rate and size

Dispose ( ) : void

release everything.

GetBitMap ( ) : IntPtr

capture the next image

Pause ( ) : void
Start ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CloseInterfaces ( ) : void

Shut down capture

ConfigureSampleGrabber ( ISampleGrabber sampGrabber ) : void
CopyMemory ( IntPtr Destination, IntPtr Source, int Length ) : void
ISampleGrabberCB ( double SampleTime, IMediaSample pSample ) : int

sample callback, NOT USED.

ISampleGrabberCB ( double SampleTime, IntPtr pBuffer, int BufferLen ) : int

buffer callback, COULD BE FROM FOREIGN THREAD.

SaveSizeInfo ( ISampleGrabber sampGrabber ) : void
SetConfigParms ( ICaptureGraphBuilder2 capGraph, IBaseFilter capFilter, int iFrameRate, int iWidth, int iHeight ) : void
SetupGraph ( DsDevice dev, int iFrameRate, int iWidth, int iHeight ) : void

build the capture graph for grabber.

_Capture ( int iDeviceNum, int iFrameRate, int iWidth, int iHeight ) : void

Method Details

Capture() public method

Use capture device zero, default frame rate and size
public Capture ( ) : System
return System

Capture() public method

Use specified capture device, default frame rate and size
public Capture ( int iDeviceNum ) : System
iDeviceNum int
return System

Capture() public method

Use specified capture device, specified frame rate and default size
public Capture ( int iDeviceNum, int iFrameRate ) : System
iDeviceNum int
iFrameRate int
return System

Capture() public method

Use specified capture device, specified frame rate and size
public Capture ( int iDeviceNum, int iFrameRate, int iWidth, int iHeight ) : System
iDeviceNum int
iFrameRate int
iWidth int
iHeight int
return System

Dispose() public method

release everything.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetBitMap() public method

capture the next image
public GetBitMap ( ) : IntPtr
return System.IntPtr

Pause() public method

public Pause ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Property Details

m_Dropped public_oe property

public int m_Dropped
return int