프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 SourceCollection,DirectX.Capture audioSources | ||
리턴 |
protected ICaptureGraphBuilder2 captureGraphBuilder | ||
리턴 | ICaptureGraphBuilder2 |
protected VideoCapabilities,DirectX.Capture previewCaps | ||
리턴 | DirectX.Capture.VideoCapabilities |
protected Control,System.Windows.Forms previewWindow | ||
리턴 |
protected PropertyPageCollection,DirectX.Capture propertyPages | ||
리턴 |
protected VideoCapabilities,DirectX.Capture videoCaps | ||
리턴 | DirectX.Capture.VideoCapabilities |
protected SourceCollection,DirectX.Capture videoSources | ||
리턴 |