forked from osmocom/wireshark
![Dario Lombardo](/assets/img/avatar_default.png)
Skipping dissectors dir for now. Change-Id: I717b66bfbc7cc81b83f8c2cbc011fcad643796aa Reviewed-on: https://code.wireshark.org/review/25694 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
84 lines
2.5 KiB
C
84 lines
2.5 KiB
C
/* iax2_codec_type.h
|
|
* Defines IAX2 codec types
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef __IAX2_CODEC_TYPE_H__
|
|
#define __IAX2_CODEC_TYPE_H__
|
|
|
|
|
|
/* Ref: frame.h from Asterisk source */
|
|
|
|
/* Data formats for capabilities and frames alike */
|
|
/* suitable for use in iax2.codec dissector table */
|
|
/*! G.723.1 compression */
|
|
#define AST_FORMAT_G723_1 (1 << 0)
|
|
/*! GSM compression */
|
|
#define AST_FORMAT_GSM (1 << 1)
|
|
/*! Raw mu-law data (G.711) */
|
|
#define AST_FORMAT_ULAW (1 << 2)
|
|
/*! Raw A-law data (G.711) */
|
|
#define AST_FORMAT_ALAW (1 << 3)
|
|
/*! ADPCM (G.726, 32kbps) */
|
|
#define AST_FORMAT_G726_AAL2 (1 << 4)
|
|
/*! ADPCM (IMA) */
|
|
#define AST_FORMAT_ADPCM (1 << 5)
|
|
/*! Raw 16-bit Signed Linear (8000 Hz) PCM */
|
|
#define AST_FORMAT_SLINEAR (1 << 6)
|
|
/*! LPC10, 180 samples/frame */
|
|
#define AST_FORMAT_LPC10 (1 << 7)
|
|
/*! G.729A audio */
|
|
#define AST_FORMAT_G729A (1 << 8)
|
|
/*! SpeeX Free Compression */
|
|
#define AST_FORMAT_SPEEX (1 << 9)
|
|
/*! iLBC Free Compression */
|
|
#define AST_FORMAT_ILBC (1 << 10)
|
|
/*! ADPCM (G.726, 32kbps, RFC3551 codeword packing) */
|
|
#define AST_FORMAT_G726 (1 << 11)
|
|
/*! G.722 */
|
|
#define AST_FORMAT_G722 (1 << 12)
|
|
/*! G.722.1 (also known as Siren7, 32kbps assumed) */
|
|
#define AST_FORMAT_SIREN7 (1 << 13)
|
|
/*! G.722.1 Annex C (also known as Siren14, 48kbps assumed) */
|
|
#define AST_FORMAT_SIREN14 (1 << 14)
|
|
/*! Raw 16-bit Signed Linear (16000 Hz) PCM */
|
|
#define AST_FORMAT_SLINEAR16 (1 << 15)
|
|
/*! Maximum audio format */
|
|
#define AST_FORMAT_MAX_AUDIO (1 << 15)
|
|
/*! JPEG Images */
|
|
#define AST_FORMAT_JPEG (1 << 16)
|
|
/*! PNG Images */
|
|
#define AST_FORMAT_PNG (1 << 17)
|
|
/*! H.261 Video */
|
|
#define AST_FORMAT_H261 (1 << 18)
|
|
/*! H.263 Video */
|
|
#define AST_FORMAT_H263 (1 << 19)
|
|
/*! H.263+ Video */
|
|
#define AST_FORMAT_H263_PLUS (1 << 20)
|
|
/*! H.264 Video */
|
|
#define AST_FORMAT_H264 (1 << 21)
|
|
/*! MPEG4 Video */
|
|
#define AST_FORMAT_MP4_VIDEO (1 << 22)
|
|
/*! Max one */
|
|
#define AST_FORMAT_MAX_VIDEO (1 << 24)
|
|
/*! G.719 (64 kbps assumed) */
|
|
#define AST_FORMAT_G719 (1 << 32)
|
|
/*! SpeeX Wideband (16kHz) Free Compression */
|
|
#define AST_FORMAT_SPEEX16 (1 << 33)
|
|
|
|
|
|
/* data format for IAX_IE_DATAFORMAT ie */
|
|
/* suitable for use in iax2.dataformat dissector table */
|
|
typedef enum {
|
|
AST_DATAFORMAT_NULL, /* N/A: analogue call etc */
|
|
AST_DATAFORMAT_V110, /* ITU-T V.110 rate adaption */
|
|
AST_DATAFORMAT_H223_H245 /* ITU-T H.223/H.245 */
|
|
} iax_dataformat_t;
|
|
|
|
#endif
|