Table of Contents

Class DecklinkVideoSinkBlock

Namespace
VisioForge.Core.MediaBlocks.Decklink
Assembly
VisioForge.Core.dll

Provides video output capabilities for Blackmagic DeckLink hardware devices. This block accepts video streams and outputs them through professional DeckLink capture/playback cards, supporting high-quality video output for broadcast and professional video production workflows. Supports various video formats, resolutions, and frame rates as supported by the DeckLink hardware. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class DecklinkVideoSinkBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

Initializes a new instance of the VisioForge.Core.MediaBlocks.Decklink.DecklinkVideoSinkBlock class. Creates a new DeckLink video sink block configured with the specified settings.

public DecklinkVideoSinkBlock(DecklinkVideoSinkSettings settings)

Parameters

settings DecklinkVideoSinkSettings

The configuration settings specifying device, format, and video output parameters.

Properties

Gets the primary input pad for receiving video data. This sink block has a single input pad for video streams.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Gets an array containing all input pads for this block. DecklinkVideoSink has a single video input pad.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Gets the primary output pad. Returns null as this is a sink block with no outputs. Video data is sent directly to the DeckLink hardware.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Gets an array of output pads. Returns an empty array as this is a sink block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Gets or sets the configuration settings for the DeckLink video output. These settings control device selection, video format, resolution, frame rate, and other output parameters.

public DecklinkVideoSinkSettings Settings { get; set; }

Property Value

DecklinkVideoSinkSettings

Gets the media block type identifier for this DeckLink video sink.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Builds and initializes the DeckLink video sink element within the pipeline. This method creates the GStreamer element, configures it with the specified settings, and establishes the input pad connections.

public override bool Build()

Returns

bool

true if the build was successful; false if initialization failed.

Performs cleanup of internal resources including the GStreamer element. This method releases the DeckLink hardware resources and resets the build state.

public void CleanUp()

Releases unmanaged and - optionally - managed resources. Ensures proper cleanup of DeckLink hardware resources and GStreamer elements.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Gets the core GStreamer element wrapper for advanced manipulation. This provides access to the underlying DecklinkVideoSink element for direct GStreamer operations.

public BaseElement GetCore()

Returns

BaseElement

The BaseElement wrapper containing the DecklinkVideoSink GStreamer element.

Asynchronously enumerates all available DeckLink video output devices on the system. This method scans for DeckLink hardware capable of video output and returns device information.

public static Task<DecklinkVideoSinkInfo[]> GetDevicesAsync()

Returns

Task<DecklinkVideoSinkInfo[]>

A task that returns an array of VisioForge.Core.Types.X.Decklink.DecklinkVideoSinkInfo objects describing available devices.

Gets the raw GStreamer element for direct GStreamer API access. Use with caution as direct manipulation may interfere with the MediaBlocks pipeline.

public Element GetElement()

Returns

Element

The underlying GStreamer Gst.Element instance.

Determines whether DeckLink video output functionality is available on the current system. This checks for the presence of required DeckLink drivers and GStreamer plugins. Correct NuGet SDK redist should be included into your project.

public static bool IsAvailable()

Returns

bool

true if DeckLink video output is available; otherwise, false.

Sets the pipeline context for this media block. This internal method is called by the MediaBlocks framework to establish the pipeline relationship.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The MediaBlocksPipeline that owns this block.

See Also