#include <mnt_rtp_file_reader.h>
Inheritance diagram for MntRTPFileReader:
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_ |
MntRTPMPEGPacket * | pkt_ |
Static Private Attributes | |
static const int | MAX_PACKET_SIZE = 1480 |
The file should be created previously with MntRTPFileWriter object.
Important: We assume all packets are less then MAX_PACKET_SIZE.
|
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. |
|
File to read from |
|
MntRTPMPEGPacket object read from file |
|
A shared, allocated buffer for all packets read |