Свойство | Тип | Описание | |
---|---|---|---|
dxUtils | DirectX.Capture.DxUtils |
Свойство | Тип | Описание | |
---|---|---|---|
audioCaps | |||
audioCompressor | |||
audioCompressorFilter | IBaseFilter | ||
audioDevice | |||
audioDeviceFilter | IBaseFilter | ||
audioSources | |||
audioStreamConfig | IAMStreamConfig | ||
captureGraphBuilder | ICaptureGraphBuilder2 | ||
fileWriterFilter | IFileSinkFilter | ||
filename | string | ||
graphBuilder | IGraphBuilder | ||
graphState | GraphState | ||
isCaptureRendered | bool | ||
isPreviewRendered | bool | ||
mediaControl | IMediaControl | ||
muxFilter | IBaseFilter | ||
previewCaps | DirectX.Capture.VideoCapabilities | ||
previewStreamConfig | IAMStreamConfig | ||
previewWindow | |||
propertyPages | |||
recFileMode | RecFileModeType | ||
rotCookie | DsROTEntry | ||
rotCookie | int | ||
sampGrabber | ISampleGrabber | ||
tuner | |||
tvAudio | IAMTVAudio | ||
videoCaps | DirectX.Capture.VideoCapabilities | ||
videoCompressor | |||
videoCompressorFilter | IBaseFilter | ||
videoDevice | |||
videoDeviceFilter | IBaseFilter | ||
videoSources | |||
videoStreamConfig | IAMStreamConfig | ||
videoWindow | IVideoWindow | ||
wantCaptureRendered | bool | ||
wantPreviewRendered | bool |
Метод | Описание | |
---|---|---|
Capture ( |
Create a new Capture object. videoDevice and audioDevice can be null if you do not wish to capture both audio and video. However at least one must be a valid device. Use the Filters class to list available devices.
|
|
Cue ( ) : void |
Prepare for capturing. Use this method when capturing must begin as quickly as possible. This will create/overwrite a zero byte file with the name set in the Filename property. This will disable preview. Preview will resume once capture begins. This problem can be fixed if someone is willing to make the change. This method is optional. If Cue() is not called, Start() will call it before capturing. This method cannot be called while capturing. |
|
DisableEvent ( ) : void |
Disable grabbing next frame
|
|
Dispose ( ) : void |
Calls Stop, releases all references. If a capture is in progress it will be stopped, but the CaptureComplete event will NOT fire.
|
|
DisposeSampleGrabber ( ) : void |
Dispose Sample Grabber specific data
|
|
GrapImg ( ) : void |
Allocate memory space and set SetCallBack
|
|
ShowPropertyPage ( int filter, |
Show property page of object
|
|
Start ( ) : void |
Begin capturing.
|
|
Stop ( ) : void |
Stop the current capture capture. If there is no current capture, this method will succeed.
|
Метод | Описание | |
---|---|---|
assertStopped ( ) : void |
Assert that the class is in a Stopped state.
|
|
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.
|
|
getStreamConfigSetting ( IAMStreamConfig streamConfig, string fieldName ) : object |
Retrieves the value of one member of the IAMStreamConfig format block. Helper function for several properties that expose video/audio settings from IAMStreamConfig.GetFormat(). IAMStreamConfig.GetFormat() returns a AMMediaType struct. AMMediaType.formatPtr points to a format block structure. This format block structure may be one of several types, the type being determined by AMMediaType.formatType.
|
|
getTempFilename ( ) : string |
Get a valid temporary filename (with path). We aren't using Path.GetTempFileName() because it creates a 0-byte file
|
|
onPreviewWindowResize ( object sender, |
Resize the preview when the PreviewWindow is resized
|
|
removeDownstream ( IBaseFilter 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.
|
|
setStreamConfigSetting ( IAMStreamConfig streamConfig, string fieldName, object newValue ) : object |
Set the value of one member of the IAMStreamConfig format block. Helper function for several properties that expose video/audio settings from IAMStreamConfig.GetFormat(). IAMStreamConfig.GetFormat() returns a AMMediaType struct. AMMediaType.formatPtr points to a format block structure. This format block structure may be one of several types, the type being determined by AMMediaType.formatType.
|
|
startPreviewIfNeeded ( ) : void |
Setup and start the preview window if the user has requested it (by setting PreviewWindow).
|
Метод | Описание | |
---|---|---|
AddDeInterlaceFilter ( ) : bool | ||
ISampleGrabberCB ( double SampleTime, IMediaSample pSample ) : int | ||
ISampleGrabberCB ( double SampleTime, |
||
InitSampleGrabber ( ) : bool | ||
InitVideoRenderer ( ) : bool | ||
SetMediaSampleGrabber ( ) : void | ||
getMediaSubType ( IAMStreamConfig streamConfig ) : DxUtils.ColorSpaceEnum | ||
setMediaSubType ( IAMStreamConfig streamConfig, DirectX.Capture.DxUtils newValue ) : void |
public Capture ( |
||
videoDevice | ||
audioDevice | ||
audioViaPci | bool | |
Результат | System |
public ShowPropertyPage ( int filter, |
||
filter | int | |
o | ||
Результат | bool |
protected getStreamConfigSetting ( IAMStreamConfig streamConfig, string fieldName ) : object | ||
streamConfig | IAMStreamConfig | |
fieldName | string | |
Результат | object |
protected onPreviewWindowResize ( object sender, |
||
sender | object | |
e | ||
Результат | void |
protected removeDownstream ( IBaseFilter filter, bool removeFirstFilter ) : void | ||
filter | IBaseFilter | |
removeFirstFilter | bool | |
Результат | void |
protected setStreamConfigSetting ( IAMStreamConfig streamConfig, string fieldName, object newValue ) : object | ||
streamConfig | IAMStreamConfig | |
fieldName | string | |
newValue | object | |
Результат | object |
protected AudioCapabilities,DirectX.Capture audioCaps | ||
Результат |
protected Filter,DirectX.Capture audioCompressor | ||
Результат |
protected IBaseFilter audioCompressorFilter | ||
Результат | IBaseFilter |
protected SourceCollection,DirectX.Capture audioSources | ||
Результат |
protected IAMStreamConfig audioStreamConfig | ||
Результат | IAMStreamConfig |
protected ICaptureGraphBuilder2 captureGraphBuilder | ||
Результат | ICaptureGraphBuilder2 |
protected IFileSinkFilter fileWriterFilter | ||
Результат | IFileSinkFilter |
protected VideoCapabilities,DirectX.Capture previewCaps | ||
Результат | DirectX.Capture.VideoCapabilities |
protected IAMStreamConfig previewStreamConfig | ||
Результат | IAMStreamConfig |
protected Control,System.Windows.Forms previewWindow | ||
Результат |
protected PropertyPageCollection,DirectX.Capture propertyPages | ||
Результат |
protected VideoCapabilities,DirectX.Capture videoCaps | ||
Результат | DirectX.Capture.VideoCapabilities |
protected Filter,DirectX.Capture videoCompressor | ||
Результат |
protected IBaseFilter videoCompressorFilter | ||
Результат | IBaseFilter |
protected SourceCollection,DirectX.Capture videoSources | ||
Результат |
protected IAMStreamConfig videoStreamConfig | ||
Результат | IAMStreamConfig |