프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | int |
public CaptureWebcam ( |
||
videoDevice | The video device to be the source. | |
리턴 | System |
protected OnPreviewWindowResize ( object sender, |
||
sender | object | |
e | ||
리턴 | void |
protected RemoveDownstream ( CoreStreaming filter, bool removeFirstFilter ) : void | ||
filter | CoreStreaming | |
removeFirstFilter | bool | |
리턴 | void |
public SampleCB ( double SampleTime, CoreStreaming pSample ) : int | ||
SampleTime | double | |
pSample | CoreStreaming | |
리턴 | int |
protected ExtendStreaming.ICaptureGraphBuilder2 CaptureGraphBuilder | ||
리턴 | ExtendStreaming.ICaptureGraphBuilder2 |
protected ExtendStreaming.IGraphBuilder GraphBuilder | ||
리턴 | ExtendStreaming.IGraphBuilder |
protected ControlStreaming.IMediaControl MediaControl | ||
리턴 | ControlStreaming.IMediaControl |
protected EditStreaming.ISampleGrabber SampGrabber | ||
리턴 | EditStreaming.ISampleGrabber |
protected CoreStreaming.IBaseFilter VideoCompressorFilter | ||
리턴 | CoreStreaming.IBaseFilter |
protected CoreStreaming.IBaseFilter VideoDeviceFilter | ||
리턴 | CoreStreaming.IBaseFilter |
protected ExtendStreaming.IAMStreamConfig VideoStreamConfig | ||
리턴 | ExtendStreaming.IAMStreamConfig |
protected ControlStreaming.IVideoWindow VideoWindow | ||
리턴 | ControlStreaming.IVideoWindow |