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

MntRTPFileReader Class Reference

This class is a pump that pumps MntRTPMPEGpacket from a file and sends it to other components. More...

#include <mnt_rtp_file_reader.h>

Inheritance diagram for MntRTPFileReader:

MntPump MntComponent List of all members.

Public Member Functions

 MntRTPFileReader (const char *const filename)
 This constructor open a binary file with given filename.
virtual int pump_some ()
 Reads one packet from the given file and sends it down the pipeline.

Private Attributes

FILE * f_
unsigned char * pkt_buf_
MntRTPMPEGPacketpkt_

Static Private Attributes

static const int MAX_PACKET_SIZE = 1480

Detailed Description

This class is a pump that pumps MntRTPMPEGpacket from a file and sends it to other components.

The file should be created previously with MntRTPFileWriter object.

Important: We assume all packets are less then MAX_PACKET_SIZE.


Constructor & Destructor Documentation

MntRTPFileReader::MntRTPFileReader const char *const   filename  ) 
 

This constructor open a binary file with given filename.

This file should have been created previously with MntRTPFileWriter object. A packet buffer is allocated, and a MntRTPMPEGPacket object is created.


Member Data Documentation

FILE* MntRTPFileReader::f_ [private]
 

File to read from

MntRTPMPEGPacket* MntRTPFileReader::pkt_ [private]
 

MntRTPMPEGPacket object read from file

unsigned char* MntRTPFileReader::pkt_buf_ [private]
 

A shared, allocated buffer for all packets read


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