Class VP8AlphaDecodeBinBlock
- Assembly
- VisioForge.Core.dll
VP8 alpha decode bin block that automatically decodes VP8 video streams with alpha channel. This block handles VP8 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: VP8 with alpha channel in WebM/MKV containers
Use cases: Transparent video overlays, video compositing, WebM with alpha
Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.public class VP8AlphaDecodeBinBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
VP8AlphaDecodeBinBlock()
Initializes a new instance of the VisioForge.Core.MediaBlocks.VideoDecoders.VP8AlphaDecodeBinBlock class. This constructor creates a VP8 alpha decoder that automatically handles streams with transparency.
public VP8AlphaDecodeBinBlock()Properties
Input
Gets the primary input pad for receiving VP8 encoded video data with alpha.
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets all input pads available on this decoder block.
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the primary output pad that provides decoded raw video frames with alpha.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads available on this decoder block.
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the media block type identifier for this VP8 alpha decoder.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds and initializes the VP8 alpha decode bin element within the pipeline, creating the necessary GStreamer elements and configuring the pads.
public override bool Build()Returns
- bool
-
trueif the decoder was successfully built and initialized;falseif 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
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
GetCore()
Gets the underlying GStreamer element for advanced configuration and control.
public BaseElement GetCore()Returns
- BaseElement
-
The core VP8 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 VP8 alpha decode bin element.
IsAvailable()
Determines whether the VP8 alpha decode bin element is available on the current system. This method checks for the presence of the vp8alphadecodebin GStreamer element. Ensure the appropriate GStreamer codec alpha plugin is installed.
public static bool IsAvailable()Returns
- bool
-
trueif 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
pipelineMediaBlocksPipeline-
The parent MediaBlocksPipeline that contains this decoder.