/************************************************************************ * * * Module Name: rtp_test.h * * * * Description: main module for rtp test * * * * Date By Reason * * * * 21Nov06 PWR initial release * * *************************************************************************/ #ifndef _RTP_TEST_H_ #define _RTP_TEST_H_ #define INCLUDE_CPU_LOAD #include #include #include #include #include #include #include #include // to get rid of inet_aton warning #include "sysdef.h" #ifdef INCLUDE_CPU_LOAD #include #endif //#define INCLUDE_CPU_LOAD #define RTP_VERSION 2 #define RTP_HDR_SIZE 12 #define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_TYPICAL + 0x10000) #define UDP_MAX_SIZE 1600 #define MAX_ASCII_MESSAGE 256 #define ETHERNET_RTP_THREAD_PRIORITY 18 #define MAIN_THREAD_PRIORITY 25 // RTP data header typedef struct { unsigned int version:2; // protocol version unsigned int p:1; // padding flag unsigned int x:1; // header extension flag unsigned int cc:4; // CSRC count unsigned int m:1; // marker bit unsigned int pt:7; // payload type unsigned int seq:16; // sequence number UINT32 ts; // timestamp UINT32 ssrc; // synchronization source //UINT32 csrc[1]; // optional CSRC list UCHAR buffer[UDP_MAX_SIZE]; } rtp_t; int resume_ethernet_video_thread(void); int resume_ethernet_video_rtcp_thread(void); int resume_ethernet_audio_thread(void); int resume_ethernet_audio_rtcp_thread(void); int resume_ethernet_userdata_thread(void); int resume_ethernet_transport_thread(void); int resume_ethernet_rtsp_thread(void); int resume_audio_input_thread(void); #endif