Class NVVP9DecoderBlock
- Assembly
- VisioForge.Core.dll
NVIDIA hardware-accelerated VP9 video decoder block using NVDEC technology. This block leverages NVIDIA GPU hardware decoding capabilities to efficiently decode VP9 video streams with minimal CPU usage. VP9 is Google's successor to VP8, offering better compression efficiency and supporting resolutions up to 8K, HDR content, and 10/12-bit color depths.
Hardware requirements: NVIDIA GPU with VP9 NVDEC support (GTX 10xx series or newer, some GTX 960/950)
Supported profiles: Profile 0 (8-bit 4:2:0), Profile 2 (10/12-bit 4:2:0), supports HDR10
Performance: Can decode 4K@60fps or 8K@30fps depending on GPU model, multiple streams supported
Use cases: YouTube 4K/8K playback, WebM video, streaming services, HDR content delivery
Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.public class NVVP9DecoderBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
NVVP9DecoderBlock()
Initializes a new instance of the VisioForge.Core.MediaBlocks.VideoDecoders.NVVP9DecoderBlock class. The decoder requires an NVIDIA GPU with VP9 NVDEC support (typically GTX 10xx series or newer). Some GTX 960/950 models also support VP9 hardware decoding.
public NVVP9DecoderBlock()Properties
Input
Gets the primary input pad for receiving VP9 encoded video data.
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets all input pads available on this hardware decoder block.
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the primary output pad that provides hardware-decoded video frames.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads available on this hardware decoder block.
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the media block type identifier for this NVIDIA VP9 hardware decoder.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds and initializes the NVIDIA hardware decoder within the pipeline, allocating GPU resources and configuring NVDEC for VP9 decoding.
public override bool Build()Returns
- bool
-
trueif the hardware decoder was successfully initialized;falseif 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
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
GetCore()
Gets the underlying GStreamer NVDEC element for advanced GPU configuration.
public BaseElement GetCore()Returns
- BaseElement
-
The core NVIDIA VP9 hardware decoder element instance.
GetElement()
Gets the native GStreamer NVDEC element for direct hardware manipulation.
public Element GetElement()Returns
- Element
-
The underlying GStreamer NVIDIA VP9 decoder element.
IsAvailable()
Determines whether NVIDIA hardware VP9 decoding is available on the current system. This method checks for compatible NVIDIA GPU hardware with VP9 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
-
trueif NVIDIA VP9 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
pipelineMediaBlocksPipeline-
The parent MediaBlocksPipeline that manages GPU resources.