Table of Contents

Class H263ParseBlock

Namespace
VisioForge.Core.MediaBlocks.Parsers
Assembly
VisioForge.Core.dll

Parses H.263 video bitstreams for frame boundary detection and header analysis.

public class H263ParseBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Remarks

The H263ParseBlock processes H.263 encoded video streams, identifying picture start codes, extracting picture headers, and ensuring proper frame alignment. H.263 is a legacy video codec primarily used in video conferencing and older mobile video applications.

Key features: - Picture start code (PSC) detection and validation - GOB (Group of Blocks) header parsing - Picture type identification (I, P, PB frames) - Optional modes detection (Annex D, F, I, J, T) - Frame boundary detection for proper segmentation - Temporal reference extraction

Common use cases: - Video conferencing: Processing H.263 streams from legacy endpoints - Streaming: Preparing H.263 video for RTP transmission (RFC 2190) - Transcoding: Converting H.263 to modern codecs - File conversion: Extracting H.263 from 3GP containers

The parser handles both baseline H.263 and H.263+ (H.263v2) formats, automatically detecting optional features and annexes used in the stream.

Constructors

H263ParseBlock()

Initializes a new instance of the VisioForge.Core.MediaBlocks.Parsers.H263ParseBlock class.

public H263ParseBlock()

Remarks

Creates input and output pads configured for video media type. The parser will detect H.263 baseline or H.263+ format and optional annexes during processing.

Properties

Input

Gets the primary input pad for receiving H.263 bitstream data.

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this block.

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad that provides parsed H.263 frames.

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

Type

Gets the type of this media block.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

Methods

Build()

Builds and initializes the H.263 parser element within the media pipeline.

public override bool Build()

Returns

bool

true if the parser was successfully created and configured; false if initialization failed or required plugins are missing.

Remarks

This method creates the GStreamer H.263 parser element, initializes it within the pipeline context, and connects the input/output pads. The parser will begin processing data once the pipeline transitions to the playing state.

CleanUp()

Performs cleanup of the parser resources and resets the build state.

public void CleanUp()

Remarks

This method disposes of the GStreamer element and resets internal state. It is called during disposal to ensure proper resource cleanup.

Dispose(bool)

Releases unmanaged and - optionally - managed 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.

public BaseElement GetCore()

Returns

BaseElement

The base element wrapper providing access to common GStreamer functionality.

GetElement()

Gets the underlying native GStreamer element.

public Element GetElement()

Returns

Element

The native GStreamer element instance used for H.263 parsing.

IsAvailable()

Determines whether the H.263 parser is available in the current GStreamer installation.

public static bool IsAvailable()

Returns

bool

true if the H.263 parser plugin is available; otherwise, false. This requires the GStreamer bad plugins to be installed.

Remarks

The H.263 parser is provided by the GStreamer bad plugins collection. Ensure the appropriate VisioForge SDK redistribution package is included in your project.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the media pipeline context for this block.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The media pipeline that will contain this parser block.

See Also