summaryrefslogtreecommitdiff
path: root/codecs/G711a
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-09-04 23:21:52 +0000
committerGuy Harris <guy@alum.mit.edu>2006-09-04 23:21:52 +0000
commit47be8276ed11eca520e0b828d42765f7b892be13 (patch)
tree037be43eab6ff38da1c5d153ccb00e50a0754fd7 /codecs/G711a
parentee7166aff1c2c7cd809b05f5119a904a0b978476 (diff)
downloadwireshark-47be8276ed11eca520e0b828d42765f7b892be13.tar.gz
Add RCS IDs, introductory comments, and multiple-include protection.
Remove extra blank lines. svn path=/trunk/; revision=19142
Diffstat (limited to 'codecs/G711a')
-rw-r--r--codecs/G711a/G711adecode.c25
-rw-r--r--codecs/G711a/G711adecode.h28
-rw-r--r--codecs/G711a/G711atable.h27
3 files changed, 75 insertions, 5 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};
-
-
-