Table of Contents

Class ImageVideoSourceCairoBlock

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

Image video source block with Cairo-based rendering for dynamic updates. Implements the VisioForge.Core.MediaBlocks.IMediaBlock

public class ImageVideoSourceCairoBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

ImageVideoSourceCairoBlock(MediaBlocksPipeline, ImageVideoSourceSettings, Size)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.ImageVideoSourceCairoBlock class.

public ImageVideoSourceCairoBlock(MediaBlocksPipeline pipeline, ImageVideoSourceSettings settings, Size videoSize)

Parameters

pipeline MediaBlocksPipeline

The pipeline.

settings ImageVideoSourceSettings

The image video source settings.

videoSize Size

Properties

Context

Gets or sets the context.

public ContextX Context { get; set; }

Property Value

ContextX

Input

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

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[]

Name

Gets or sets the name of the block.

public string Name { get; set; }

Property Value

string

Output

Gets the primary video output pad.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the settings.

public ImageVideoSourceSettings Settings { get; set; }

Property Value

ImageVideoSourceSettings

Type

Gets the media block type identifier.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the image source within the pipeline context.

public override bool Build()

Returns

bool

Dispose(bool)

Disposes of resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

True if disposing managed resources.

GetCore()

Gets the core GStreamer element wrapper.

public BaseElement GetCore()

Returns

BaseElement

GetElement()

Gets the native GStreamer element.

public Element GetElement()

Returns

Element

GetPad(MediaBlockPadDirection, MediaBlockPadMediaType)

Gets a specific media block pad by direction and media type.

public MediaBlockPad GetPad(MediaBlockPadDirection direction, MediaBlockPadMediaType type)

Parameters

direction MediaBlockPadDirection
type MediaBlockPadMediaType

Returns

MediaBlockPad

GetPads()

Gets all media block pads available on this source.

public MediaBlockPad[] GetPads()

Returns

MediaBlockPad[]

SetDisplayMode(ImageDisplayMode)

Sets the display mode for the image.

public void SetDisplayMode(ImageDisplayMode mode)

Parameters

mode ImageDisplayMode

The display mode.

UpdateFilename(string)

Updates the image filename dynamically without stopping the pipeline.

public void UpdateFilename(string filename)

Parameters

filename string

The new image filename.

IMediaBlockInternals.CleanUp()

Cleans up resources.

void IMediaBlockInternals.CleanUp()

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

See Also