mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2024-11-24 15:04:20 +00:00
26 lines
No EOL
1.2 KiB
C
Executable file
26 lines
No EOL
1.2 KiB
C
Executable file
#ifndef _SDP_H_
|
|
#define _SDP_H_
|
|
|
|
#include "avcodec.h"
|
|
|
|
#define CRLF "\r\n"
|
|
#define MAX_SDP_SIZE (512+256)
|
|
#define SDP_LINE_LEN (128+256)
|
|
|
|
#define SDP_BWTYPE_CT 0
|
|
#define SDP_BWTYPE_AS 1
|
|
|
|
void sdp_strcat(unsigned char *buf1, int size, unsigned char *buf2);
|
|
void sdp_fill_o_field(unsigned char *sdp_buf, int size, u8 *username, u32 session_id, u8 session_version, u8* nettype, u8* addrtype, u8* unicast_addr);
|
|
void sdp_fill_s_field(unsigned char *sdp_buf, int size, u8 * session_name);
|
|
void sdp_fill_i_field(unsigned char *sdp_buf, int size, u8 * session_info);
|
|
void sdp_fill_u_field(unsigned char * sdp_buf, int size, u8 *uri);
|
|
void sdp_fill_c_field(unsigned char *sdp_buf, int size, u8 *nettype, u8 *addrtype, u8 *connection_addr, u8 ttl);
|
|
void sdp_fill_b_field(unsigned char *sdp_buf, int size, int bwtype, int bw);
|
|
void sdp_fill_t_field(unsigned char *sdp_buf, int size, u32 start_time, u32 end_time);
|
|
void sdp_fill_m_field(unsigned char *sdp_buf, int size, int media_type, u16 port, int fmt);
|
|
void sdp_fill_a_string(unsigned char *sdp_buf, int size, u8 *string);
|
|
void sdp_fill_a_rtpmap(unsigned char *sdp_buf, int size, struct codec_info *codec);
|
|
|
|
|
|
#endif |