diff options
Diffstat (limited to 'tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h')
-rwxr-xr-x | tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h | 53 |
1 files changed, 25 insertions, 28 deletions
diff --git a/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h b/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h index cb0e33e..d739ad0 100755 --- a/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h +++ b/tinyDAV/include/tinydav/codecs/amr/tdav_codec_amr.h @@ -2,19 +2,19 @@ * Copyright (C) 2010-2011 Mamadou Diop. * * Contact: Mamadou Diop <diopmamadou(at)doubango.org> -* +* * This file is part of Open Source Doubango Framework. * * DOUBANGO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. -* +* * DOUBANGO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with DOUBANGO. * @@ -44,38 +44,35 @@ TDAV_BEGIN_DECLS #define TDAV_CODEC_AMR(self) ((tdav_codec_amr_t*)(self)) -typedef enum tdav_codec_amr_type_e -{ - tdav_codec_amr_type_nb, - tdav_codec_amr_type_wb, +typedef enum tdav_codec_amr_type_e { + tdav_codec_amr_type_nb, + tdav_codec_amr_type_wb, } tdav_codec_amr_type_t; -typedef enum tdav_codec_amr_mode_e -{ - tdav_codec_amr_mode_oa, - tdav_codec_amr_mode_be, +typedef enum tdav_codec_amr_mode_e { + tdav_codec_amr_mode_oa, + tdav_codec_amr_mode_be, } tdav_codec_amr_mode_t; /** Base class for all AMR codecs */ -typedef struct tdav_codec_amr_s -{ - TMEDIA_DECLARE_CODEC_AUDIO; - - tdav_codec_amr_type_t type; - tdav_codec_amr_mode_t mode; - - enum Mode encoder_mode; - void* encoder; - void* decoder; - - unsigned modes:16; /**< 0..7 for NB and 0..8 for WB plus SID, SPEECH_LOST, NO_DATA etc etc */ - unsigned mcp:2; /**< mode-change-periode (1 or 2) */ - unsigned mcc:2; /**< mode-change-capability (1 or 2) */ - unsigned mcn:1; /**< mode-change-neighnor (0 or 1) */ - unsigned crc:1; /**< 0 or 1 */ - unsigned robust_sorting:1; /**< robust-sorting (0 or 1) */ +typedef struct tdav_codec_amr_s { + TMEDIA_DECLARE_CODEC_AUDIO; + + tdav_codec_amr_type_t type; + tdav_codec_amr_mode_t mode; + + enum Mode encoder_mode; + void* encoder; + void* decoder; + + unsigned modes:16; /**< 0..7 for NB and 0..8 for WB plus SID, SPEECH_LOST, NO_DATA etc etc */ + unsigned mcp:2; /**< mode-change-periode (1 or 2) */ + unsigned mcc:2; /**< mode-change-capability (1 or 2) */ + unsigned mcn:1; /**< mode-change-neighnor (0 or 1) */ + unsigned crc:1; /**< 0 or 1 */ + unsigned robust_sorting:1; /**< robust-sorting (0 or 1) */ } tdav_codec_amr_t; |