Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: celt/vq.h

Issue 28553003: Updating Opus to a pre-release of 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Removing failing file Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « celt/tests/test_unit_mdct.c ('k') | celt/x86/pitch_sse.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2007-2008 CSIRO 1 /* Copyright (c) 2007-2008 CSIRO
2 Copyright (c) 2007-2009 Xiph.Org Foundation 2 Copyright (c) 2007-2009 Xiph.Org Foundation
3 Written by Jean-Marc Valin */ 3 Written by Jean-Marc Valin */
4 /** 4 /**
5 @file vq.h 5 @file vq.h
6 @brief Vector quantisation of the residual 6 @brief Vector quantisation of the residual
7 */ 7 */
8 /* 8 /*
9 Redistribution and use in source and binary forms, with or without 9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions 10 modification, are permitted provided that the following conditions
(...skipping 22 matching lines...) Expand all
33 #ifndef VQ_H 33 #ifndef VQ_H
34 #define VQ_H 34 #define VQ_H
35 35
36 #include "entenc.h" 36 #include "entenc.h"
37 #include "entdec.h" 37 #include "entdec.h"
38 #include "modes.h" 38 #include "modes.h"
39 39
40 /** Algebraic pulse-vector quantiser. The signal x is replaced by the sum of 40 /** Algebraic pulse-vector quantiser. The signal x is replaced by the sum of
41 * the pitch and a combination of pulses such that its norm is still equal 41 * the pitch and a combination of pulses such that its norm is still equal
42 * to 1. This is the function that will typically require the most CPU. 42 * to 1. This is the function that will typically require the most CPU.
43 * @param x Residual signal to quantise/encode (returns quantised version) 43 * @param X Residual signal to quantise/encode (returns quantised version)
44 * @param W Perceptual weight to use when optimising (currently unused)
45 * @param N Number of samples to encode 44 * @param N Number of samples to encode
46 * @param K Number of pulses to use 45 * @param K Number of pulses to use
47 * @param p Pitch vector (it is assumed that p+x is a unit vector)
48 * @param enc Entropy encoder state 46 * @param enc Entropy encoder state
49 * @ret A mask indicating which blocks in the band received pulses 47 * @ret A mask indicating which blocks in the band received pulses
50 */ 48 */
51 unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B, 49 unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B,
52 ec_enc *enc 50 ec_enc *enc
53 #ifdef RESYNTH 51 #ifdef RESYNTH
54 , opus_val16 gain 52 , opus_val16 gain
55 #endif 53 #endif
56 ); 54 );
57 55
58 /** Algebraic pulse decoder 56 /** Algebraic pulse decoder
59 * @param x Decoded normalised spectrum (returned) 57 * @param X Decoded normalised spectrum (returned)
60 * @param N Number of samples to decode 58 * @param N Number of samples to decode
61 * @param K Number of pulses to use 59 * @param K Number of pulses to use
62 * @param p Pitch vector (automatically added to x)
63 * @param dec Entropy decoder state 60 * @param dec Entropy decoder state
64 * @ret A mask indicating which blocks in the band received pulses 61 * @ret A mask indicating which blocks in the band received pulses
65 */ 62 */
66 unsigned alg_unquant(celt_norm *X, int N, int K, int spread, int B, 63 unsigned alg_unquant(celt_norm *X, int N, int K, int spread, int B,
67 ec_dec *dec, opus_val16 gain); 64 ec_dec *dec, opus_val16 gain);
68 65
69 void renormalise_vector(celt_norm *X, int N, opus_val16 gain); 66 void renormalise_vector(celt_norm *X, int N, opus_val16 gain);
70 67
71 int stereo_itheta(celt_norm *X, celt_norm *Y, int stereo, int N); 68 int stereo_itheta(celt_norm *X, celt_norm *Y, int stereo, int N);
72 69
73 #endif /* VQ_H */ 70 #endif /* VQ_H */
OLDNEW
« no previous file with comments | « celt/tests/test_unit_mdct.c ('k') | celt/x86/pitch_sse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698