2 * Defines IAX2 codec types
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __IAX2_CODEC_TYPE_H__
24 #define __IAX2_CODEC_TYPE_H__
27 /* Ref: frame.h from Asterisk source */
29 /* Data formats for capabilities and frames alike */
30 /* suitable for use in iax2.codec dissector table */
31 /*! G.723.1 compression */
32 #define AST_FORMAT_G723_1 (1 << 0)
33 /*! GSM compression */
34 #define AST_FORMAT_GSM (1 << 1)
35 /*! Raw mu-law data (G.711) */
36 #define AST_FORMAT_ULAW (1 << 2)
37 /*! Raw A-law data (G.711) */
38 #define AST_FORMAT_ALAW (1 << 3)
39 /*! ADPCM (G.726, 32kbps) */
40 #define AST_FORMAT_G726_AAL2 (1 << 4)
42 #define AST_FORMAT_ADPCM (1 << 5)
43 /*! Raw 16-bit Signed Linear (8000 Hz) PCM */
44 #define AST_FORMAT_SLINEAR (1 << 6)
45 /*! LPC10, 180 samples/frame */
46 #define AST_FORMAT_LPC10 (1 << 7)
48 #define AST_FORMAT_G729A (1 << 8)
49 /*! SpeeX Free Compression */
50 #define AST_FORMAT_SPEEX (1 << 9)
51 /*! iLBC Free Compression */
52 #define AST_FORMAT_ILBC (1 << 10)
53 /*! ADPCM (G.726, 32kbps, RFC3551 codeword packing) */
54 #define AST_FORMAT_G726 (1 << 11)
56 #define AST_FORMAT_G722 (1 << 12)
57 /*! G.722.1 (also known as Siren7, 32kbps assumed) */
58 #define AST_FORMAT_SIREN7 (1 << 13)
59 /*! G.722.1 Annex C (also known as Siren14, 48kbps assumed) */
60 #define AST_FORMAT_SIREN14 (1 << 14)
61 /*! Raw 16-bit Signed Linear (16000 Hz) PCM */
62 #define AST_FORMAT_SLINEAR16 (1 << 15)
63 /*! Maximum audio format */
64 #define AST_FORMAT_MAX_AUDIO (1 << 15)
66 #define AST_FORMAT_JPEG (1 << 16)
68 #define AST_FORMAT_PNG (1 << 17)
70 #define AST_FORMAT_H261 (1 << 18)
72 #define AST_FORMAT_H263 (1 << 19)
74 #define AST_FORMAT_H263_PLUS (1 << 20)
76 #define AST_FORMAT_H264 (1 << 21)
78 #define AST_FORMAT_MP4_VIDEO (1 << 22)
80 #define AST_FORMAT_MAX_VIDEO (1 << 24)
81 /*! G.719 (64 kbps assumed) */
82 #define AST_FORMAT_G719 (1 << 32)
83 /*! SpeeX Wideband (16kHz) Free Compression */
84 #define AST_FORMAT_SPEEX16 (1 << 33)
87 /* data format for IAX_IE_DATAFORMAT ie */
88 /* suitable for use in iax2.dataformat dissector table */
90 AST_DATAFORMAT_NULL, /* N/A: analogue call etc */
91 AST_DATAFORMAT_V110, /* ITU-T V.110 rate adaption */
92 AST_DATAFORMAT_H223_H245 /* ITU-T H.223/H.245 */