]> git.sesse.net Git - vlc/blob - modules/mux/rtp/rtp.h
update module LIST file.
[vlc] / modules / mux / rtp / rtp.h
1 /*****************************************************************************
2  * rtp.h: RTP/RTCP headerfile
3  *****************************************************************************
4  * Copyright (C) 2005 M2X
5  *
6  * $Id$
7  *
8  * Authors: Jean-Paul Saman <jpsaman #_at_# videolan dot org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 #ifndef _RTP_H
26 #define _RTP_H 1
27
28 #define RTP_HEADER_LEN 12
29 #define RTP_SEQ_NUM_SIZE 65536
30
31 /*
32  * See RFC 1889 & RFC 2250.
33  */
34 typedef struct {
35     int fd;        /*< socket descriptor of rtp stream */
36
37     unsigned int u_version;      /*< rtp version number */
38     unsigned int u_CSRC_count;   /*< CSRC count */
39     unsigned int u_payload_type; /*< type of RTP payload stream */
40     vlc_bool_t   b_extension;    /*< The header is followed by exactly one header extension */
41     unsigned int u_marker;       /*< marker field expect 1 */
42     unsigned int u_seq_no;       /*< sequence number of RTP stream */
43     uint32_t i_timestamp;        /*< timestamp of stream */
44     unsigned int ssrc;           /*< stream number is used here. */
45
46     unsigned int u_ext_length;   /*< lenght of extension field */
47
48     /*int (*pf_connect)( void *p_userdata, char *p_server, int i_port );
49     int (*pf_disconnect)( void *p_userdata );
50     int (*pf_read)( void *p_userdata, uint8_t *p_buffer, int i_buffer );
51     int (*pf_write)( void *p_userdata, uint8_t *p_buffer, int i_buffer );*/
52 } rtp_t;
53
54 #endif /* RTP_H */