webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
vq.h
Go to the documentation of this file.
1 /* Copyright (c) 2007-2008 CSIRO
2  Copyright (c) 2007-2009 Xiph.Org Foundation
3  Written by Jean-Marc Valin */
8 /*
9  Redistribution and use in source and binary forms, with or without
10  modification, are permitted provided that the following conditions
11  are met:
12 
13  - Redistributions of source code must retain the above copyright
14  notice, this list of conditions and the following disclaimer.
15 
16  - Redistributions in binary form must reproduce the above copyright
17  notice, this list of conditions and the following disclaimer in the
18  documentation and/or other materials provided with the distribution.
19 
20  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
24  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32 
33 #ifndef VQ_H
34 #define VQ_H
35 
36 #include "entenc.h"
37 #include "entdec.h"
38 #include "modes.h"
39 
40 #if defined(MIPSr1_ASM)
41 #include "mips/vq_mipsr1.h"
42 #endif
43 
44 
54 unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B,
55  ec_enc *enc
56 #ifdef RESYNTH
57  , opus_val16 gain
58 #endif
59  );
60 
68 unsigned alg_unquant(celt_norm *X, int N, int K, int spread, int B,
69  ec_dec *dec, opus_val16 gain);
70 
71 void renormalise_vector(celt_norm *X, int N, opus_val16 gain, int arch);
72 
73 int stereo_itheta(const celt_norm *X, const celt_norm *Y, int stereo, int N, int arch);
74 
75 #endif /* VQ_H */
#define B(x, j)
Definition: sha512.c:425
float opus_val16
Definition: arch.h:148
#define K
Definition: gcc-loops.cpp:16
float celt_norm
Definition: arch.h:152
#define X(sym)
Definition: alsasymboltable_linux.h:139
endif
Definition: downloads.php:90
Definition: entcode.h:62
int stereo_itheta(const celt_norm *X, const celt_norm *Y, int stereo, int N, int arch)
Definition: vq.c:376
#define N
Definition: gcc-loops.cpp:14
string arch
Definition: runtests.py:65
unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B, ec_enc *enc)
Definition: vq.c:161
unsigned alg_unquant(celt_norm *X, int N, int K, int spread, int B, ec_dec *dec, opus_val16 gain)
Definition: vq.c:329
void renormalise_vector(celt_norm *X, int N, opus_val16 gain, int arch)
Definition: vq.c:349