OLD | NEW |
1 /*********************************************************************** | 1 /*********************************************************************** |
2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. | 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
3 Redistribution and use in source and binary forms, with or without | 3 Redistribution and use in source and binary forms, with or without |
4 modification, are permitted provided that the following conditions | 4 modification, are permitted provided that the following conditions |
5 are met: | 5 are met: |
6 - Redistributions of source code must retain the above copyright notice, | 6 - Redistributions of source code must retain the above copyright notice, |
7 this list of conditions and the following disclaimer. | 7 this list of conditions and the following disclaimer. |
8 - Redistributions in binary form must reproduce the above copyright | 8 - Redistributions in binary form must reproduce the above copyright |
9 notice, this list of conditions and the following disclaimer in the | 9 notice, this list of conditions and the following disclaimer in the |
10 documentation and/or other materials provided with the distribution. | 10 documentation and/or other materials provided with the distribution. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 /* Level of noise floor for whitening filter LPC analysis in pitch analysis */ | 43 /* Level of noise floor for whitening filter LPC analysis in pitch analysis */ |
44 #define FIND_PITCH_WHITE_NOISE_FRACTION 1e-3f | 44 #define FIND_PITCH_WHITE_NOISE_FRACTION 1e-3f |
45 | 45 |
46 /* Bandwidth expansion for whitening filter in pitch analysis */ | 46 /* Bandwidth expansion for whitening filter in pitch analysis */ |
47 #define FIND_PITCH_BANDWIDTH_EXPANSION 0.99f | 47 #define FIND_PITCH_BANDWIDTH_EXPANSION 0.99f |
48 | 48 |
49 /*********************/ | 49 /*********************/ |
50 /* Linear prediction */ | 50 /* Linear prediction */ |
51 /*********************/ | 51 /*********************/ |
52 | 52 |
53 /* LPC analysis defines: regularization and bandwidth expansion */ | 53 /* LPC analysis regularization */ |
54 #define FIND_LPC_COND_FAC 1e-5f | 54 #define FIND_LPC_COND_FAC 1e-5f |
55 | 55 |
56 /* LTP analysis defines */ | 56 /* LTP analysis defines */ |
57 #define FIND_LTP_COND_FAC 1e-5f | 57 #define FIND_LTP_COND_FAC 1e-5f |
58 #define LTP_DAMPING 0.05f | 58 #define LTP_DAMPING 0.05f |
59 #define LTP_SMOOTHING 0.1f | 59 #define LTP_SMOOTHING 0.1f |
60 | 60 |
61 /* LTP quantization settings */ | 61 /* LTP quantization settings */ |
62 #define MU_LTP_QUANT_NB 0.03f | 62 #define MU_LTP_QUANT_NB 0.03f |
63 #define MU_LTP_QUANT_MB 0.025f | 63 #define MU_LTP_QUANT_MB 0.025f |
64 #define MU_LTP_QUANT_WB 0.02f | 64 #define MU_LTP_QUANT_WB 0.02f |
65 | 65 |
| 66 /* Max cumulative LTP gain */ |
| 67 #define MAX_SUM_LOG_GAIN_DB
250.0f |
| 68 |
66 /***********************/ | 69 /***********************/ |
67 /* High pass filtering */ | 70 /* High pass filtering */ |
68 /***********************/ | 71 /***********************/ |
69 | 72 |
70 /* Smoothing parameters for low end of pitch frequency range estimation */ | 73 /* Smoothing parameters for low end of pitch frequency range estimation */ |
71 #define VARIABLE_HP_SMTH_COEF1 0.1f | 74 #define VARIABLE_HP_SMTH_COEF1 0.1f |
72 #define VARIABLE_HP_SMTH_COEF2 0.015f | 75 #define VARIABLE_HP_SMTH_COEF2 0.015f |
73 #define VARIABLE_HP_MAX_DELTA_FREQ 0.4f | 76 #define VARIABLE_HP_MAX_DELTA_FREQ 0.4f |
74 | 77 |
75 /* Min and max cut-off frequency values (-3 dB points) */ | 78 /* Min and max cut-off frequency values (-3 dB points) */ |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 #define REDUCE_BITRATE_10_MS_BPS 2200 | 162 #define REDUCE_BITRATE_10_MS_BPS 2200 |
160 | 163 |
161 /* Maximum time before allowing a bandwidth transition */ | 164 /* Maximum time before allowing a bandwidth transition */ |
162 #define MAX_BANDWIDTH_SWITCH_DELAY_MS 5000 | 165 #define MAX_BANDWIDTH_SWITCH_DELAY_MS 5000 |
163 | 166 |
164 #ifdef __cplusplus | 167 #ifdef __cplusplus |
165 } | 168 } |
166 #endif | 169 #endif |
167 | 170 |
168 #endif /* SILK_TUNING_PARAMETERS_H */ | 171 #endif /* SILK_TUNING_PARAMETERS_H */ |
OLD | NEW |