#include <RTPMpegPacket.h>
Public Member Functions | |
| RTPMpegPacket (const char *name=NULL) | |
| RTPMpegPacket (const RTPMpegPacket &packet) | |
| virtual | ~RTPMpegPacket () |
| RTPMpegPacket & | operator= (const RTPMpegPacket &packet) |
| virtual cObject * | dup () const |
| virtual const char * | className () const |
| virtual int | payloadLength () |
| virtual int | pictureType () |
| virtual void | setPictureType (int pictureType) |
Static Public Member Functions | |
| static int | headerLength () |
Private Attributes | |
| int | _mzb |
| Not used. | |
| int | _two |
| Not used. | |
| int | _temporalReference |
| Not used. | |
| int | _activeN |
| Not used. | |
| int | _newPictureHeader |
| Not used. | |
| int | _sequenceHeaderPresent |
| Not used. | |
| int | _beginningOfSlice |
| Not used. | |
| int | _endOfSlice |
| Not used. | |
| int | _pictureType |
| The picture type of the frame this packet belongs to. | |
| int | _fbv |
| Not used. | |
| int | _bfc |
| Not used. | |
| int | _ffv |
| Not used. | |
| int | _ffc |
| Not used. | |
|
|
Default constructor. 00027 : cPacket(name) {
00028 _mzb = 0;
00029 _two = 0;
00030 _temporalReference = 0;
00031 _activeN = 0;
00032 _newPictureHeader = 0;
00033 _sequenceHeaderPresent = 0;
00034 _beginningOfSlice = 0;
00035 _endOfSlice = 0;
00036 _pictureType = 0;
00037 _fbv = 0;
00038 _bfc = 0;
00039 _ffv = 0;
00040 _ffc = 0;
00041 // the standard header is 4 bytes long
00042 setLength(headerLength());
00043 };
|
|
|
Copy constructor. 00046 : cPacket(packet) {
00047 setName(packet.name());
00048 _mzb = packet._mzb;
00049 _two = packet._two;
00050 _temporalReference = packet._temporalReference;
00051 _activeN = packet._activeN;
00052 _newPictureHeader = packet._newPictureHeader;
00053 _sequenceHeaderPresent = packet._sequenceHeaderPresent;
00054 _beginningOfSlice = packet._beginningOfSlice;
00055 _endOfSlice = packet._endOfSlice;
00056 _pictureType = packet._pictureType;
00057 _fbv = packet._fbv;
00058 _bfc = packet._bfc;
00059 _ffv = packet._ffv;
00060 _ffc = packet._ffc;
00061 };
|
|
|
Destructor. 00064 {
00065 };
|
|
|
Returns the class name "RTPMpegPacket". 00079 {
00080 return "RTPMpegPacket";
00081 };
|
|
|
Duplicates the RTPMpegPacket by calling the copy constructor. 00074 {
00075 return new RTPMpegPacket(*this);
00076 };
|
|
|
Returns the constant header length (4 bytes). 00084 {
00085 return 4;
00086 };
|
|
|
Assignment operator. 00068 {
00069 cPacket::operator=(packet);
00070 return *this;
00071 };
|
|
|
Returns the size of mpeg data. 00089 {
00090 return length() - headerLength();
00091 };
|
|
|
Returns the picture type of the frame the data in this packet belongs to. 00094 {
00095 return _pictureType;
00096 };
|
|
|
Sets the picture type. 00099 {
00100 _pictureType = pictureType;
00101 }
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
The picture type of the frame this packet belongs to.
|
|
|
Not used.
|
|
|
Not used.
|
|
|
Not used.
|
1.4.1