AVBlocks for C++
1.9
Audio and Video Software Development Kit
|
MediaPin represents an elementary media stream. More...
Inherits Reference.
Public Member Functions | |
virtual int32_t | connection () const =0 |
Returns the Pin connection ID. | |
virtual void | setConnection (int32_t connectionID)=0 |
Sets the Pin connection ID. | |
virtual primo::codecs::StreamInfo * | streamInfo () const =0 |
Returns information about the elementary stream represented by this pin. | |
virtual void | setStreamInfo (primo::codecs::StreamInfo *streamInfo)=0 |
Sets the stream information for the pin. | |
virtual ParameterList * | params () const =0 |
Returns a collection of pin parameters. | |
virtual void | setParams (ParameterList *params)=0 |
Sets the filter parameters for the pin. | |
Protected Member Functions | |
~MediaPin () | |
This object can be destroyed only by the AVBlocks library. |
MediaPin represents an elementary media stream.
MediaPin object can exist for audio, video or any other type of stream. However, AVBlocks can process only the audio and video streams. MediaPin objects are used as inputs and outputs of Transcoder.
virtual int32_t connection | ( | ) | const [pure virtual] |
Returns the Pin connection ID.
This should not be confused with the stream ID that is defined for certain stream types.
A Transcoder object matches and connects input and output pins by their ID. The Transcoder processes the connected pins and ignores the unconnected pins.
Pins are connected to one another according to the following rules:
virtual ParameterList* params | ( | ) | const [pure virtual] |
Returns a collection of pin parameters.
These parameters affect the processing of the elementary stream represented by this pin.
The caller is not required to release the returned object.
virtual void setConnection | ( | int32_t | connectionID | ) | [pure virtual] |
Sets the Pin connection ID.
This should not be confused with the stream ID that is defined for certain stream types.
connectionID | [in] Pin connection ID should be either an unique value or a special value from the PinConnection::Enum. |
A Transcoder object matches and connects input and output pins by their ID. The Transcoder processes the connected pins and ignores the unconnected pins.
Pins are connected to one another according to the following rules:
virtual void setParams | ( | ParameterList * | params | ) | [pure virtual] |
Sets the filter parameters for the pin.
params | [in] A pointer to a ParameterList object. If NULL the stored collection is reset to NULL. Internally the ParameterList object is retained by the MediaPin, so it is safe to release it after this method returns. |
virtual void setStreamInfo | ( | primo::codecs::StreamInfo * | streamInfo | ) | [pure virtual] |
Sets the stream information for the pin.
streamInfo | [in] A pointer to a StreamInfo object. If NULL the stream info is cleared. Internally the StreamInfo object is retained by the MediaPin, so it is safe to release it after this method returns. |
virtual primo::codecs::StreamInfo* streamInfo | ( | ) | const [pure virtual] |
Returns information about the elementary stream represented by this pin.
The Transcoder ignores pins that are not audio or video elementary streams.
If the media type of the returned StreamInfo object is MediaType::Audio, it is safe to cast it to AudioStreamInfo.
If the media type of the returned StreamInfo object is MediaType::Video, it is safe to cast it to VideoStreamInfo.
The caller is not required to release the returned object.