21 #include "../ogg/ogg.h"
22 #include "../vorbis/codec.h"
53 memset(info,0,
sizeof(*info));
69 memset(look,0,
sizeof(*look));
86 if(info->
order<1)
goto err_out;
87 if(info->
rate<1)
goto err_out;
88 if(info->
barkmap<1)
goto err_out;
98 floor0_free_info(info);
136 if(val>=look->
ln)val=look->
ln-1;
164 long maxval=(1<<info->
ampbits)-1;
168 if(booknum!=-1 && booknum<info->numbooks){
178 for(j=0;j<look->
m;j+=b->
dim)
181 for(k=0;k<b->
dim;k++,j++)lsp[j]+=last;
194 void *memo,
float *out){
198 floor0_map_lazy_init(vb,info,look);
201 float *lsp=(
float *)memo;
202 float amp=lsp[look->
m];
209 lsp,look->
m,amp,(
float)info->
ampdB);
212 memset(out,0,
sizeof(*out)*look->
n[vb->
W]);
218 NULL,&floor0_unpack,&floor0_look,&floor0_free_info,
219 &floor0_free_look,&floor0_inverse1,&floor0_inverse2
GLenum GLenum GLenum GLenum GLenum scale
void vorbis_lsp_to_curve(float *curve, int *map, int n, int ln, float *lsp, int m, float amp, float ampoffset)
int _ilog(unsigned int v)
long oggpack_read(oggpack_buffer *b, int bits)
long vorbis_book_decodev_set(codebook *book, float *a, oggpack_buffer *b, int n)
void * _vorbis_block_alloc(vorbis_block *vb, long bytes)
vorbis_func_floor floor0_exportbundle