~ubuntu-branches/ubuntu/raring/mumble/raring

« back to all changes in this revision

Viewing changes to celt-0.11.0-src/libcelt/pitch.h

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig, Patrick Matthäi, Thorvald Natvig
  • Date: 2011-02-19 22:58:58 UTC
  • mfrom: (9.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20110219225858-0xlftrf4z1z4jt9e
Tags: 1.2.3-1
[ Patrick Matthäi ]
* Do not build with non existant libpulse-dev on hurd-i386.

[ Thorvald Natvig ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2007-2008 CSIRO
 
2
   Copyright (c) 2007-2009 Xiph.Org Foundation
 
3
   Written by Jean-Marc Valin */
 
4
/**
 
5
   @file pitch.h
 
6
   @brief Pitch analysis
 
7
 */
 
8
 
 
9
/*
 
10
   Redistribution and use in source and binary forms, with or without
 
11
   modification, are permitted provided that the following conditions
 
12
   are met:
 
13
   
 
14
   - Redistributions of source code must retain the above copyright
 
15
   notice, this list of conditions and the following disclaimer.
 
16
   
 
17
   - Redistributions in binary form must reproduce the above copyright
 
18
   notice, this list of conditions and the following disclaimer in the
 
19
   documentation and/or other materials provided with the distribution.
 
20
   
 
21
   - Neither the name of the Xiph.org Foundation nor the names of its
 
22
   contributors may be used to endorse or promote products derived from
 
23
   this software without specific prior written permission.
 
24
   
 
25
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
26
   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
27
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
28
   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
 
29
   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 
30
   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 
31
   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 
32
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 
33
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 
34
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 
35
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
36
*/
 
37
 
 
38
 
 
39
#ifndef _PITCH_H
 
40
#define _PITCH_H
 
41
 
 
42
#include "modes.h"
 
43
 
 
44
void pitch_downsample(celt_sig * restrict x[], celt_word16 * restrict x_lp,
 
45
      int len, int _C);
 
46
 
 
47
void pitch_search(const celt_word16 * restrict x_lp, celt_word16 * restrict y,
 
48
                  int len, int max_pitch, int *pitch);
 
49
 
 
50
celt_word16 remove_doubling(celt_word16 *x, int maxperiod, int minperiod,
 
51
      int N, int *T0, int prev_period, celt_word16 prev_gain);
 
52
 
 
53
#endif