| 1 |
/* ==================================================================== |
| 2 |
* Copyright (c) 2006 Carnegie Mellon University. All rights |
| 3 |
* reserved. |
| 4 |
* |
| 5 |
* Redistribution and use in source and binary forms, with or without |
| 6 |
* modification, are permitted provided that the following conditions |
| 7 |
* are met: |
| 8 |
* |
| 9 |
* 1. Redistributions of source code must retain the above copyright |
| 10 |
* notice, this list of conditions and the following disclaimer. |
| 11 |
* |
| 12 |
* 2. Redistributions in binary form must reproduce the above copyright |
| 13 |
* notice, this list of conditions and the following disclaimer in |
| 14 |
* the documentation and/or other materials provided with the |
| 15 |
* distribution. |
| 16 |
* |
| 17 |
* This work was supported in part by funding from the Defense Advanced |
| 18 |
* Research Projects Agency and the National Science Foundation of the |
| 19 |
* United States of America, and the CMU Sphinx Speech Consortium. |
| 20 |
* |
| 21 |
* THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND |
| 22 |
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 23 |
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 24 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY |
| 25 |
* NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 26 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 27 |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 28 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 29 |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 |
* |
| 33 |
* ==================================================================== |
| 34 |
* |
| 35 |
*/ |
| 36 |
|
| 37 |
#ifndef FE_WARP_AFFINE_H |
| 38 |
#define FE_WARP_AFFINE_H |
| 39 |
|
| 40 |
#include "sphinxbase/fe.h" |
| 41 |
|
| 42 |
|
| 43 |
#ifdef __cplusplus |
| 44 |
extern "C" { |
| 45 |
#endif |
| 46 |
#if 0 |
| 47 |
/* Fool Emacs. */ |
| 48 |
} |
| 49 |
#endif |
| 50 |
|
| 51 |
const char * |
| 52 |
fe_warp_affine_doc(void); |
| 53 |
|
| 54 |
uint32 |
| 55 |
fe_warp_affine_id(void); |
| 56 |
|
| 57 |
uint32 |
| 58 |
fe_warp_affine_n_param(void); |
| 59 |
|
| 60 |
void |
| 61 |
fe_warp_affine_set_parameters(char const *param_str, float sampling_rate); |
| 62 |
|
| 63 |
float |
| 64 |
fe_warp_affine_warped_to_unwarped(float nonlinear); |
| 65 |
|
| 66 |
float |
| 67 |
fe_warp_affine_unwarped_to_warped(float linear); |
| 68 |
|
| 69 |
void |
| 70 |
fe_warp_affine_print(const char *label); |
| 71 |
|
| 72 |
#ifdef __cplusplus |
| 73 |
} |
| 74 |
#endif |
| 75 |
|
| 76 |
#endif /* FE_WARP_AFFINE_H */ |