Table of Contents

Class VP9AlphaDecodeBinBlock

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

VP9 alpha decode bin block that automatically decodes VP9 video streams with alpha channel. This block handles VP9 streams encoded with alpha transparency, automatically demultiplexing and decoding both color and alpha channels to produce RGBA video output. Essential for WebM video with transparency, overlays, and compositing effects.

Supported features: VP9 with alpha channel in WebM/MKV containers

Use cases: Transparent video overlays, video compositing, WebM with alpha, 4K transparent video

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

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

VP9AlphaDecodeBinBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.VideoDecoders.VP9AlphaDecodeBinBlock class. This constructor creates a VP9 alpha decoder that automatically handles streams with transparency.

public VP9AlphaDecodeBinBlock()

Properties

Input

Gets the primary input pad for receiving VP9 encoded video data with alpha.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this decoder block.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad that provides decoded raw video frames with alpha.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this decoder block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Type

Gets the media block type identifier for this VP9 alpha decoder.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the VP9 alpha decode bin element within the pipeline, creating the necessary GStreamer elements and configuring the pads.

public override bool Build()

Returns

bool

true if the decoder was successfully built and initialized; false if an error occurred.

CleanUp()

Performs cleanup of internal resources, disposing of the decoder element and resetting the build state.

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 element for advanced configuration and control.

public BaseElement GetCore()

Returns

BaseElement

The core VP9 alpha decode bin element instance.

GetElement()

Gets the native GStreamer element for direct manipulation and advanced use cases.

public Element GetElement()

Returns

Element

The underlying GStreamer VP9 alpha decode bin element.

IsAvailable()

Determines whether the VP9 alpha decode bin element is available on the current system. This method checks for the presence of the vp9alphadecodebin GStreamer element. Ensure the appropriate GStreamer codec alpha plugin is installed.

public static bool IsAvailable()

Returns

bool

true if the element is available and can be used; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this decoder block, establishing the connection to the parent pipeline and enabling access to shared resources.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocksPipeline that contains this decoder.

See Also