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 DecklinkHelperInheritance
Inherited Members
Methods
GetVideoInfoFromMode(DecklinkMode, out int, out int, out VideoFrameRate)
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
modeDecklinkMode-
The DeckLink video mode to parse.
widthint-
When this method returns, contains the horizontal resolution in pixels for the specified mode.
heightint-
When this method returns, contains the vertical resolution in pixels for the specified mode.
framerateVideoFrameRate-
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.
ToFormat(DecklinkAudioFormat)
Converts a DeckLink audio format to the framework's internal AudioFormatX representation.
public static AudioFormatX ToFormat(this DecklinkAudioFormat format)Parameters
formatDecklinkAudioFormat-
The DeckLink audio format to convert.
Returns
- AudioFormatX
-
The corresponding AudioFormatX format. Returns S16LE as the default if the format is not recognized.