Public Member Functions | |
MediaCodec () | |
virtual String | GetIdentifier () |
Identifier. | |
virtual uint32 | GetPhysicalType () |
Physical type. | |
virtual View * | GetConfigurationView () |
Configuration view. | |
virtual status_t | Open (MediaFormat_s sInternalFormat, MediaFormat_s sExternalFormat, bool bEncode) |
Open codec. | |
virtual void | Close () |
Close the codec. | |
virtual MediaFormat_s | GetInternalFormat () |
Return internal format. | |
virtual MediaFormat_s | GetExternalFormat () |
Return External format. | |
virtual status_t | CreateAudioOutputPacket (MediaPacket_s *psOutput) |
Create a media output packet for audio data. | |
virtual void | DeleteAudioOutputPacket (MediaPacket_s *psOutput) |
Delete a media output packet for audio data. | |
virtual status_t | CreateVideoOutputPacket (MediaPacket_s *psOutput) |
Create a media output packet for video data. | |
virtual void | DeleteVideoOutputPacket (MediaPacket_s *psOutput) |
Delete a media output packet for video data. | |
virtual status_t | DecodePacket (MediaPacket_s *psPacket, MediaPacket_s *psOutput) |
Decode media data. | |
virtual status_t | ParsePacket (MediaPacket_s *psPacket, os::MediaPacket_s *psOutput) |
Parse media data. | |
virtual status_t | EncodePacket (MediaPacket_s *psPacket, MediaPacket_s *psOutput) |
Encode media data. | |
Protected Member Functions | |
virtual | ~MediaCodec () |
MediaCodec::~MediaCodec | ( | ) | [protected, virtual] |
MediaCodec::MediaCodec | ( | ) |
String MediaCodec::GetIdentifier | ( | ) | [virtual] |
uint32 MediaCodec::GetPhysicalType | ( | ) | [virtual] |
View * MediaCodec::GetConfigurationView | ( | ) | [virtual] |
status_t MediaCodec::Open | ( | MediaFormat_s | sInternalFormat, | |
MediaFormat_s | sExternalFormat, | |||
bool | bEncode | |||
) | [virtual] |
sInternalFormat | - Internal format of the codec. | |
sExternalFormat | - Format to which the data will be decoded or from which they will be encoded. The most common will be a raw format. | |
bEncode | - If true then the codec will be opened for encoding, otherwise for decoding. |
void MediaCodec::Close | ( | ) | [virtual] |
MediaFormat_s MediaCodec::GetInternalFormat | ( | ) | [virtual] |
MediaFormat_s MediaCodec::GetExternalFormat | ( | ) | [virtual] |
status_t MediaCodec::CreateAudioOutputPacket | ( | MediaPacket_s * | psOutput | ) | [virtual] |
psOutput | - Pointer to the output packet. |
void MediaCodec::DeleteAudioOutputPacket | ( | MediaPacket_s * | psOutput | ) | [virtual] |
psOutput | - Pointer to the output packet. |
status_t MediaCodec::CreateVideoOutputPacket | ( | MediaPacket_s * | psOutput | ) | [virtual] |
psOutput | - Pointer to the output packet. |
void MediaCodec::DeleteVideoOutputPacket | ( | MediaPacket_s * | psOutput | ) | [virtual] |
psOutput | - Pointer to the output packet. |
status_t MediaCodec::DecodePacket | ( | MediaPacket_s * | psPacket, | |
MediaPacket_s * | psOutput | |||
) | [virtual] |
psPacket | - packet of media data. | |
psOutput | - Output packet which has been allocated with the Create - Video / Audio - OutputPacket() method. |
status_t MediaCodec::ParsePacket | ( | MediaPacket_s * | psPacket, | |
os::MediaPacket_s * | psOutput | |||
) | [virtual] |
psPacket | - packet of media data. |
psPacket | - packet of media data. | |
psOutput | - Output packet which has been allocated with the Create - Video / Audio - OutputPacket() method. |
status_t MediaCodec::EncodePacket | ( | MediaPacket_s * | psPacket, | |
MediaPacket_s * | psOutput | |||
) | [virtual] |
psPacket | - packet of media data. | |
psOutput | - Output packet which has been allocated with the Create - Video / Audio - OutputPacket() method. |