Packet RTPMpegPacket

File: src/transport/rtp/profiles/avprofile/RTPMpegPacket.msg

An RTPMpegPacket is intended to be capsulated into an RTPPacket when transmitting mpeg data with rtp under the rtp audio/video profile. It stores information about the mpeg data as described in rfc 2250. This implementation doesn't transport real mpeg data. It is intended to simulate storing mpeg data by adding length. Currently only one header field (picture type) is filled with the right value. The values for the other header fields can't be determined by reading the gdf file.

See also: RTPAVProfilePayload32Sender

See also: RTPAVProfilePayload32Receiver

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Fields:

Name Type Description
headerLength int
payloadLength int

size of the mpeg data

pictureType int

picture type of the frame the data in this packet belongs to.

currenrtly unused fields: int mzb; int two; int temporalReference; int activeN; int newPictureHeader; int sequenceHeaderPresent; int beginningOfSlice; int endOfSlice; int fbv; int bfc; int ffv; int ffc;

Source code:

//
// An RTPMpegPacket is intended to be capsulated into an RTPPacket when
// transmitting mpeg data with rtp under the rtp audio/video profile.
// It stores information about the mpeg data as described in rfc 2250.
// This implementation doesn't transport real mpeg data. It is intended
// to simulate storing mpeg data by adding length.
// Currently only one header field (picture type) is filled with the right
// value. The values for the other header fields can't be determined by
// reading the gdf file.
//
// @see RTPAVProfilePayload32Sender
// @see RTPAVProfilePayload32Receiver
//
packet RTPMpegPacket
{
    int headerLength = 4;
    int payloadLength; // size of the mpeg data
    int pictureType;   // picture type of the frame the data in this packet belongs to.

    // currenrtly unused fields:
    //int mzb;
    //int two;
    //int temporalReference;
    //int activeN;
    //int newPictureHeader;
    //int sequenceHeaderPresent;
    //int beginningOfSlice;
    //int endOfSlice;
    //int fbv;
    //int bfc;
    //int ffv;
    //int ffc;
}