Commit 2637317a authored by Monty's avatar Monty
Browse files

All sample rates/modes with fresh training now in CVS.

(Training run must now be thoroughly tested)

Floor1 divide by zero bugfix
added option for modern PowerPC optimization to configure.in
more comments in examples/encoder_example.c

svn path=/trunk/vorbis/; revision=3574
parent b0b818ca
......@@ -121,8 +121,8 @@ else
fi;;
powerpc-*-linux*)
DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES"
CFLAGS="-O3 -ffast-math -mfused-madd -D_REENTRANT"
PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
CFLAGS="-O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
*-*-linux*)
DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: illustrate simple use of chained bitstream and vorbisfile.a
last mod: $Id: chaining_example.c,v 1.16 2002/03/07 03:41:02 xiphmont Exp $
last mod: $Id: chaining_example.c,v 1.17 2002/07/11 06:40:47 xiphmont Exp $
********************************************************************/
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: simple example decoder
last mod: $Id: decoder_example.c,v 1.25 2002/01/22 08:06:05 xiphmont Exp $
last mod: $Id: decoder_example.c,v 1.26 2002/07/11 06:40:47 xiphmont Exp $
********************************************************************/
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: simple example encoder
last mod: $Id: encoder_example.c,v 1.45 2002/07/02 04:25:15 xiphmont Exp $
last mod: $Id: encoder_example.c,v 1.46 2002/07/11 06:40:47 xiphmont Exp $
********************************************************************/
......@@ -52,7 +52,7 @@ int main(){
vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */
vorbis_block vb; /* local working space for packet->PCM decode */
int eos=0;
int eos=0,ret;
int i, founddata;
#if defined(macintosh) && defined(__MWERKS__)
......@@ -67,6 +67,8 @@ int main(){
example, after all. */
#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */
/* if we were reading/writing a file, it would also need to in
binary mode, eg, 'fopen("file.wav","rb"); */
/* Beware the evil ifdef. We avoid these where we can, but this one we
cannot. Don't add any more, you'll probably go to hell if you do. */
_setmode( _fileno( stdin ), _O_BINARY );
......@@ -93,16 +95,46 @@ int main(){
/********** Encode setup ************/
/* choose an encoding mode */
/* (quality mode .4: 44kHz stereo coupled, roughly 128kbps VBR) */
vorbis_info_init(&vi);
/* choose an encoding mode. A few possibilities commented out, one
actually used: */
/*********************************************************************
Encoding using a VBR quality mode. The usable range is -.1
(lowest quality, smallest file) to 1. (highest quality, largest file).
Example quality mode .4: 44kHz stereo coupled, roughly 128kbps VBR
ret = vorbis_encode_init_vbr(&vi,2,44100,-.4);
---------------------------------------------------------------------
Encoding using an average bitrate mode (ABR).
example: 44kHz stereo coupled, average 128kbps VBR
ret = vorbis_encode_init(&vi,2,44100,-1,128000,-1);
---------------------------------------------------------------------
Encode using a qulity mode, but select that quality mode by asking for
an approximate bitrate. This is not ABR, it is true VBR, but selected
using the bitrate interface, and then turning bitrate management off:
ret = ( vorbis_encode_setup_managed(&vi,2,44100,-1,128000,-1) ||
vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE_AVG,NULL) ||
vorbis_encode_setup_init(&vi));
*********************************************************************/
vorbis_encode_init(&vi,2,32000,-1,48000,-1);
//vorbis_encode_init_vbr(&vi,2,32000,1.);
//ret=vorbis_encode_init(&vi,2,44100,-1,64000,-1);
ret=vorbis_encode_init_vbr(&vi,2,16000,.5);
/* do not continue if setup failed; this can happen if we ask for a
mode that libVorbis does not support (eg, too low a bitrate, etc,
will return 'OV_EIMPL') */
//vorbis_encode_setup_managed(&vi,2,44100,-1,128000,-1);
//vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE_AVG,NULL);
//vorbis_encode_setup_init(&vi);
if(ret)exit(1);
/* add a comment */
vorbis_comment_init(&vc);
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: illustrate seeking, and test it too
last mod: $Id: seeking_example.c,v 1.14 2002/07/09 13:41:08 giles Exp $
last mod: $Id: seeking_example.c,v 1.15 2002/07/11 06:40:47 xiphmont Exp $
********************************************************************/
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: simple example decoder using vorbisfile
last mod: $Id: vorbisfile_example.c,v 1.9 2001/12/20 01:00:24 segher Exp $
last mod: $Id: vorbisfile_example.c,v 1.10 2002/07/11 06:40:47 xiphmont Exp $
********************************************************************/
......
......@@ -11,7 +11,7 @@
********************************************************************
function: single-block PCM analysis mode dispatch
last mod: $Id: analysis.c,v 1.54 2002/07/01 11:20:10 xiphmont Exp $
last mod: $Id: analysis.c,v 1.55 2002/07/11 06:40:48 xiphmont Exp $
********************************************************************/
......@@ -77,11 +77,11 @@ void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB,ogg
for(j=0;j<n;j++){
if(bark){
float b=toBARK((22050.f*j/n)+.25);
float b=toBARK((4000.f*j/n)+.25);
fprintf(of,"%f ",b);
}else
if(off!=0)
fprintf(of,"%f ",(double)(j+off)/44100.);
fprintf(of,"%f ",(double)(j+off)/8000.);
else
fprintf(of,"%f ",(double)j);
......
......@@ -5,14 +5,14 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: libvorbis backend and mapping structures; needed for
static mode headers
last mod: $Id: backends.h,v 1.13 2002/06/28 22:19:35 xiphmont Exp $
last mod: $Id: backends.h,v 1.14 2002/07/11 06:40:48 xiphmont Exp $
********************************************************************/
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: bark scale utility
last mod: $Id: barkmel.c,v 1.11 2002/06/30 08:31:00 xiphmont Exp $
last mod: $Id: barkmel.c,v 1.12 2002/07/11 06:40:48 xiphmont Exp $
********************************************************************/
......
......@@ -11,7 +11,7 @@
********************************************************************
function: bitrate tracking and management
last mod: $Id: bitrate.c,v 1.17 2002/07/02 04:25:16 xiphmont Exp $
last mod: $Id: bitrate.c,v 1.18 2002/07/11 06:40:48 xiphmont Exp $
********************************************************************/
......@@ -293,7 +293,7 @@ int vorbis_bitrate_addblock(vorbis_block *vb){
/* apply the average floater to new blocks */
bin=rint(bm->avgfloat);
/*fprintf(stderr,"%d ",bin);*/
fprintf(stderr,"%d ",bin);
while(bm->avg_centeracc>desired_center){
......
......@@ -5,13 +5,13 @@
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: bitrate tracking and management
last mod: $Id: bitrate.h,v 1.6 2002/06/28 22:19:35 xiphmont Exp $
last mod: $Id: bitrate.h,v 1.7 2002/07/11 06:40:48 xiphmont Exp $
********************************************************************/
......
......@@ -11,7 +11,7 @@
********************************************************************
function: PCM data vector blocking, windowing and dis/reassembly
last mod: $Id: block.c,v 1.66 2002/07/03 05:26:17 xiphmont Exp $
last mod: $Id: block.c,v 1.67 2002/07/11 06:40:48 xiphmont Exp $
Handle windowing, overlap-add, etc of the PCM vectors. This is made
more amusing by Vorbis' current two allowed block sizes.
......@@ -508,7 +508,11 @@ int vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb){
full long block */
v->nW=0;
}else{
v->nW=bp;
if(ci->blocksizes[0]==ci->blocksizes[1])
v->nW=0;
else
v->nW=bp;
}
}
......
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: static codebook autogenerated by vq/somethingorother
********************************************************************/
#ifndef _V__44c4_s0_p0_r0_VQH_
#define _V__44c4_s0_p0_r0_VQH_
#include "codebook.h"
static long _vq_quantlist__44c4_s0_p0_r0[] = {
2,
1,
3,
0,
4,
};
static long _vq_lengthlist__44c4_s0_p0_r0[] = {
1, 5, 4,11,11,11, 4, 4,11,11,11, 3, 3,11,11,11,
7, 6,11,11,11,11,11,11,11,
};
static float _vq_quantthresh__44c4_s0_p0_r0[] = {
-0.5, -0.16667, 0.16667, 0.5,
};
static long _vq_quantmap__44c4_s0_p0_r0[] = {
3, 1, 0, 2, 4,
};
static encode_aux_threshmatch _vq_auxt__44c4_s0_p0_r0 = {
_vq_quantthresh__44c4_s0_p0_r0,
_vq_quantmap__44c4_s0_p0_r0,
5,
5
};
static static_codebook _44c4_s0_p0_r0 = {
2, 25,
_vq_lengthlist__44c4_s0_p0_r0,
1, -537569963, 1607816533, 3, 0,
_vq_quantlist__44c4_s0_p0_r0,
NULL,
&_vq_auxt__44c4_s0_p0_r0,
NULL,
0
};
#endif
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: static codebook autogenerated by vq/somethingorother
********************************************************************/
#ifndef _V__44c4_s0_p0_r1_VQH_
#define _V__44c4_s0_p0_r1_VQH_
#include "codebook.h"
static long _vq_quantlist__44c4_s0_p0_r1[] = {
2,
1,
3,
0,
4,
};
static long _vq_lengthlist__44c4_s0_p0_r1[] = {
1, 4, 4,11,11, 5, 4, 4,11,11, 5, 4, 4,11,11,11,
7, 6,11,10,10, 6, 6,10,10,
};
static float _vq_quantthresh__44c4_s0_p0_r1[] = {
-0.16667, -0.055556, 0.055556, 0.16667,
};
static long _vq_quantmap__44c4_s0_p0_r1[] = {
3, 1, 0, 2, 4,
};
static encode_aux_threshmatch _vq_auxt__44c4_s0_p0_r1 = {
_vq_quantthresh__44c4_s0_p0_r1,
_vq_quantmap__44c4_s0_p0_r1,
5,
5
};
static static_codebook _44c4_s0_p0_r1 = {
2, 25,
_vq_lengthlist__44c4_s0_p0_r1,
1, -541298233, 1604088263, 3, 0,
_vq_quantlist__44c4_s0_p0_r1,
NULL,
&_vq_auxt__44c4_s0_p0_r1,
NULL,
0
};
#endif
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: static codebook autogenerated by vq/somethingorother
********************************************************************/
#ifndef _V__44c4_s0_p1_0_VQH_
#define _V__44c4_s0_p1_0_VQH_
#include "codebook.h"
static long _vq_quantlist__44c4_s0_p1_0[] = {
2,
1,
3,
0,
4,
};
static long _vq_lengthlist__44c4_s0_p1_0[] = {
2, 5, 5, 0, 0, 0, 5, 5, 0, 0, 0, 5, 5, 0, 0, 0,
7, 7, 0, 0, 0, 0, 0, 0, 0, 5, 6, 6, 0, 0, 0, 8,
7, 0, 0, 0, 7, 7, 0, 0, 0,10,10, 0, 0, 0, 0, 0,
0, 0, 5, 6, 6, 0, 0, 0, 7, 8, 0, 0, 0, 7, 7, 0,
0, 0,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 5, 7, 7, 0, 0, 0, 7, 7, 0, 0,
0, 7, 7, 0, 0, 0, 9, 8, 0, 0, 0, 0, 0, 0, 0, 5,
7, 7, 0, 0, 0, 7, 7, 0, 0, 0, 7, 7, 0, 0, 0, 9,
9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 5, 8, 7, 0, 0, 0, 7, 7, 0, 0, 0, 7, 7,
0, 0, 0, 9, 9, 0, 0, 0, 0, 0, 0, 0, 5, 7, 8, 0,
0, 0, 7, 7, 0, 0, 0, 7, 7, 0, 0, 0, 9, 9, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
7,10,10, 0, 0, 0, 9, 9, 0, 0, 0, 8, 9, 0, 0, 0,
10,10, 0, 0, 0, 0, 0, 0, 0, 7,10,10, 0, 0, 0, 9,
9, 0, 0, 0, 9, 9, 0, 0, 0,10,10, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,
};
static float _vq_quantthresh__44c4_s0_p1_0[] = {
-1.5, -0.5, 0.5, 1.5,
};
static long _vq_quantmap__44c4_s0_p1_0[] = {
3, 1, 0, 2, 4,
};
static encode_aux_threshmatch _vq_auxt__44c4_s0_p1_0 = {
_vq_quantthresh__44c4_s0_p1_0,
_vq_quantmap__44c4_s0_p1_0,
5,
5
};
static static_codebook _44c4_s0_p1_0 = {
4, 625,
_vq_lengthlist__44c4_s0_p1_0,
1, -533725184, 1611661312, 3, 0,
_vq_quantlist__44c4_s0_p1_0,
NULL,
&_vq_auxt__44c4_s0_p1_0,
NULL,
0
};
#endif
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: static codebook autogenerated by vq/somethingorother
********************************************************************/
#ifndef _V__44c4_s0_p7_0_VQH_
#define _V__44c4_s0_p7_0_VQH_
#include "codebook.h"
static long _vq_quantlist__44c4_s0_p7_0[] = {
6,
5,
7,
4,
8,
3,
9,
2,
10,
1,
11,
0,
12,
};
static long _vq_lengthlist__44c4_s0_p7_0[] = {
1, 3, 4, 6, 6, 8, 9, 0, 0, 0, 0, 0, 0, 5, 5, 5,
7, 7, 9, 9, 0, 0, 0, 0, 0, 0, 6, 5, 5, 7, 7, 9,
9, 0, 0, 0, 0, 0, 0, 0, 7, 7, 8, 8,10,10, 0, 0,
0, 0, 0, 0, 0, 8, 7, 8, 8,10,10, 0, 0, 0, 0, 0,
0, 0,11,12, 9, 9,11,10, 0, 0, 0, 0, 0, 0, 0,13,
12, 9, 9,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0,11,11,
11,11, 0, 0, 0, 0, 0, 0, 0, 0, 0,11,11,11,11, 0,
0, 0, 0, 0, 0, 0, 0, 0,14,15,12,12, 0, 0, 0, 0,
0, 0, 0, 0, 0,15,15,12,12, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,14,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,14,15, 0, 0, 0, 0, 0, 0,
};
static float _vq_quantthresh__44c4_s0_p7_0[] = {
-27.5, -22.5, -17.5, -12.5, -7.5, -2.5, 2.5, 7.5,
12.5, 17.5, 22.5, 27.5,
};
static long _vq_quantmap__44c4_s0_p7_0[] = {
11, 9, 7, 5, 3, 1, 0, 2,
4, 6, 8, 10, 12,
};
static encode_aux_threshmatch _vq_auxt__44c4_s0_p7_0 = {
_vq_quantthresh__44c4_s0_p7_0,
_vq_quantmap__44c4_s0_p7_0,
13,
13
};
static static_codebook _44c4_s0_p7_0 = {
2, 169,
_vq_lengthlist__44c4_s0_p7_0,
1, -526516224, 1616117760, 4, 0,
_vq_quantlist__44c4_s0_p7_0,
NULL,
&_vq_auxt__44c4_s0_p7_0,
NULL,
0
};
#endif
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
* *
********************************************************************
function: static codebook autogenerated by vq/somethingorother
********************************************************************/
#ifndef _V__44c4_s0_p7_1_VQH_
#define _V__44c4_s0_p7_1_VQH_
#include "codebook.h"
static long _vq_quantlist__44c4_s0_p7_1[] = {
2,
1,
3,
0,
4,
};
static long _vq_lengthlist__44c4_s0_p7_1[] = {
2, 4, 4, 5, 5, 7, 4, 4, 6, 6, 7, 4, 4, 5, 5, 7,
5, 5, 5, 6, 7, 7, 7, 5, 5,
};
static float _vq_quantthresh__44c4_s0_p7_1[] = {
-1.5, -0.5, 0.5, 1.5,
};
static long _vq_quantmap__44c4_s0_p7_1[] = {
3, 1, 0, 2, 4,
};
static encode_aux_threshmatch _vq_auxt__44c4_s0_p7_1 = {
_vq_quantthresh__44c4_s0_p7_1,
_vq_quantmap__44c4_s0_p7_1,
5,
5
};
static static_codebook _44c4_s0_p7_1 = {
2, 25,
_vq_lengthlist__44c4_s0_p7_1,
1, -533725184, 1611661312, 3, 0,
_vq_quantlist__44c4_s0_p7_1,