Warning fix: voip_calls_dlg.c:733: implicit declaration of function rtp_event_init_tap
[obnox/wireshark/wip.git] / iax2_codec_type.h
1 /* iax2_codec_type.h
2  * Defines IAX2 codec types
3  *
4  * $Id$
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (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-1307, USA.
23  */
24
25 #ifndef __IAX2_CODEC_TYPE_H__
26 #define __IAX2_CODEC_TYPE_H__
27
28
29 /* Ref: frame.h from Asterisk source */
30
31 /* Data formats for capabilities and frames alike */
32 /* suitable for use in iax2.codec dissector table */
33 /*! G.723.1 compression */
34 #define AST_FORMAT_G723_1       (1 << 0)
35 /*! GSM compression */
36 #define AST_FORMAT_GSM          (1 << 1)
37 /*! Raw mu-law data (G.711) */
38 #define AST_FORMAT_ULAW         (1 << 2)
39 /*! Raw A-law data (G.711) */
40 #define AST_FORMAT_ALAW         (1 << 3)
41 /*! ADPCM (G.726, 32kbps) */
42 #define AST_FORMAT_G726         (1 << 4)
43 /*! ADPCM (IMA) */
44 #define AST_FORMAT_ADPCM        (1 << 5)
45 /*! Raw 16-bit Signed Linear (8000 Hz) PCM */
46 #define AST_FORMAT_SLINEAR      (1 << 6)
47 /*! LPC10, 180 samples/frame */
48 #define AST_FORMAT_LPC10        (1 << 7)
49 /*! G.729A audio */
50 #define AST_FORMAT_G729A        (1 << 8)
51 /*! SpeeX Free Compression */
52 #define AST_FORMAT_SPEEX        (1 << 9)
53 /*! iLBC Free Compression */
54 #define AST_FORMAT_ILBC         (1 << 10)
55 /*! Maximum audio format */
56 #define AST_FORMAT_MAX_AUDIO    (1 << 15)
57 /*! JPEG Images */
58 #define AST_FORMAT_JPEG         (1 << 16)
59 /*! PNG Images */
60 #define AST_FORMAT_PNG          (1 << 17)
61 /*! H.261 Video */
62 #define AST_FORMAT_H261         (1 << 18)
63 /*! H.263 Video */
64 #define AST_FORMAT_H263         (1 << 19)
65 /*! Max one */
66 #define AST_FORMAT_MAX_VIDEO    (1 << 24)
67
68
69 /* data format for IAX_IE_DATAFORMAT ie */
70 /* suitable for use in iax2.dataformat dissector table */
71 typedef enum {
72     AST_DATAFORMAT_NULL,        /* N/A: analogue call etc */
73     AST_DATAFORMAT_V110,        /* ITU-T V.110 rate adaption */
74     AST_DATAFORMAT_H223_H245    /* ITU-T H.223/H.245 */
75 } iax_dataformat_t;
76
77 #endif