Table of Contents

Class GLStretchBlock

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

OpenGL-accelerated stretch geometric distortion effect block for creating expansion and stretching visual effects. Applies radial expansion transformations that stretch or expand portions of the video away from a central point, creating dramatic perspective distortions, magnification effects, and artistic geometric manipulations for dynamic visual impact. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class GLStretchBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

GLStretchBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.OpenGL.GLStretchBlock class for stretch expansion distortion effects. Creates the necessary input and output pads for video processing with radial expansion and stretching transformations.

public GLStretchBlock()

Properties

Input

Gets the primary input pad for receiving video frames to be expanded and stretched.

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 stretch-distorted 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 stretch effects.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the OpenGL stretch expansion effect block within the pipeline context. Creates the GStreamer stretch filter and establishes the necessary pad connections for processing video frames with radial expansion and stretching distortions.

public override bool Build()

Returns

bool

true if the stretch expansion effect block was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the OpenGL stretch expansion effect, including GStreamer elements and GPU shader programs.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the OpenGL stretch expansion effect block. Properly disposes of GStreamer elements and GPU geometric transformation 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 stretch filter.

GetElement()

Gets the native GStreamer element for direct GStreamer pipeline integration.

public Element GetElement()

Returns

Element

The native Gst.Element representing the stretch expansion effect filter.

IsAvailable()

Determines whether OpenGL stretch expansion effect functionality is available on the current system. Requires OpenGL support and appropriate GStreamer OpenGL geometric distortion plugins to be installed.

public static bool IsAvailable()

Returns

bool

true if stretch expansion effects are supported; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this OpenGL stretch expansion effect block, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this stretch expansion effect block.

See Also