Table of Contents

Class VAAPIHEVCDecoderBlock

Namespace
VisioForge.Core.MediaBlocks.Sources
Assembly
VisioForge.Core.dll

VAAPI HEVC/H.265 hardware decoder block for Linux systems using Video Acceleration API. This block provides GPU-accelerated HEVC (High Efficiency Video Coding) decoding through VA-API, enabling efficient playback of H.265 content with minimal CPU usage. Supports Intel Gen7+ GPUs, AMD GCN+, and NVIDIA GPUs with appropriate drivers. Features include support for HEVC Main, Main 10 (10-bit), Main 12, Main 4:2:2 10, Main 4:4:4, and Main Still Picture profiles, HDR support (HDR10, HLG), resolutions up to 8K, and efficient decoding of modern streaming and UHD Blu-ray content. Essential for 4K/8K video players, streaming applications, video editors, and any Linux application requiring efficient HEVC decoding for next-generation video content. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class VAAPIHEVCDecoderBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

VAAPIHEVCDecoderBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.VAAPIHEVCDecoderBlock class.

public VAAPIHEVCDecoderBlock()

Properties

Input

Gets the input.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets the inputs.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the output.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets the outputs.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Type

Gets the type.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Constructs and initializes the VAAPI HEVC decoder and its associated GStreamer elements. This method creates the hardware decoder, establishes input and output pads, and prepares the block for GPU-accelerated HEVC/H.265 decoding through the Linux VA-API interface.

public override bool Build()

Returns

bool

true if the decoder was successfully built and configured; false if initialization failed.

CleanUp()

Releases all resources and performs cleanup operations for this VAAPI HEVC decoder block. This method disposes of the GStreamer elements and releases VA-API resources.

public void CleanUp()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

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

GetCore()

Gets the core BaseElement wrapper that provides additional functionality around the GStreamer VAAPI HEVC decoder element.

public BaseElement GetCore()

Returns

BaseElement

The BaseElement wrapper instance that encapsulates the GStreamer VAAPI HEVC decoder.

GetElement()

Gets the underlying GStreamer element that performs VAAPI HEVC hardware decoding.

public Element GetElement()

Returns

Element

The GStreamer Element instance representing the VAAPI HEVC decoder.

IsAvailable()

Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.

public static bool IsAvailable()

Returns

bool

true if this media block is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Associates this VAAPI HEVC decoder block with a pipeline and initializes its internal context. This method is called internally when the block is added to a pipeline.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The MediaBlocksPipeline instance that will manage this block.

See Also