Table of Contents

Class GLVideoConverterBlock

Namespace
VisioForge.Core.MediaBlocks.OpenGL
Assembly
VisioForge.Core.dll

OpenGL-accelerated video format conversion block for high-performance pixel format and colorspace transformations. Provides GPU-accelerated video conversion capabilities including pixel format changes, colorspace transformations, chroma subsampling conversions, and color depth adjustments optimized for OpenGL pipeline processing. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class GLVideoConverterBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

GLVideoConverterBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.OpenGL.GLVideoConverterBlock class for GPU-accelerated video format conversion. Creates the necessary input and output pads for processing video with high-performance format transformations.

public GLVideoConverterBlock()

Properties

Input

Gets the primary input pad for receiving video frames to be format converted.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this block (single input for video processing).

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad for providing format-converted video frames.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block (single output for processed video).

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Type

Gets the media block type identifier for OpenGL video conversion operations.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the OpenGL video converter block within the pipeline context. Creates the GStreamer video converter element and establishes the necessary pad connections for processing video frames with GPU-accelerated format transformations.

public override bool Build()

Returns

bool

true if the video converter block was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the OpenGL video conversion operations, including GStreamer elements and GPU shader programs.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the OpenGL video converter block. Properly disposes of GStreamer elements and GPU format conversion 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 core GStreamer element wrapper for advanced configuration and monitoring.

public BaseElement GetCore()

Returns

BaseElement

The BaseElement wrapper providing access to the underlying GStreamer video converter.

GetElement()

Gets the native GStreamer element for direct GStreamer pipeline integration.

public Element GetElement()

Returns

Element

The native Gst.Element representing the OpenGL video converter filter.

IsAvailable()

Determines whether OpenGL video conversion functionality is available on the current system. Requires OpenGL support and appropriate GStreamer OpenGL video conversion plugins to be installed.

public static bool IsAvailable()

Returns

bool

true if video conversion operations are supported; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this OpenGL video converter block, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this video converter block.

See Also