MP3Encoder Class Reference
Implementation of Adaptor that takes UncompressedAudioFrame (raw PCM) as input and returns an CompressedAudioFrame (MPEG-1 layer 3 aka mp3) as output. <short description="">. More...
#include <MP3Encoder.hpp>
Inheritance diagram for MP3Encoder:
Public Member Functions | |
MP3Encoder (AudioESInfo *pESInfo, u32 targetBitRate, enum CodecID outputFormat=CODEC_ID_MP3LAME, char *mp4EncoderConfig=NULL) | |
Constructor. | |
virtual | ~MP3Encoder () |
Destructor. | |
list< Frame * > | adapt (Frame *frm) |
raw PCM Frame in - MP3Frame out. | |
list< Frame * > | close () |
Flush all buffered MPGFrame objects (if any). | |
Adaptor * | clone () |
Not implemented. | |
void | initialize () |
Initialize internal data structures. | |
u32 | getTranscodingCosts () const |
returns adaptation costs (CPU only) per second! For visual streams they are expressed in pixels/seconds. |
Detailed Description
Implementation of Adaptor that takes UncompressedAudioFrame (raw PCM) as input and returns an CompressedAudioFrame (MPEG-1 layer 3 aka mp3) as output. <short description="">.
- Author:
- Michael Kropfberger
- Version:
- Id
- MP3Encoder.hpp,v 1.2 2005/05/13 18:18:02 mkropfbe Exp
Definition at line 68 of file MP3Encoder.hpp.
Constructor & Destructor Documentation
|
Constructor. Creates a MP3Encoder instance. Do set attributes of pESInfo object carefully.
Referenced by clone().
|
Member Function Documentation
|
raw PCM Frame in - MP3Frame out. Input raw PCM Frame object will be deleted in this method! Adaptor implementation for raw PCM Frame objects.
Reimplemented from Adaptor. Definition at line 88 of file MP3Encoder.cpp. References Frame::getAU(), Frame::getType(), initialize(), Frame::setAU(), and Frame::setMediaTimeScale().
|
|
Not implemented.
Implements Adaptor. Definition at line 197 of file MP3Encoder.cpp. References MP3Encoder().
|
|
Flush all buffered MPGFrame objects (if any).
Reimplemented from Adaptor. Definition at line 148 of file MP3Encoder.cpp. References Frame::getAU(), Frame::getType(), Frame::setAU(), and Frame::setMediaTimeScale().
|
|
returns adaptation costs (CPU only) per second! For visual streams they are expressed in pixels/seconds. Call this only on INITIALIZED adaptors!!!! Otherwise costs will be way too high. Implements Adaptor. Definition at line 109 of file MP3Encoder.hpp.
|
|
Initialize internal data structures.
Implements Adaptor. Definition at line 61 of file MP3Encoder.cpp. Referenced by adapt().
|
The documentation for this class was generated from the following files: