Table of Contents

Class DecklinkHelper

Namespace
VisioForge.Core.Helpers
Assembly
VisioForge.Core.dll

Provides helper methods for working with Blackmagic DeckLink professional video hardware. This class contains extension methods and utilities for converting between DeckLink-specific formats and the framework's internal format representations.

public static class DecklinkHelper

Inheritance

Inherited Members

Methods

Extracts video format information from a DeckLink video mode. This method parses the DeckLink mode enumeration and returns the corresponding video resolution (width and height) and frame rate for the specified mode.

public static void GetVideoInfoFromMode(this DecklinkMode mode, out int width, out int height, out VideoFrameRate framerate)

Parameters

mode DecklinkMode

The DeckLink video mode to parse.

width int

When this method returns, contains the horizontal resolution in pixels for the specified mode.

height int

When this method returns, contains the vertical resolution in pixels for the specified mode.

framerate VideoFrameRate

When this method returns, contains the frame rate information for the specified mode.

Remarks

Supports standard definition (NTSC/PAL), HD (720p/1080i/1080p), 2K DCI, and UHD 4K formats. For unrecognized modes, returns width=0, height=0, and framerate=25fps.

Converts a DeckLink audio format to the framework's internal AudioFormatX representation.

public static AudioFormatX ToFormat(this DecklinkAudioFormat format)

Parameters

format DecklinkAudioFormat

The DeckLink audio format to convert.

Returns

AudioFormatX

The corresponding AudioFormatX format. Returns S16LE as the default if the format is not recognized.