Property | Type | Description | |
---|---|---|---|
ActualGraphState | GraphState | ||
CaptureGraphBuilder | ExtendStreaming.ICaptureGraphBuilder2 | ||
GraphBuilder | ExtendStreaming.IGraphBuilder | ||
IsPreviewRendered | bool | ||
MediaControl | ControlStreaming.IMediaControl | ||
SampGrabber | EditStreaming.ISampleGrabber | ||
VideoCompressor | |||
VideoCompressorFilter | CoreStreaming.IBaseFilter | ||
VideoDeviceFilter | CoreStreaming.IBaseFilter | ||
VideoStreamConfig | ExtendStreaming.IAMStreamConfig | ||
VideoWindow | ControlStreaming.IVideoWindow | ||
WantPreviewRendered | bool |
Method | Description | |
---|---|---|
BufferCB ( double SampleTime, |
||
CaptureWebcam ( |
Default constructor of the Capture class.
|
|
Dispose ( ) : void |
Closes and cleans the video previewing.
|
|
GetFrame ( ) : |
Gets the current frame from the buffer.
|
|
PrepareCapture ( ) : void |
Prepares the capture of frames.
|
|
SampleCB ( double SampleTime, CoreStreaming pSample ) : int | ||
StartPreview ( ) : void |
Starts the video preview from the video source.
|
|
StopPreview ( ) : void |
Stops the video previewing.
|
Method | Description | |
---|---|---|
CreateGraph ( ) : void |
Create a new filter graph and add filters (devices, compressors, misc), but leave the filters unconnected. Call RenderGraph() to connect the filters.
|
|
DerenderGraph ( ) : void |
Disconnect and remove all filters except the device and compressor filters. This is the opposite of renderGraph(). Soem properties such as FrameRate can only be set when the device output pins are not connected.
|
|
DestroyGraph ( ) : void |
Completely tear down a filter graph and release all associated resources.
|
|
OnPreviewWindowResize ( object sender, |
Resize the preview when the PreviewWindow is resized
|
|
RemoveDownstream ( CoreStreaming filter, bool removeFirstFilter ) : void |
Removes all filters downstream from a filter from the graph. This is called only by DerenderGraph() to remove everything from the graph except the devices and compressors. The parameter "removeFirstFilter" is used to keep a compressor (that should be immediately downstream of the device) if one is begin used.
|
|
RenderGraph ( ) : void |
Connects the filters of a previously created graph (created by CreateGraph()). Once rendered the graph is ready to be used. This method may also destroy streams if we have streams we no longer want.
|
|
StartPreviewIfNeeded ( ) : void |
Setup and start the preview window if the user has requested it (by setting PreviewWindow).
|
public BufferCB ( double SampleTime, |
||
SampleTime | double | |
pBuffer | ||
BufferLen | int | |
return | int |
public CaptureWebcam ( |
||
videoDevice | The video device to be the source. | |
return | System |
protected OnPreviewWindowResize ( object sender, |
||
sender | object | |
e | ||
return | void |
protected RemoveDownstream ( CoreStreaming filter, bool removeFirstFilter ) : void | ||
filter | CoreStreaming | |
removeFirstFilter | bool | |
return | void |
public SampleCB ( double SampleTime, CoreStreaming pSample ) : int | ||
SampleTime | double | |
pSample | CoreStreaming | |
return | int |
protected ExtendStreaming.ICaptureGraphBuilder2 CaptureGraphBuilder | ||
return | ExtendStreaming.ICaptureGraphBuilder2 |
protected ExtendStreaming.IGraphBuilder GraphBuilder | ||
return | ExtendStreaming.IGraphBuilder |
protected ControlStreaming.IMediaControl MediaControl | ||
return | ControlStreaming.IMediaControl |
protected EditStreaming.ISampleGrabber SampGrabber | ||
return | EditStreaming.ISampleGrabber |
protected Filter,ScreenToGif.Webcam.DirectX VideoCompressor | ||
return |
protected CoreStreaming.IBaseFilter VideoCompressorFilter | ||
return | CoreStreaming.IBaseFilter |
protected CoreStreaming.IBaseFilter VideoDeviceFilter | ||
return | CoreStreaming.IBaseFilter |
protected ExtendStreaming.IAMStreamConfig VideoStreamConfig | ||
return | ExtendStreaming.IAMStreamConfig |
protected ControlStreaming.IVideoWindow VideoWindow | ||
return | ControlStreaming.IVideoWindow |