AVBlocks for C++
1.9
Audio and Video Software Development Kit
|
Provides properties and operations that are common for all elementary streams. More...
Inherits Reference.
Inherited by AudioStreamInfo, and VideoStreamInfo.
Public Member Functions | |
virtual MediaType::Enum | mediaType () const =0 |
Returns the stream media type. | |
virtual StreamType::Enum | streamType () const =0 |
Returns the stream type. | |
virtual void | setStreamType (StreamType::Enum type)=0 |
Sets the stream type. | |
virtual StreamSubType::Enum | streamSubType () const =0 |
Returns the stream subtype. | |
virtual void | setStreamSubType (StreamSubType::Enum type)=0 |
Sets the stream subtype. | |
virtual double | duration () const =0 |
Returns the stream duration. | |
virtual void | setDuration (double duration)=0 |
Sets the stream duration in seconds. | |
virtual int32_t | ID () const =0 |
Returns the ID of the elementary stream. | |
virtual void | setID (int32_t id)=0 |
Sets the ID of the elementary stream. | |
virtual int32_t | bitrate () const =0 |
Returns the stream bitrate. | |
virtual void | setBitrate (int32_t bitrate)=0 |
Sets the stream bitrate. | |
virtual int32_t | bitrateMode () const =0 |
Returns the stream bitrate mode. | |
virtual void | setBitrateMode (int32_t bitrateMode)=0 |
Sets the stream bitrate mode. | |
virtual StreamInfo * | clone () const =0 |
Creates a copy of this object. | |
virtual bool_t | copyTo (StreamInfo *destination) const =0 |
Copies the state of the current object to a destination object of the same type. | |
virtual void | reset ()=0 |
Resets the stream information to its default state. | |
Protected Member Functions | |
~StreamInfo () | |
This object can be destroyed only by its implementation. |
Provides properties and operations that are common for all elementary streams.
AudioStreamInfo and VideoStreamInfo inherit from this interface.
~StreamInfo | ( | ) | [protected] |
This object can be destroyed only by its implementation.
The caller must use Reference::release.
virtual int32_t bitrate | ( | ) | const [pure virtual] |
Returns the stream bitrate.
virtual int32_t bitrateMode | ( | ) | const [pure virtual] |
Returns the stream bitrate mode.
virtual StreamInfo* clone | ( | ) | const [pure virtual] |
Creates a copy of this 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.
The caller is responsible for releasing the new object when it is not needed anymore.
Implemented in VideoStreamInfo, and AudioStreamInfo.
virtual bool_t copyTo | ( | StreamInfo * | destination | ) | const [pure virtual] |
Copies the state of the current object to a destination object of the same type.
The reference count of the source and the destination is not modified.
destination | [out] A pointer to the destination object |
virtual double duration | ( | ) | const [pure virtual] |
Returns the stream duration.
virtual int32_t ID | ( | ) | const [pure virtual] |
Returns the ID of the elementary stream.
virtual MediaType::Enum mediaType | ( | ) | const [pure virtual] |
Returns the 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.
virtual void reset | ( | ) | [pure virtual] |
Resets the stream information to its default state.
The full underlying object is reset. The media type of the stream is never reset.
virtual void setBitrate | ( | int32_t | bitrate | ) | [pure virtual] |
Sets the stream bitrate.
bitrate | the bitrate is expressed in bits per second. |
virtual void setBitrateMode | ( | int32_t | bitrateMode | ) | [pure virtual] |
Sets the stream bitrate mode.
bitrateMode | A BitrateMode::Enum constant. |
virtual void setDuration | ( | double | duration | ) | [pure virtual] |
Sets the stream duration in seconds.
duration | in seconds |
virtual void setID | ( | int32_t | id | ) | [pure virtual] |
Sets the ID of the elementary stream.
id | elementary stream id |
virtual void setStreamSubType | ( | StreamSubType::Enum | type | ) | [pure virtual] |
Sets the stream subtype.
type | stream subtype. |
virtual void setStreamType | ( | StreamType::Enum | type | ) | [pure virtual] |
Sets the stream type.
type | major stream type. |
virtual StreamSubType::Enum streamSubType | ( | ) | const [pure virtual] |
Returns the stream subtype.
virtual StreamType::Enum streamType | ( | ) | const [pure virtual] |
Returns the stream type.