Provides properties and operations that are common for all elementary streams.
More...
#include <PrimoAV.h>
Inherits Reference.
Inherited by AudioStreamInfo, and VideoStreamInfo.
Provides properties and operations that are common for all elementary streams.
AudioStreamInfo and VideoStreamInfo inherit from this interface.
- See Also
- AudioStreamInfo
-
VideoStreamInfo
This object can be destroyed only by its implementation.
The caller must use Reference::release.
- See Also
- Object Management
virtual int32_t bitrate |
( |
| ) |
const |
|
pure virtual |
Returns the stream bitrate.
- Returns
- bitrate in bits per second.
virtual int32_t bitrateMode |
( |
| ) |
const |
|
pure virtual |
Creates a 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.
The caller is responsible for releasing the new object when it is not needed anymore.
- See Also
- Object Management
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.
- Parameters
-
destination | [out] A pointer to the destination object |
- Returns
- TRUE The object state is copied, FALSE otherwise.
virtual double duration |
( |
| ) |
const |
|
pure virtual |
Returns the stream duration.
- Returns
- duration in seconds
virtual int32_t ID |
( |
| ) |
const |
|
pure virtual |
Returns the ID of the elementary stream.
- Returns
- stream id
virtual bool_t immutable |
( |
| ) |
const |
|
pure virtual |
Returns whether the object is immutable.
An immmutable object cannot be modified and all modifying methods fail to produce a result.
- Returns
- TRUE if the object is immutable, FALSE otherwise.
Returns the stream media type.
The media type of a StreamInfo object cannot be changed.
@return media type
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 int32_t programNumber |
( |
| ) |
const |
|
pure virtual |
Returns the number of the program to which the elementary stream belongs.
- Returns
- program number
- Warning
- If the elementary stream is shared by 2 or more programs this property will return the last parsed program that uses this stream.
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.
- Parameters
-
bitrate | the bitrate is expressed in bits per second. |
virtual void setBitrateMode |
( |
int32_t |
bitrateMode | ) |
|
|
pure virtual |
Sets the stream bitrate mode.
- Parameters
-
virtual void setDuration |
( |
double |
duration | ) |
|
|
pure virtual |
Sets the stream duration in seconds.
- Parameters
-
virtual void setID |
( |
int32_t |
id | ) |
|
|
pure virtual |
Sets the ID of the elementary stream.
- Parameters
-
virtual void setProgramNumber |
( |
int32_t |
programNumber | ) |
|
|
pure virtual |
Sets the program to which the elementary stream belongs.
- Parameters
-
programNumber | program number |
Sets the stream subtype.
- Parameters
-
Sets the stream type.
- Parameters
-
Returns the stream subtype.
- Returns
- stream subtype
Returns the stream type.
- Returns
- stream type