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, IMediaBlockInternalsInheritance
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
pipelineMediaBlocksPipeline-
The pipeline.
settingsImageVideoSourceSettings-
The image video source settings.
videoSizeSize
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
Inputs
Gets all input pads available on this block (none for source blocks).
public override MediaBlockPad[] Inputs { get; }Property Value
Name
Gets or sets the name of the block.
public string Name { get; set; }Property Value
Output
Gets the primary video output pad.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads available on this block.
public override MediaBlockPad[] Outputs { get; }Property Value
Settings
Gets or sets the settings.
public ImageVideoSourceSettings Settings { get; set; }Property Value
Type
Gets the media block type identifier.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds and initializes the image source within the pipeline context.
public override bool Build()Returns
Dispose(bool)
Disposes of resources.
protected override void Dispose(bool disposing)Parameters
disposingbool-
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
directionMediaBlockPadDirectiontypeMediaBlockPadMediaType
Returns
GetPads()
Gets all media block pads available on this source.
public MediaBlockPad[] GetPads()Returns
SetDisplayMode(ImageDisplayMode)
Sets the display mode for the image.
public void SetDisplayMode(ImageDisplayMode mode)Parameters
modeImageDisplayMode-
The display mode.
UpdateFilename(string)
Updates the image filename dynamically without stopping the pipeline.
public void UpdateFilename(string filename)Parameters
filenamestring-
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
pipelineMediaBlocksPipeline