#include <mnt_ppm_writer.h>
Inheritance diagram for MntPPMWriter:
Public Member Functions | |
MntPPMWriter (char *prefix) | |
Constructor for MntPPMWriter. | |
virtual void | recv (MntData *data) |
This method takes a uncompressed YUV frame (an MntYUVFrame object) as input, transform the frame into RGB color space, and output it to disk as the ppm file with name <prefix><counter><type>.ppm, where prefix is specified by users through the constructor, counter is the frame number in display order, and type is a character of either i, p or b to indicate the frame type of this frame in the compressed MPEG stream. | |
Private Attributes | |
int | frame_number_ |
BitParser * | bp_ |
MntPnmHdr * | hdr_ |
BitStream * | bs_ |
MntByteImage * | r_ |
MntByteImage * | g_ |
MntByteImage * | b_ |
int | w_ |
int | h_ |
char | prefix_ [100] |
The filename of the image file is prefixed by a string specified by user, and is suffixed by the frame number and frame type.
|
Constructor for MntPPMWriter.
|
|
This method takes a uncompressed YUV frame (an MntYUVFrame object) as input, transform the frame into RGB color space, and output it to disk as the ppm file with name <prefix><counter><type>.ppm, where prefix is specified by users through the constructor, counter is the frame number in display order, and type is a character of either i, p or b to indicate the frame type of this frame in the compressed MPEG stream. The input YUV is assumed to be of 4:2:0 color subsampling. Reimplemented from MntComponent. |