#include "nalucommon.h"
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) |
Definition in file rtp.h.
#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) |
#define RTP_TR_TIMESTAMP_MULT 1000 |
void CloseRTPFile | ( | ImageParameters * | p_Img | ) |
void DumpRTPHeader | ( | RTPpacket_t * | p | ) |
DumpRTPHeader is a debug tool that dumps a human-readable interpretation of the RTP header.
p | the RTP packet to be dumped, after DecompositeRTPpacket() |
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.
< 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().
void OpenRTPFile | ( | ImageParameters * | p_Img, | |
char * | fn | |||
) |