Class SpinnakerSourceBlock
- Namespace
- VisioForge.Core.MediaBlocks.Sources
- Assembly
- VisioForge.Core.dll
Spinnaker source block for FLIR/Teledyne industrial and scientific cameras using the Spinnaker SDK. Provides high-performance image acquisition from FLIR machine vision cameras for thermal imaging, scientific analysis, industrial inspection, and computer vision applications with advanced camera control and synchronization features. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.
public class SpinnakerSourceBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
SpinnakerSourceBlock(SpinnakerSourceSettings)
Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.SpinnakerSourceBlock class with custom camera settings. Configures the Spinnaker source for FLIR camera acquisition with specified parameters.
public SpinnakerSourceBlock(SpinnakerSourceSettings settings)Parameters
settingsSpinnakerSourceSettings-
The Spinnaker settings controlling camera selection, image format, and acquisition parameters.
Properties
Input
Gets the primary input pad (none for source blocks that capture from cameras).
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets all input pads available on this block (none for source blocks).
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the primary video output pad for the camera stream.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads available on this block (single video output for camera).
public override MediaBlockPad[] Outputs { get; }Property Value
Settings
Gets or sets the Spinnaker configuration settings that control camera parameters and acquisition mode.
public SpinnakerSourceSettings Settings { get; set; }Property Value
Type
Gets the media block type identifier for Spinnaker source operations.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds and initializes the Spinnaker source within the pipeline context. Connects to FLIR camera, configures acquisition parameters, and prepares video output for downstream processing.
public override bool Build()Returns
- bool
-
trueif the Spinnaker source was successfully built and configured; otherwise,false.
CleanUp()
Cleans up all resources associated with the Spinnaker operations, including camera handles and image buffers.
public void CleanUp()Dispose(bool)
Releases unmanaged and managed resources used by the Spinnaker source. Properly closes camera connection and disposes of GStreamer elements and acquisition 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 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 Spinnaker source GStreamer element.
IsAvailable()
Determines whether Spinnaker support is available on the current system. Requires Spinnaker SDK and GStreamer Spinnaker plugin to be installed.
public static bool IsAvailable()Returns
- bool
-
trueif Spinnaker support is available; otherwise,false.
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the pipeline context for this Spinnaker source, providing access to the parent pipeline and logging context.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline-
The parent MediaBlocks pipeline containing this Spinnaker source.