|
AVBlocks for C++
3.4
Audio and Video Software Development Kit
|
Provides properties and operations that are common for all elementary streams. More...
#include <av.h>
Public Member Functions | |
| virtual int32_t | bitrate () const =0 |
| Returns the stream bitrate. | |
| virtual int32_t | bitrateMode () const =0 |
| Returns the stream bitrate mode. | |
| virtual StreamInfo * | clone () const =0 |
| Creates a copy of this object. | |
| virtual MediaBuffer * | configData () const =0 |
| Returns decoder specific configuration data. | |
| virtual bool_t | copyTo (StreamInfo *destination) const =0 |
| Copies the state of the current object to a destination object of the same type. | |
| virtual double | duration () const =0 |
| Returns the stream duration. | |
| virtual int32_t | ID () const =0 |
| Returns the ID of the elementary stream. | |
| virtual bool_t | immutable () const =0 |
| Returns whether the object is immutable. | |
| virtual MediaType::Enum | mediaType () const =0 |
| Returns the stream media type. | |
| virtual int32_t | programNumber () const =0 |
| Returns the number of the program to which the elementary stream belongs. | |
| virtual bool_t | reset ()=0 |
| Resets the stream information to its default state. | |
| virtual bool_t | setBitrate (int32_t bitrate)=0 |
| Sets the stream bitrate. | |
| virtual bool_t | setBitrateMode (int32_t bitrateMode)=0 |
| Sets the stream bitrate mode. | |
| virtual void | setConfigData (MediaBuffer *configData)=0 |
| Sets decoder specific configuration data. | |
| virtual bool_t | setDuration (double duration)=0 |
| Sets the stream duration in seconds. | |
| virtual bool_t | setID (int32_t id)=0 |
| Sets the ID of the elementary stream. | |
| virtual bool_t | setProgramNumber (int32_t programNumber)=0 |
| Sets the program to which the elementary stream belongs. | |
| virtual bool_t | setStreamSubType (StreamSubType::Enum type)=0 |
| Sets the stream subtype. | |
| virtual bool_t | setStreamType (StreamType::Enum type)=0 |
| Sets the stream type. | |
| virtual StreamSubType::Enum | streamSubType () const =0 |
| Returns the stream subtype. | |
| virtual StreamType::Enum | streamType () const =0 |
| Returns the stream type. | |
| Public Member Functions inherited from Reference | |
| virtual int32_t | release () const =0 |
| Releases the instance. | |
| virtual int32_t | retain () const =0 |
| Retains the instance. | |
| virtual int32_t | retainCount () const =0 |
| Returns the current reference count. | |
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.
|
protected |
This object can be destroyed only by its implementation.
The caller must use Reference::release.
|
pure virtual |
|
pure virtual |
Returns the stream bitrate mode.
Referenced by setBitrateMode().
|
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 AudioStreamInfo, and VideoStreamInfo.
|
pure virtual |
Returns decoder specific configuration data.
This data is typically obtained from a demuxer and is required for decoding certain stream types.
Referenced by setConfigData().
|
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 |
|
pure virtual |
|
pure virtual |
Returns the ID of the elementary stream.
|
pure virtual |
Returns whether the object is immutable.
An immmutable object cannot be modified and all modifying methods fail to produce a result.
|
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.
|
pure virtual |
Returns the number of the program to which the elementary stream belongs.
Referenced by setProgramNumber().
|
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.
|
pure virtual |
Sets the stream bitrate.
| bitrate | the bitrate is expressed in bits per second. |
References bitrate().
|
pure virtual |
Sets the stream bitrate mode.
| bitrateMode | A BitrateMode::Enum constant. |
References bitrateMode().
|
pure virtual |
Sets decoder specific configuration data.
| configData | A pointer to a MediaBuffer object containing the configuration data. Can be NULL. |
References configData().
|
pure virtual |
Sets the stream duration in seconds.
| duration | in seconds |
References duration().
|
pure virtual |
Sets the ID of the elementary stream.
| id | elementary stream id |
|
pure virtual |
Sets the program to which the elementary stream belongs.
| programNumber | program number |
References programNumber().
|
pure virtual |
Sets the stream subtype.
| type | stream subtype. |
|
pure virtual |
Sets the stream type.
| type | major stream type. |
|
pure virtual |
Returns the stream subtype.
|
pure virtual |
Returns the stream type.