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 (ImageParameters *p_Img, NALU_t *nalu)
void OpenRTPFile (ImageParameters *p_Img, char *fn)
void CloseRTPFile (ImageParameters *p_Img)


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 ( ImageParameters *  p_Img  ) 

Closes the bit stream file.

Definition at line 129 of file rtp.c.

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 303 of file rtp.c.

Referenced by DecomposeRTPpacket().

int GetRTPNALU ( ImageParameters *  p_Img,
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 154 of file rtp.c.

References nalu_t::buf, nalu_t::forbidden_bit, nalu_t::len, nalu_t::lost_packets, nalu_t::max_size, MAXRTPPACKETSIZE, nalu_t::nal_reference_idc, nalu_t::nal_unit_type, no_mem_exit(), and RTPReadPacket().

Referenced by initBitsFile().

Here is the call graph for this function:

void OpenRTPFile ( ImageParameters *  p_Img,
char *  fn 
)

Opens the bit stream file named fn.

Returns:
none

Definition at line 113 of file rtp.c.

References error(), errortext, and ET_SIZE.

Referenced by initBitsFile().

Here is the call graph for this function:


Documentation generated with DoxyGen