diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-09-04 23:21:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-09-04 23:21:52 +0000 |
commit | 47be8276ed11eca520e0b828d42765f7b892be13 (patch) | |
tree | 037be43eab6ff38da1c5d153ccb00e50a0754fd7 /codecs/G711u | |
parent | ee7166aff1c2c7cd809b05f5119a904a0b978476 (diff) |
Add RCS IDs, introductory comments, and multiple-include protection.
Remove extra blank lines.
svn path=/trunk/; revision=19142
Diffstat (limited to 'codecs/G711u')
-rw-r--r-- | codecs/G711u/G711udecode.c | 25 | ||||
-rw-r--r-- | codecs/G711u/G711udecode.h | 30 | ||||
-rw-r--r-- | codecs/G711u/G711utable.h | 27 |
3 files changed, 75 insertions, 7 deletions
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}; - - - |