[xiph-commits] r13640 - trunk/ghost/libghost
jm at svn.xiph.org
jm at svn.xiph.org
Mon Aug 27 08:53:14 PDT 2007
Author: jm
Date: 2007-08-27 08:53:14 -0700 (Mon, 27 Aug 2007)
New Revision: 13640
Added:
trunk/ghost/libghost/vq.c
trunk/ghost/libghost/vq.h
Modified:
trunk/ghost/libghost/Makefile.am
Log:
Will put some VQ code there.
Modified: trunk/ghost/libghost/Makefile.am
===================================================================
--- trunk/ghost/libghost/Makefile.am 2007-08-27 15:53:06 UTC (rev 13639)
+++ trunk/ghost/libghost/Makefile.am 2007-08-27 15:53:14 UTC (rev 13640)
@@ -10,14 +10,14 @@
# Sources for compilation in the library
libghost_la_SOURCES = adpcm.c ceft.c fftwrap.c filterbank.c ghost.c lifting.c \
- lpc.c misc.c pitch.c sinusoids.c smallft.c vorbis_psy.c
+ lpc.c misc.c pitch.c sinusoids.c smallft.c vorbis_psy.c vq.c
#noinst_HEADERS =
libghost_la_LDFLAGS = -version-info @GHOST_LT_CURRENT@:@GHOST_LT_REVISION@:@GHOST_LT_AGE@
noinst_HEADERS = adpcm.h arch.h ceft.h fftwrap.h filterbank.h ghost.h lifting.h \
- lpc.h misc.h pitch.h smallft.h vorbis_psy.h
+ lpc.h misc.h pitch.h smallft.h vorbis_psy.h vq.h
noinst_PROGRAMS = testghost
testghost_SOURCES = testghost.c
Added: trunk/ghost/libghost/vq.c
===================================================================
--- trunk/ghost/libghost/vq.c (rev 0)
+++ trunk/ghost/libghost/vq.c 2007-08-27 15:53:14 UTC (rev 13640)
@@ -0,0 +1,31 @@
+/* Copyright (C) 2007
+
+ Code-Excited Fourier Transform -- This is highly experimental and
+ it's not clear at all it even has a remote chance of working
+
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+struct VQuantiser_ {
+ int len;
+ int entries;
+ float *means;
+};
+
+void vq_train(float *data, int N, int len, int entries)
+{
+
+}
Added: trunk/ghost/libghost/vq.h
===================================================================
--- trunk/ghost/libghost/vq.h (rev 0)
+++ trunk/ghost/libghost/vq.h 2007-08-27 15:53:14 UTC (rev 13640)
@@ -0,0 +1,24 @@
+/* Copyright (C) 2007
+
+ Code-Excited Fourier Transform -- This is highly experimental and
+ it's not clear at all it even has a remote chance of working
+
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+struct VQuantiser_;
+
+typedef struct VQuantiser_ VQuantiser;
\ No newline at end of file
More information about the commits
mailing list