rtp.h File Reference

Prototypes for rtp.c. More...

#include "nalucommon.h"

Include dependency graph for rtp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RTPpacket_t

Defines

#define MAXRTPPAYLOADLEN   (65536 - 40)
#define MAXRTPPACKETSIZE   (65536 - 28)
#define H264PAYLOADTYPE   105
#define H264SSRC   0x12345678
#define RTP_TR_TIMESTAMP_MULT   1000

Functions

void DumpRTPHeader (RTPpacket_t *p)
int GetRTPNALU (NALU_t *nalu)
void OpenRTPFile (char *fn)
void CloseRTPFile (void)


Detailed Description

Prototypes for rtp.c.

Definition in file rtp.h.


Define Documentation

#define H264PAYLOADTYPE   105

RTP paylaod type fixed here for simplicity*/.

Definition at line 18 of file rtp.h.

Referenced by RTPReadPacket().

#define H264SSRC   0x12345678

SSRC, chosen to simplify debugging */.

Definition at line 19 of file rtp.h.

Referenced by RTPReadPacket().

#define MAXRTPPACKETSIZE   (65536 - 28)

Maximum size of an RTP packet incl. header */.

Definition at line 17 of file rtp.h.

Referenced by GetRTPNALU(), and RTPReadPacket().

#define MAXRTPPAYLOADLEN   (65536 - 40)

Maximum payload size of an RTP packet */.

Definition at line 16 of file rtp.h.

#define RTP_TR_TIMESTAMP_MULT   1000

should be something like 27 Mhz / 29.97 Hz */

Definition at line 20 of file rtp.h.


Function Documentation

void CloseRTPFile ( void   ) 

Closes the bit stream file.

Definition at line 131 of file rtp.c.

References BitStreamFile.

Referenced by initBitsFile().

void DumpRTPHeader ( RTPpacket_t *  p  ) 

DumpRTPHeader is a debug tool that dumps a human-readable interpretation of the RTP header.

Returns:
n.a.
Parameters:
p the RTP packet to be dumped, after DecompositeRTPpacket()
Side effects
Debug output to stdout
Date:
30 Spetember 2001
Author:
Stephan Wenger stewe@cs.tu-berlin.de

Definition at line 305 of file rtp.c.

Referenced by DecomposeRTPpacket().

int GetRTPNALU ( NALU_t *  nalu  ) 

Fills nalu->buf and nalu->len with the payload of an RTP packet. Other fields in nalu-> remain uninitialized (will be taken care of by NALUtoRBSP.

Returns:
4 in case of ok (for compatibility with GetAnnexbNALU) 0 if there is nothing any more to read (EOF) -1 in case of any error

< triggers sequence number initialization on first call

< store the last RTP sequence number for loss detection

Definition at line 156 of file rtp.c.

References BitStreamFile, MAXRTPPACKETSIZE, no_mem_exit(), and RTPReadPacket().

Referenced by initBitsFile().

Here is the call graph for this function:

void OpenRTPFile ( char *  fn  ) 

Opens the bit stream file named fn.

Returns:
none

Definition at line 115 of file rtp.c.

References BitStreamFile, error(), errortext, and ET_SIZE.

Referenced by initBitsFile().

Here is the call graph for this function:


Documentation generated with DoxyGen