diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-09-04 23:21:52 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-09-04 23:21:52 +0000 |
commit | e9d944f8932c532e45e1c87d0adbabcdc3f096e8 (patch) | |
tree | 037be43eab6ff38da1c5d153ccb00e50a0754fd7 /codecs | |
parent | c3b461af5aa02bb55fcd5551901522054e5958bb (diff) |
Add RCS IDs, introductory comments, and multiple-include protection.
Remove extra blank lines.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19142 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/G711a/G711adecode.c | 25 | ||||
-rw-r--r-- | codecs/G711a/G711adecode.h | 28 | ||||
-rw-r--r-- | codecs/G711a/G711atable.h | 27 | ||||
-rw-r--r-- | codecs/G711u/G711udecode.c | 25 | ||||
-rw-r--r-- | codecs/G711u/G711udecode.h | 30 | ||||
-rw-r--r-- | codecs/G711u/G711utable.h | 27 |
6 files changed, 150 insertions, 12 deletions
diff --git a/codecs/G711a/G711adecode.c b/codecs/G711a/G711adecode.c index b427250a64..3461b70836 100644 --- a/codecs/G711a/G711adecode.c +++ b/codecs/G711a/G711adecode.c @@ -1,3 +1,27 @@ +/* G711adecode.c + * A-law G.711 codec + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include <glib.h> #include "G711adecode.h" #include "G711atable.h" @@ -16,4 +40,3 @@ decodeG711a(void *input, int inputSizeBytes, void *output, int *outputSizeBytes) *outputSizeBytes = inputSizeBytes * 2; return 0; } - diff --git a/codecs/G711a/G711adecode.h b/codecs/G711a/G711adecode.h index d680731096..c3d6bf2bab 100644 --- a/codecs/G711a/G711adecode.h +++ b/codecs/G711a/G711adecode.h @@ -1,3 +1,31 @@ +/* G711adecode.h + * Definitions for A-law G.711 codec + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __CODECS_G711ADECODE_H__ +#define __CODECS_G711ADECODE_H__ + int decodeG711a(void *input, int inputSizeBytes, void *output, int *outputSizeBytes); +#endif /* G711adecode.h */ diff --git a/codecs/G711a/G711atable.h b/codecs/G711a/G711atable.h index a8d8999d3f..294f50b115 100644 --- a/codecs/G711a/G711atable.h +++ b/codecs/G711a/G711atable.h @@ -1,4 +1,26 @@ - +/* G711atable.h + * Exponent table for A-law G.711 codec + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ gint16 alaw_exp_table[256] = { -5504, -5248, -6016, -5760, -4480, -4224, -4992, -4736, @@ -33,6 +55,3 @@ gint16 alaw_exp_table[256] = { 1888, 1824, 2016, 1952, 1632, 1568, 1760, 1696, 688, 656, 752, 720, 560, 528, 624, 592, 944, 912, 1008, 976, 816, 784, 880, 848}; - - - diff --git a/codecs/G711u/G711udecode.c b/codecs/G711u/G711udecode.c index 2ac3c8fd85..d453cdd4d9 100644 --- a/codecs/G711u/G711udecode.c +++ b/codecs/G711u/G711udecode.c @@ -1,3 +1,27 @@ +/* G711udecode.c + * mu-law G.711 codec + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include <glib.h> #include "G711udecode.h" #include "G711utable.h" @@ -16,4 +40,3 @@ decodeG711u(void *input, int inputSizeBytes, void *output, int *outputSizeBytes) *outputSizeBytes = inputSizeBytes * 2; return 0; } - diff --git a/codecs/G711u/G711udecode.h b/codecs/G711u/G711udecode.h index 8c70f121f9..30eeefd543 100644 --- a/codecs/G711u/G711udecode.h +++ b/codecs/G711u/G711udecode.h @@ -1,5 +1,31 @@ -int -decodeG711u(void *input, int inputSizeBytes, void *output, int *outputSizeBytes); +/* G711udecode.h + * Definitions for mu-law G.711 codec + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +#ifndef __CODECS_G711UDECODE_H__ +#define __CODECS_G711UDECODE_H__ +int +decodeG711u(void *input, int inputSizeBytes, void *output, int *outputSizeBytes); +#endif /* G711udecode.h */ diff --git a/codecs/G711u/G711utable.h b/codecs/G711u/G711utable.h index 5a75a29c8b..d371491436 100644 --- a/codecs/G711u/G711utable.h +++ b/codecs/G711u/G711utable.h @@ -1,4 +1,26 @@ - +/* G711utable.h + * Exponent table for mu-law G.711 codec + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program 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 2 + * of the License, or (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ gint16 ulaw_exp_table[256] = { -32124,-31100,-30076,-29052,-28028,-27004,-25980,-24956, @@ -33,6 +55,3 @@ gint16 ulaw_exp_table[256] = { 244, 228, 212, 196, 180, 164, 148, 132, 120, 112, 104, 96, 88, 80, 72, 64, 56, 48, 40, 32, 24, 16, 8, 0}; - - - |