Table of Contents

Class AlliedVisionSourceBlock

Namespace
VisioForge.Core.MediaBlocks.Sources
Assembly
VisioForge.Core.dll

Allied Vision industrial camera source block for professional video capture with GenICam-compatible cameras. Provides high-performance video acquisition from Allied Vision cameras with advanced imaging features for machine vision, industrial automation, scientific imaging, and quality control applications using GigE Vision and USB3 Vision standards. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class AlliedVisionSourceBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

AlliedVisionSourceBlock(AlliedVisionSourceSettings)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.AlliedVisionSourceBlock class with custom camera settings. Configures the Allied Vision camera source for professional video capture with specified imaging parameters.

public AlliedVisionSourceBlock(AlliedVisionSourceSettings settings)

Parameters

settings AlliedVisionSourceSettings

The Allied Vision camera settings controlling device selection, resolution, frame rate, and capture parameters.

Properties

Input

Gets the primary input pad (none for source blocks that generate media).

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this block (none for source blocks).

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary video output pad for the Allied Vision camera stream.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

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

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the Allied Vision camera configuration settings that control camera parameters and capture options.

public AlliedVisionSourceSettings Settings { get; set; }

Property Value

AlliedVisionSourceSettings

Type

Gets the media block type identifier for Allied Vision camera source operations.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the Allied Vision camera source within the pipeline context. Opens camera connection, configures capture parameters, and establishes video output for downstream processing.

public override bool Build()

Returns

bool

true if the Allied Vision camera source was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the Allied Vision camera operations, including camera connection and video buffers.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the Allied Vision camera source. Properly closes camera connection and disposes of GStreamer elements and camera 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

Always null for composite source blocks with multiple internal elements.

GetElement()

Gets the native GStreamer element for direct GStreamer pipeline integration.

public Element GetElement()

Returns

Element

The Allied Vision camera source GStreamer element.

IsAvailable()

Determines whether Allied Vision camera support is available on the current system. Requires Allied Vision Vimba SDK and compatible camera drivers to be installed and functional.

public static bool IsAvailable()

Returns

bool

true if Allied Vision camera support is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this Allied Vision camera source, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this Allied Vision camera source.

See Also