Table of Contents

Class NVAV1DecoderBlock

Namespace
VisioForge.Core.MediaBlocks.VideoDecoders
Assembly
VisioForge.Core.dll

NVIDIA hardware-accelerated AV1 video decoder block using NVDEC technology. This block leverages NVIDIA GPU hardware decoding capabilities to efficiently decode AV1 video streams with minimal CPU usage. AV1 is an open, royalty-free video coding format designed for video transmissions over the Internet, offering superior compression efficiency compared to H.264 and VP9, with support for up to 8K resolution and HDR content.

Hardware requirements: NVIDIA GPU with AV1 NVDEC support (RTX 30xx series or newer)

Supported profiles: Main Profile (8-bit and 10-bit 4:2:0), supports HDR10/HDR10+

Performance: Can decode 4K@120fps or 8K@60fps depending on GPU model, multiple streams supported

Use cases: Streaming services (Netflix, YouTube), next-gen video content, HDR/8K delivery

Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.
public class NVAV1DecoderBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

NVAV1DecoderBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.VideoDecoders.NVAV1DecoderBlock class. The decoder requires an NVIDIA GPU with AV1 NVDEC support (typically RTX 30xx series or newer). AV1 hardware decoding provides significant performance benefits for next-generation video content.

public NVAV1DecoderBlock()

Properties

Input

Gets the primary input pad for receiving AV1 encoded video data.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this hardware decoder block.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad that provides hardware-decoded video frames.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this hardware decoder block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Type

Gets the media block type identifier for this NVIDIA AV1 hardware decoder.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the NVIDIA hardware decoder within the pipeline, allocating GPU resources and configuring NVDEC for AV1 decoding.

public override bool Build()

Returns

bool

true if the hardware decoder was successfully initialized; false if GPU resources are unavailable.

CleanUp()

Performs cleanup of GPU resources, releasing NVDEC hardware decoder and freeing allocated GPU memory.

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 underlying GStreamer NVDEC element for advanced GPU configuration.

public BaseElement GetCore()

Returns

BaseElement

The core NVIDIA AV1 hardware decoder element instance.

GetElement()

Gets the native GStreamer NVDEC element for direct hardware manipulation.

public Element GetElement()

Returns

Element

The underlying GStreamer NVIDIA AV1 decoder element.

IsAvailable()

Determines whether NVIDIA hardware AV1 decoding is available on the current system. This method checks for compatible NVIDIA GPU hardware with AV1 support, NVDEC capability, and required drivers. Ensure the NVIDIA Video Codec SDK redistribution package is included in your project.

public static bool IsAvailable()

Returns

bool

true if NVIDIA AV1 hardware decoding is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this hardware decoder block, establishing GPU resource management and pipeline integration.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocksPipeline that manages GPU resources.

See Also