Backport of sqrt() domain fix to mainline.
[platform/upstream/libvorbis.git] / lib / spectrum.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE.  *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5  * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE.    *
6  * PLEASE READ THESE TERMS DISTRIBUTING.                            *
7  *                                                                  *
8  * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000             *
9  * by Monty <monty@xiph.org> and The XIPHOPHORUS Company            *
10  * http://www.xiph.org/                                             *
11  *                                                                  *
12  ********************************************************************
13
14  function: spectrum envelope and residue code/decode
15  last mod: $Id: spectrum.h,v 1.4 2000/01/04 09:05:04 xiphmont Exp $
16
17  ********************************************************************/
18
19 #ifndef _V_SPECT_H_
20 #define _V_SPECT_H_
21
22 extern int  _vs_spectrum_encode(vorbis_block *vb,double amp,double *lsp);
23 extern int  _vs_spectrum_decode(vorbis_block *vb,double *amp,double *lsp);
24 extern void _vs_residue_quantize(double *data,double *curve,
25                                  vorbis_info *vi,int n);
26 extern int  _vs_residue_encode(vorbis_block *vb,double *data);
27 extern int  _vs_residue_decode(vorbis_block *vb,double *data);
28
29 extern void _vs_residue_train(vorbis_block *vb,double *data,double *curve,
30                               int n);
31
32 #endif