Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcMxPEGRawFrameDumper Class Reference
[mxcpc_core (Core Module - MxPEG Decoding Infrastructure)]

MxPEG decoder backend dumping raw RGB / YUV frames to a generic byte stream receiver. More...

#include <mxcpcMxPEGRawFrameDumper.h>

Inheritance diagram for mxcpcMxPEGRawFrameDumper:

mxcpcBufferedMxPEGDecoderBackEnd mxcpcMxPEGDecoderBackEnd List of all members.

Public Member Functions

 mxcpcMxPEGRawFrameDumper (mxcpcByteStreamReceiver *frame_receiver, bool convert_to_YUV=false)
 The frame dumper assumes ownership over the frame receiver.
 ~mxcpcMxPEGRawFrameDumper ()
void dumpFrame (void)
 Explicitly causes the current contents of the frame buffer to be written to the frame receiver.
void setExplicitDumpModeEnabled (bool enabled)
 Toggles explicit dump mode.
void videoResolutionChanged (int width, int height)
 (Re)implemented.
void errorEncountered (void)
 (Re)implemented.
void frameComplete (void)
 (Re)implemented.
void videoTileReceived (void)
 (Re)implemented.

Private Attributes

mxcpcByteStreamReceiverFrameReceiver
bool ConvertToYUV
mxcpc::u8YUVBuffer
bool ExplicitDumpMode

Detailed Description

MxPEG decoder backend dumping raw RGB / YUV frames to a generic byte stream receiver.

Per default, the dumper writes raw RGB data with 3 bytes per pixel (being R, G and B values respectively). If RGB-to-YUV conversion is turned on by passing the respective flag to the constructor, the frame is dumped in the planar yv12 YUV format. Note that this YUV format uses the YCbCr colorspace rather than plain YUV.

No frame separators will be written.

If explicit dump mode is enabled via setExplicitDumpModeEnabled(), frames will not automatically be dumped on frameComplete() events, but only when dumpFrame() gets called.

Note:
The generated raw frame formats are digestible by the commonly used transcode and MPlayer/mencoder tools.

Definition at line 54 of file mxcpcMxPEGRawFrameDumper.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 30 15:52:46 2006 for mxcpc by  doxygen 1.4.4