Table of Contents

Class DVBSourceBlock

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

DVB (Digital Video Broadcasting) source block for professional television and satellite signal reception. Provides digital television tuning and streaming capabilities for DVB-T, DVB-C, DVB-S, and DVB-S2 standards with advanced signal processing for broadcast television, surveillance, and professional streaming applications. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class DVBSourceBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

DVBSourceBlock(DVBSourceSettings)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.DVBSourceBlock class with custom tuning settings. Configures the DVB source for digital television reception with specified frequency and modulation parameters.

public DVBSourceBlock(DVBSourceSettings settings)

Parameters

settings DVBSourceSettings

The DVB settings controlling tuner selection, frequency, modulation, and signal processing parameters.

Properties

Input

Gets the primary input pad (none for source blocks that receive signals).

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 digital television stream.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block (single output for digital television).

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the DVB configuration settings that control tuning parameters and signal processing options.

public DVBSourceSettings Settings { get; set; }

Property Value

DVBSourceSettings

Type

Gets the media block type identifier for DVB digital television source operations.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the DVB source within the pipeline context. Configures digital television tuner, establishes signal processing, and prepares output for downstream processing.

public override bool Build()

Returns

bool

true if the DVB source was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the DVB operations, including tuner connection and signal buffers.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the DVB source. Properly closes tuner connection and disposes of GStreamer elements and signal processing 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 DVB source GStreamer element.

IsAvailable()

Determines whether DVB digital television support is available on the current system. Requires compatible DVB hardware and drivers to be installed and functional.

public static bool IsAvailable()

Returns

bool

true if DVB support is available; otherwise, false.

Tune()

Initiates the DVB tuning process to lock onto the specified frequency and acquire digital television signal.

public void Tune()

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this DVB source, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this DVB source.

TuningDone

Occurs when DVB tuning operation completes successfully and signal is locked.

public event DVBTuningDoneHandler TuningDone

Event Type

DVBTuningDoneHandler

TuningFail

Occurs when DVB tuning operation fails due to signal loss or hardware issues.

public event DVBTuningDoneHandler TuningFail

Event Type

DVBTuningDoneHandler

TuningStart

Occurs when DVB tuning operation starts for frequency scanning and signal acquisition.

public event DVBTuningDoneHandler TuningStart

Event Type

DVBTuningDoneHandler

See Also