Table of Contents

Class GLDeinterlaceBlock

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

OpenGL deinterlace block for GPU-accelerated interlaced video conversion. This block converts interlaced video (where odd and even lines are captured at different times) into progressive video using advanced OpenGL shader algorithms. Essential for processing legacy broadcast content, security camera footage, and older video formats. Provides multiple deinterlacing algorithms including line doubling, motion-adaptive, and temporal interpolation methods. Achieves superior quality and performance compared to CPU-based deinterlacing through GPU parallel processing. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class GLDeinterlaceBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

GLDeinterlaceBlock(GLDeinterlaceVideoEffect)

Initializes a new instance of the VisioForge.Core.MediaBlocks.OpenGL.GLDeinterlaceBlock class with the specified deinterlacing settings.

public GLDeinterlaceBlock(GLDeinterlaceVideoEffect settings)

Parameters

settings GLDeinterlaceVideoEffect

The deinterlace video effect settings containing algorithm parameters.

Properties

Input

Gets the input pad for connecting interlaced video sources to be processed.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads for this deinterlace block.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the output pad for connecting to downstream processing blocks.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads for this deinterlace block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the deinterlace configuration settings. Defines deinterlacing algorithms, field order, and processing parameters.

public GLDeinterlaceVideoEffect Settings { get; set; }

Property Value

GLDeinterlaceVideoEffect

Type

Gets the media block type identifier.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Constructs and initializes the OpenGL deinterlace element within the pipeline. This method creates the deinterlace filter with the specified algorithm settings, establishes input and output pads, and prepares the block for GPU-accelerated processing.

public override bool Build()

Returns

bool

true if the deinterlace element was successfully built and configured; false if initialization failed.

CleanUp()

Releases all resources and performs cleanup operations for this OpenGL deinterlace block. This method disposes of the deinterlace filter and resets 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 core BaseElement wrapper that provides additional functionality around the OpenGL deinterlace filter.

public BaseElement GetCore()

Returns

BaseElement

The BaseElement wrapper instance that encapsulates the deinterlace functionality.

GetElement()

Gets the underlying GStreamer element that performs the deinterlace operation.

public Element GetElement()

Returns

Element

The GStreamer Element instance representing the OpenGL deinterlace filter.

IsAvailable()

Determines whether this media block is available. Correct NuGet SDK redist should be included into your project. Checks for OpenGL support and GPU shader capabilities.

public static bool IsAvailable()

Returns

bool

true if OpenGL deinterlace functionality is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Associates this OpenGL deinterlace block with a pipeline and initializes its internal context. This method is called internally when the block is added to a pipeline.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The MediaBlocksPipeline instance that will manage this block.

See Also