| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 regularization */ | 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 */ | |
| 57 #define FIND_LTP_COND_FAC 1e-5f | |
| 58 #define LTP_DAMPING 0.05f | |
| 59 #define LTP_SMOOTHING 0.1f | |
| 60 | |
| 61 /* LTP quantization settings */ | |
| 62 #define MU_LTP_QUANT_NB 0.03f | |
| 63 #define MU_LTP_QUANT_MB 0.025f | |
| 64 #define MU_LTP_QUANT_WB 0.02f | |
| 65 | |
| 66 /* Max cumulative LTP gain */ | 56 /* Max cumulative LTP gain */ |
| 67 #define MAX_SUM_LOG_GAIN_DB 250.0f | 57 #define MAX_SUM_LOG_GAIN_DB 250.0f |
| 68 | 58 |
| 59 /* LTP analysis defines */ |
| 60 #define LTP_CORR_INV_MAX 0.03f |
| 61 |
| 69 /***********************/ | 62 /***********************/ |
| 70 /* High pass filtering */ | 63 /* High pass filtering */ |
| 71 /***********************/ | 64 /***********************/ |
| 72 | 65 |
| 73 /* Smoothing parameters for low end of pitch frequency range estimation */ | 66 /* Smoothing parameters for low end of pitch frequency range estimation */ |
| 74 #define VARIABLE_HP_SMTH_COEF1 0.1f | 67 #define VARIABLE_HP_SMTH_COEF1 0.1f |
| 75 #define VARIABLE_HP_SMTH_COEF2 0.015f | 68 #define VARIABLE_HP_SMTH_COEF2 0.015f |
| 76 #define VARIABLE_HP_MAX_DELTA_FREQ 0.4f | 69 #define VARIABLE_HP_MAX_DELTA_FREQ 0.4f |
| 77 | 70 |
| 78 /* Min and max cut-off frequency values (-3 dB points) */ | 71 /* Min and max cut-off frequency values (-3 dB points) */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 96 /* reduction in coding SNR during low speech activity */ | 89 /* reduction in coding SNR during low speech activity */ |
| 97 #define BG_SNR_DECR_dB 2.0f | 90 #define BG_SNR_DECR_dB 2.0f |
| 98 | 91 |
| 99 /* factor for reducing quantization noise during voiced speech */ | 92 /* factor for reducing quantization noise during voiced speech */ |
| 100 #define HARM_SNR_INCR_dB 2.0f | 93 #define HARM_SNR_INCR_dB 2.0f |
| 101 | 94 |
| 102 /* factor for reducing quantization noise for unvoiced sparse signals */ | 95 /* factor for reducing quantization noise for unvoiced sparse signals */ |
| 103 #define SPARSE_SNR_INCR_dB 2.0f | 96 #define SPARSE_SNR_INCR_dB 2.0f |
| 104 | 97 |
| 105 /* threshold for sparseness measure above which to use lower quantization offset
during unvoiced */ | 98 /* threshold for sparseness measure above which to use lower quantization offset
during unvoiced */ |
| 106 #define SPARSENESS_THRESHOLD_QNT_OFFSET 0.75f | 99 #define ENERGY_VARIATION_THRESHOLD_QNT_OFFSET 0.6f |
| 107 | 100 |
| 108 /* warping control */ | 101 /* warping control */ |
| 109 #define WARPING_MULTIPLIER 0.015f | 102 #define WARPING_MULTIPLIER 0.015f |
| 110 | 103 |
| 111 /* fraction added to first autocorrelation value */ | 104 /* fraction added to first autocorrelation value */ |
| 112 #define SHAPE_WHITE_NOISE_FRACTION 5e-5f | 105 #define SHAPE_WHITE_NOISE_FRACTION 3e-5f |
| 113 | 106 |
| 114 /* noise shaping filter chirp factor */ | 107 /* noise shaping filter chirp factor */ |
| 115 #define BANDWIDTH_EXPANSION 0.95f | 108 #define BANDWIDTH_EXPANSION 0.94f |
| 116 | |
| 117 /* difference between chirp factors for analysis and synthesis noise shaping fil
ters at low bitrates */ | |
| 118 #define LOW_RATE_BANDWIDTH_EXPANSION_DELTA 0.01f | |
| 119 | |
| 120 /* extra harmonic boosting (signal shaping) at low bitrates */ | |
| 121 #define LOW_RATE_HARMONIC_BOOST 0.1f | |
| 122 | |
| 123 /* extra harmonic boosting (signal shaping) for noisy input signals */ | |
| 124 #define LOW_INPUT_QUALITY_HARMONIC_BOOST 0.1f | |
| 125 | 109 |
| 126 /* harmonic noise shaping */ | 110 /* harmonic noise shaping */ |
| 127 #define HARMONIC_SHAPING 0.3f | 111 #define HARMONIC_SHAPING 0.3f |
| 128 | 112 |
| 129 /* extra harmonic noise shaping for high bitrates or noisy input */ | 113 /* extra harmonic noise shaping for high bitrates or noisy input */ |
| 130 #define HIGH_RATE_OR_LOW_QUALITY_HARMONIC_SHAPING 0.2f | 114 #define HIGH_RATE_OR_LOW_QUALITY_HARMONIC_SHAPING 0.2f |
| 131 | 115 |
| 132 /* parameter for shaping noise towards higher frequencies */ | 116 /* parameter for shaping noise towards higher frequencies */ |
| 133 #define HP_NOISE_COEF 0.25f | 117 #define HP_NOISE_COEF 0.25f |
| 134 | 118 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 162 #define REDUCE_BITRATE_10_MS_BPS 2200 | 146 #define REDUCE_BITRATE_10_MS_BPS 2200 |
| 163 | 147 |
| 164 /* Maximum time before allowing a bandwidth transition */ | 148 /* Maximum time before allowing a bandwidth transition */ |
| 165 #define MAX_BANDWIDTH_SWITCH_DELAY_MS 5000 | 149 #define MAX_BANDWIDTH_SWITCH_DELAY_MS 5000 |
| 166 | 150 |
| 167 #ifdef __cplusplus | 151 #ifdef __cplusplus |
| 168 } | 152 } |
| 169 #endif | 153 #endif |
| 170 | 154 |
| 171 #endif /* SILK_TUNING_PARAMETERS_H */ | 155 #endif /* SILK_TUNING_PARAMETERS_H */ |
| OLD | NEW |