Class FishEyeBlock
- Assembly
- VisioForge.Core.dll
Video effect block that applies a fish-eye lens distortion to the video stream. This effect creates a wide-angle, barrel distortion similar to looking through a fish-eye camera lens, where the center of the image appears magnified and the edges are compressed with increasing curvature. The effect is non-configurable and applies a fixed distortion pattern. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.
public class FishEyeBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
FishEyeBlock()
Initializes a new instance of the VisioForge.Core.MediaBlocks.VideoProcessing.FishEyeBlock class. Creates a fish-eye distortion effect with fixed parameters. The effect cannot be configured and will apply a standard barrel distortion pattern to all processed video frames.
public FishEyeBlock()Properties
Input
Gets the single video input pad for this block.
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets all input pads. This block has a single video input.
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the single video output pad for this block.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads. This block has a single video output.
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the block type identifier for this fish-eye effect block.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds this instance.
public override bool Build()Returns
- bool
-
trueif successful,falseotherwise.
CleanUp()
Releases all internal resources and disposes of the fish-eye filter element. Called during disposal to ensure proper cleanup of native resources.
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 core BaseElement wrapper for the fish-eye filter.
public BaseElement GetCore()Returns
- BaseElement
-
The FishEyeFilter element that performs the video distortion.
GetElement()
Gets the underlying GStreamer element for this fish-eye block.
public Element GetElement()Returns
- Element
-
The GStreamer element that performs the fish-eye distortion.
IsAvailable()
Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.
public static bool IsAvailable()Returns
- bool
-
trueif this media block is available; otherwise,false.
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the pipeline context for this block, providing access to shared resources.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline-
The MediaBlocksPipeline that owns this block.