Table of Contents

Class CodecAlphaDemuxBlock

Namespace
VisioForge.Core.MediaBlocks.VideoProcessing
Assembly
VisioForge.Core.dll

Codec alpha demultiplexer block that separates VP8/VP9 encoded streams with alpha channel into two separate streams: one containing color data and one containing alpha channel data. This block is used to extract and separate the alpha channel from encoded VP8/VP9 streams for independent processing or decoding.

Supported features: VP8/VP9 alpha demuxing from WebM/MKV containers

Use cases: Custom alpha processing, separate color/alpha decoding pipelines

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

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

CodecAlphaDemuxBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.VideoProcessing.CodecAlphaDemuxBlock class. This constructor creates a codec alpha demux block that separates color and alpha streams.

public CodecAlphaDemuxBlock()

Properties

AlphaOutput

Gets the alpha output pad that provides the alpha channel stream.

public MediaBlockPad AlphaOutput { get; }

Property Value

MediaBlockPad

Input

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

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this block.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad that provides the color stream.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Type

Gets the media block type identifier for this codec alpha demux block.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the codec alpha demux element within the pipeline, creating the necessary GStreamer elements and configuring the pads.

public override bool Build()

Returns

bool

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

CleanUp()

Performs cleanup of internal resources, disposing of the 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 codec alpha demux element instance.

GetElement()

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

public Element GetElement()

Returns

Element

The underlying GStreamer codec alpha demux element.

IsAvailable()

Determines whether the codec alpha demux element is available on the current system. This method checks for the presence of the codecalphademux 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 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 block.

See Also