00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00022 #ifndef __RTPMPEGPACKET_H__
00023 #define __RTPMPEGPACKET_H__
00024
00025 #include "omnetpp.h"
00026
00040 class RTPMpegPacket : public cPacket {
00041
00042 public:
00046 RTPMpegPacket(const char *name = NULL);
00047
00051 RTPMpegPacket(const RTPMpegPacket& packet);
00052
00056 virtual ~RTPMpegPacket();
00057
00061 RTPMpegPacket& operator=(const RTPMpegPacket& packet);
00062
00066 virtual cObject *dup() const;
00067
00071 virtual const char *className() const;
00072
00076 static int headerLength();
00077
00081 virtual int payloadLength();
00082
00087 virtual int pictureType();
00088
00092 virtual void setPictureType(int pictureType);
00093
00094 private:
00095
00097 int _mzb;
00098
00100 int _two;
00101
00103 int _temporalReference;
00104
00106 int _activeN;
00107
00109 int _newPictureHeader;
00110
00112 int _sequenceHeaderPresent;
00113
00115 int _beginningOfSlice;
00116
00118 int _endOfSlice;
00119
00121 int _pictureType;
00122
00124 int _fbv;
00125
00127 int _bfc;
00128
00130 int _ffv;
00131
00133 int _ffc;
00134
00135 };
00136
00137 #endif