Main Page | Class Hierarchy | Class List | Directories | Class Members

MntPPMWriter Class Reference

MntPPMWriter is a component that takes in a MntYUVFrame object and writes the object to disk as PPM image file. More...

#include <mnt_ppm_writer.h>

Inheritance diagram for MntPPMWriter:

MntComponent List of all members.

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_
BitParserbp_
MntPnmHdrhdr_
BitStreambs_
MntByteImager_
MntByteImageg_
MntByteImageb_
int w_
int h_
char prefix_ [100]

Detailed Description

MntPPMWriter is a component that takes in a MntYUVFrame object and writes the object to disk as PPM image file.

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 & Destructor Documentation

MntPPMWriter::MntPPMWriter char *  prefix  ) 
 

Constructor for MntPPMWriter.

Parameters:
prefix A string to prefix all output file names.


Member Function Documentation

void MntPPMWriter::recv MntData data  )  [virtual]
 

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.


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 12:37:13 2005 for mnt by  doxygen 1.4.4