00001 00011 #ifndef _RTP_H_ 00012 #define _RTP_H_ 00013 00014 #include "nalucommon.h" 00015 00016 #define MAXRTPPAYLOADLEN (65536 - 40) 00017 #define MAXRTPPACKETSIZE (65536 - 28) 00018 #define H264PAYLOADTYPE 105 00019 #define H264SSRC 0x12345678 00020 #define RTP_TR_TIMESTAMP_MULT 1000 00021 00022 typedef struct 00023 { 00024 unsigned int v; 00025 unsigned int p; 00026 unsigned int x; 00027 unsigned int cc; 00029 unsigned int m; 00030 unsigned int pt; 00031 uint16 seq; 00033 unsigned int timestamp; 00034 unsigned int ssrc; 00035 byte * payload; 00036 unsigned int paylen; 00037 byte * packet; 00038 unsigned int packlen; 00039 } RTPpacket_t; 00040 00041 void DumpRTPHeader (RTPpacket_t *p); 00042 int GetRTPNALU (ImageParameters *p_Img, NALU_t *nalu); 00043 void OpenRTPFile (ImageParameters *p_Img, char *fn); 00044 void CloseRTPFile(ImageParameters *p_Img); 00045 00046 #endif