MP4Decoder Class Reference
Implementation of Adaptor that returns YUVFrame objects <short description="">. More...
#include <MP4Decoder.hpp>
Inheritance diagram for MP4Decoder:
Public Types | |
typedef enum MP4Decoder::eCoderType | meCoderType |
Codec selection enumeration, currently available are XviD and FFMPEG. | |
enum | eCoderType { XVID = 1, FFMPEG } |
Codec selection enumeration, currently available are XviD and FFMPEG. | |
Public Member Functions | |
MP4Decoder (VideoESInfo *pESInfo, bool enableSwitching=false, UncompressedVideoFrame::ColorSpace colorSpace=UncompressedVideoFrame::ColorSpaceYV12, meCoderType coderType=XVID) | |
Creates an uninitialized MP4Decoder instance. | |
virtual | ~MP4Decoder () |
Destroys the MP4Decoder. | |
list< Frame * > | adapt (Frame *frm) |
Compressed frm in - uncompressed YUV12 frame out. | |
list< Frame * > | close () |
Flush all buffered uncompressed Frame objects (if any). | |
Adaptor * | clone () |
Not implemented. | |
void | initialize () |
Initializes the Decoder. | |
void | setCoderType (eCoderType coderType=XVID) |
Codec selection. | |
u32 | getTranscodingCosts () const |
returns adaptation costs (CPU only). | |
Static Public Member Functions | |
bool | isValidVisualFrame (const u8 *payload) |
bool | isValidDecoderConfig (const u8 *payload) |
xvidColorSpace | mapToXVIDColorspace (UncompressedVideoFrame::ColorSpace colorSpace) |
Mapping function between MP4Decoders colorspace (defined in UncompressedVideoFrame::ColorSpace) and XviD codec colorspace. | |
const char * | codecToString (CodecID codec_id) |
int | stringToCodec (const char *codec_string) |
ffmpegColorSpace | mapToFFMPEGColorspace (UncompressedVideoFrame::ColorSpace colorSpace) |
Mapping function between MP4Decoders colorspace (defined in UncompressedVideoFrame::ColorSpace) and FFMPEG codec colorspace. |
Detailed Description
Implementation of Adaptor that returns YUVFrame objects <short description="">.
- Author:
- Bernhard Penz
- Version:
- Id
- MP4Decoder.hpp,v 1.20 2005/12/21 11:00:43 mkropfbe Exp
Definition at line 76 of file MP4Decoder.hpp.
Constructor & Destructor Documentation
|
Creates an uninitialized MP4Decoder instance.
References UncompressedVideoFrame::ColorSpace, and meCoderType. Referenced by clone().
|
Member Function Documentation
|
Compressed frm in - uncompressed YUV12 frame out.
Reimplemented from Adaptor. Definition at line 354 of file MP4Decoder.cpp. References Frame::getAU(), Frame::getMediaTimeScale(), Frame::getType(), initialize(), Frame::setAU(), Frame::setAUu(), Frame::setAUv(), Frame::setAUy(), UncompressedVideoFrame::setColorSpace(), and Frame::setMediaTimeScale().
|
|
Not implemented.
Implements Adaptor. Definition at line 639 of file MP4Decoder.cpp. References MP4Decoder().
|
|
Flush all buffered uncompressed Frame objects (if any).
Reimplemented from Adaptor. Definition at line 551 of file MP4Decoder.cpp. References Frame::getAU(), Frame::getType(), Frame::setAU(), Frame::setAUu(), Frame::setAUv(), Frame::setAUy(), UncompressedVideoFrame::setColorSpace(), and Frame::setMediaTimeScale().
|
|
returns adaptation costs (CPU only). Decoding costs depend directly on the number of out YUV pixels and frames decoded per second (FIXME: codec not supported) Implements Adaptor. Definition at line 1504 of file MP4Decoder.cpp.
|
|
Initializes the Decoder. Is called when the first frame arrives Implements Adaptor. Definition at line 190 of file MP4Decoder.cpp. Referenced by adapt().
|
|
Mapping function between MP4Decoders colorspace (defined in UncompressedVideoFrame::ColorSpace) and FFMPEG codec colorspace. Definition at line 1253 of file MP4Decoder.cpp. References UncompressedVideoFrame::ColorSpace.
|
|
Mapping function between MP4Decoders colorspace (defined in UncompressedVideoFrame::ColorSpace) and XviD codec colorspace. Definition at line 1227 of file MP4Decoder.cpp. References UncompressedVideoFrame::ColorSpace.
|
|
Codec selection.
|
The documentation for this class was generated from the following files: