Class DecklinkVideoSourceDialog
- Assembly
- VisioForge.Core.dll
Provides a WPF dialog for configuring Decklink video input devices. This dialog allows users to select and configure Decklink video and audio input devices for use in media capture and processing pipelines.
public class DecklinkVideoSourceDialog : Window, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IDisposable, IComponentConnectorInheritance
Implements
Inherited Members
Remarks
The dialog provides asynchronous methods to retrieve device settings and implements the IDisposable pattern for proper resource management.
Constructors
DecklinkVideoSourceDialog()
Initializes a new instance of the VisioForge.Core.UI.WPF.Dialogs.Decklink.DecklinkVideoSourceDialog class. Sets up the dialog components and prepares the UI for user interaction.
public DecklinkVideoSourceDialog()Properties
AudioDevice
Gets the name of the selected audio input device.
public string AudioDevice { get; }Property Value
VideoDevice
Gets the name of the selected video input device.
public string VideoDevice { get; }Property Value
VideoMode
Gets the selected video mode for the Decklink video input device.
public DecklinkMode VideoMode { get; }Property Value
Methods
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Implements the IDisposable pattern by calling the protected Dispose method and suppressing finalization.
public void Dispose()~DecklinkVideoSourceDialog()
Finalizes an instance of the VisioForge.Core.UI.WPF.Dialogs.Decklink.DecklinkVideoSourceDialog class. Called by the garbage collector to perform cleanup before the object is reclaimed.
protected ~DecklinkVideoSourceDialog()GetAudioDeviceSettingsAsync()
Asynchronously retrieves the audio device settings for the selected Decklink audio input device.
public Task<DecklinkAudioSourceSettings> GetAudioDeviceSettingsAsync()Returns
- Task<DecklinkAudioSourceSettings>
-
A Task<TResult> that represents the asynchronous operation. The task result contains the audio source settings for the selected device, or null if no device is selected.
GetVideoDeviceSettingsAsync()
Asynchronously retrieves the video device settings for the selected Decklink video input device.
public Task<DecklinkVideoSourceSettings> GetVideoDeviceSettingsAsync()Returns
- Task<DecklinkVideoSourceSettings>
-
A Task<TResult> that represents the asynchronous operation. The task result contains the video source settings for the selected device, or null if no device is selected.
InitializeComponent()
InitializeComponent
public void InitializeComponent()