Inheritance diagram for os::MediaStage:
Public Member Functions | |
MediaStage () | |
virtual uint32 | GetPhysicalType () |
Physical type. | |
virtual String | GetIdentifier () |
Identifier. | |
virtual uint32 | GetInputCount () |
Number of inputs. | |
virtual uint32 | GetInputFormatCount (uint32 nInput) |
Number of input formats. | |
virtual MediaFormat_s | GetInputFormat (uint32 nInput, uint32 nNum) |
Input format. | |
virtual uint32 | GetOutputCount () |
Number of outputs. | |
virtual MediaFormat_s | GetOutputFormat (uint32 nOutput) |
Output format. | |
virtual status_t | Connected (uint32 nOutput, MediaStage *pcNextStage, uint32 nInput) |
Called when the media stage is connected to the next one. | |
virtual void | Disconnected (bool bInput, uint32 nInOutput) |
Called when the media stage is disconnected from the next or previous one. | |
virtual status_t | Connect (MediaStage *pcPrevStage, uint32 nOutput, uint32 nInput) |
Connect the stage to the previous one. | |
virtual status_t | Disconnect (bool bInput, uint32 nInOutput) |
Disconnect the stage from the previous/next stage. | |
virtual void | GetPrevStage (uint32 nInput, MediaStage **pcPrev, uint32 *pnOutput) |
Get the previous stage. | |
virtual void | GetNextStage (uint32 nOutput, MediaStage **pcNext, uint32 *pnInput) |
Get the next stage. | |
virtual status_t | Initialize () |
Initializes the stage. | |
virtual bool | HasInternalBuffer () |
Internal buffer. | |
virtual status_t | GetPacket (uint32 nOutput, MediaPacket_s *psPacket) |
Read one packet. | |
virtual void | FreePacket (MediaPacket_s *psPacket) |
Frees one packet. | |
virtual uint64 | GetDelay (bool bNonSharedOnly=false) |
Delay. | |
virtual uint64 | GetBufferSize (bool bNonSharedOnly=false) |
Buffer size. | |
Protected Member Functions | |
virtual | ~MediaStage () |
MediaStage::~MediaStage | ( | ) | [protected, virtual] |
MediaStage::MediaStage | ( | ) |
uint32 MediaStage::GetPhysicalType | ( | ) | [virtual] |
Reimplemented in os::MediaInputStage, os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
String MediaStage::GetIdentifier | ( | ) | [virtual] |
Reimplemented in os::MediaInputStage, os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
uint32 MediaStage::GetInputCount | ( | ) | [virtual] |
Reimplemented in os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
uint32 MediaStage::GetInputFormatCount | ( | uint32 | nInput | ) | [virtual] |
nInput | - The input. |
Reimplemented in os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
MediaFormat_s MediaStage::GetInputFormat | ( | uint32 | nInput, | |
uint32 | nNum | |||
) | [virtual] |
nInput | - The input. | |
nNum | - Input format number. |
Reimplemented in os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
uint32 MediaStage::GetOutputCount | ( | ) | [virtual] |
Reimplemented in os::MediaInputStage, os::MediaDecoderStage, and os::MediaSyncStage.
MediaFormat_s MediaStage::GetOutputFormat | ( | uint32 | nOutput | ) | [virtual] |
nOutput | - The output. |
Reimplemented in os::MediaInputStage, os::MediaDecoderStage, and os::MediaSyncStage.
status_t MediaStage::Connected | ( | uint32 | nOutput, | |
MediaStage * | pcNextStage, | |||
uint32 | nInput | |||
) | [virtual] |
nOutput | - Output of the stage. | |
pcNextStage | - The stage that has been connected. | |
nInput | - Input of the connected stage. |
void MediaStage::Disconnected | ( | bool | bInput, | |
uint32 | nInOutput | |||
) | [virtual] |
bInput | - If true then the stage was disconnected from the previous one. Else from the next one. | |
nInOutput | - The input (bInput=true) or output (bInput=false) |
status_t MediaStage::Connect | ( | MediaStage * | pcPrevStage, | |
uint32 | nOutput, | |||
uint32 | nInput | |||
) | [virtual] |
pcPrevStage | - The previous stage. | |
nOutput | - Output of the previous stage. | |
nInput | - Input to which the previous stage should be connected. |
status_t MediaStage::Disconnect | ( | bool | bInput, | |
uint32 | nInOutput | |||
) | [virtual] |
bInput | - If true then the stage will be disconnected from the previous one. Else from the next one. | |
nInOutput | - The input (bInput=true) or output (bInput=false) |
void MediaStage::GetPrevStage | ( | uint32 | nInput, | |
MediaStage ** | pcPrev, | |||
uint32 * | pnOutput | |||
) | [virtual] |
nInput | - The input. | |
pcPrev | - Contains a pointer to the previous stage after the call. | |
pnOutput | - Contains the output of the previous stage after the call. |
void MediaStage::GetNextStage | ( | uint32 | nOutput, | |
MediaStage ** | pcNext, | |||
uint32 * | pnInput | |||
) | [virtual] |
nOutput | - The output. | |
pcNext | - Contains a pointer to the next stage after the call. | |
pnInput | - Contains the input of the next stage after the call. |
status_t MediaStage::Initialize | ( | ) | [virtual] |
Reimplemented in os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
bool MediaStage::HasInternalBuffer | ( | ) | [virtual] |
Reimplemented in os::MediaInputStage, and os::MediaDecoderStage.
status_t MediaStage::GetPacket | ( | uint32 | nOutput, | |
MediaPacket_s * | psPacket | |||
) | [virtual] |
nOutput | - The output. | |
psPacket | - Pointer to a packet. |
Reimplemented in os::MediaInputStage, os::MediaDecoderStage, os::MediaOutputStage, and os::MediaSyncStage.
void MediaStage::FreePacket | ( | MediaPacket_s * | psPacket | ) | [virtual] |
psPacket | - Pointer to a packet. |
Reimplemented in os::MediaInputStage.
uint64 MediaStage::GetDelay | ( | bool | bNonSharedOnly = false |
) | [virtual] |
bNonSharedOnly | - If the output has shared and non-shared buffers then true will return the buffer size of the non-shared buffer only. Otherwise the complete buffer size will be returned. |
Reimplemented in os::MediaOutputStage.
uint64 MediaStage::GetBufferSize | ( | bool | bNonSharedOnly = false |
) | [virtual] |
bNonSharedOnly | - If the output has shared and non-shared buffers then true will return the buffer size of the non-shared buffer only. Otherwise the complete buffer size will be returned. |
Reimplemented in os::MediaOutputStage.