MxPEG
decoder backend dumping raw RGB
/ YUV frames to a generic byte stream receiver.
More...
#include <mxcpcMxPEGRawFrameDumper.h>
Inheritance diagram for mxcpcMxPEGRawFrameDumper:
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 | |
mxcpcByteStreamReceiver * | FrameReceiver |
bool | ConvertToYUV |
mxcpc::u8 * | YUVBuffer |
bool | ExplicitDumpMode |
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.
transcode
and MPlayer/mencoder
tools.
Definition at line 54 of file mxcpcMxPEGRawFrameDumper.h.