AVBlocks for .NET  1.20
Audio and Video Software Development Kit
StreamInfo Class Reference

Provides properties and operations that are common for all elementary streams. More...

Inheritance diagram for StreamInfo:
AudioStreamInfo DataStreamInfo VideoStreamInfo

Public Member Functions

virtual object Clone ()
 Creates a deep copy of this object. More...
 
virtual void Reset ()
 Resets the stream information to its default state. More...
 

Properties

int Bitrate [get, set]
 The stream bitrate expressed in bits per second. More...
 
BitrateMode BitrateMode [get, set]
 The stream bitrate mode. More...
 
double Duration [get, set]
 The stream duration in seconds. More...
 
int ID [get, set]
 The ID of the elementary stream. More...
 
MediaType MediaType [get]
 Media type. More...
 
int ProgramNumber [get, set]
 The number of the program to which the elementary stream belongs. More...
 
StreamSubType StreamSubType [get, set]
 The stream subtype. More...
 
StreamType StreamType [get, set]
 The stream type. More...
 

Detailed Description

Provides properties and operations that are common for all elementary streams.

AudioStreamInfo and VideoStreamInfo inherit from this class.

See Also
AudioStreamInfo, VideoStreamInfo

Member Function Documentation

virtual object Clone ( )
virtual

Creates a deep copy of this object.

Returns
A new StreamInfo object that has the same dynamic type as the cloned object.

When the object is cloned the full underlying object is copied.
For example if a StreamInfo object is actually an instance of AudioStreamInfo and is cloned, the new object is also an instance of AudioStreamInfo.

virtual void Reset ( )
virtual

Resets the stream information to its default state.

The full underlying object is reset. The media type of the stream is not changed.

Reimplemented in VideoStreamInfo, and AudioStreamInfo.

Property Documentation

int Bitrate
getset

The stream bitrate expressed in bits per second.

The stream bitrate mode.

double Duration
getset

The stream duration in seconds.

int ID
getset

The ID of the elementary stream.

Media type.

The media type of a StreamInfo object cannot be changed.

If the media type is MediaType.Audio this StreamInfo object can be safely cast to AudioStreamInfo.

If the media type is MediaType.Video this StreamInfo object can be safely cast to VideoStreamInfo.

int ProgramNumber
getset

The number of the program to which the elementary stream belongs.

If the elementary stream is shared by 2 or more programs this property will return the last parsed program that uses this stream.

The stream subtype.

The stream type.