| 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 17 matching lines...) Expand all Loading... |
| 28 #ifdef HAVE_CONFIG_H | 28 #ifdef HAVE_CONFIG_H |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #include "main_FLP.h" | 32 #include "main_FLP.h" |
| 33 #include "tuning_parameters.h" | 33 #include "tuning_parameters.h" |
| 34 | 34 |
| 35 /* | 35 /* |
| 36 * Prefilter for finding Quantizer input signal | 36 * Prefilter for finding Quantizer input signal |
| 37 */ | 37 */ |
| 38 static inline void silk_prefilt_FLP( | 38 static OPUS_INLINE void silk_prefilt_FLP( |
| 39 silk_prefilter_state_FLP *P, /* I/O state */ | 39 silk_prefilter_state_FLP *P, /* I/O state */ |
| 40 silk_float st_res[], /* I */ | 40 silk_float st_res[], /* I */ |
| 41 silk_float xw[], /* O */ | 41 silk_float xw[], /* O */ |
| 42 silk_float *HarmShapeFIR, /* I */ | 42 silk_float *HarmShapeFIR, /* I */ |
| 43 silk_float Tilt, /* I */ | 43 silk_float Tilt, /* I */ |
| 44 silk_float LF_MA_shp, /* I */ | 44 silk_float LF_MA_shp, /* I */ |
| 45 silk_float LF_AR_shp, /* I */ | 45 silk_float LF_AR_shp, /* I */ |
| 46 opus_int lag, /* I */ | 46 opus_int lag, /* I */ |
| 47 opus_int length /* I */ | 47 opus_int length /* I */ |
| 48 ); | 48 ); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 px += psEnc->sCmn.subfr_length; | 147 px += psEnc->sCmn.subfr_length; |
| 148 pxw += psEnc->sCmn.subfr_length; | 148 pxw += psEnc->sCmn.subfr_length; |
| 149 } | 149 } |
| 150 P->lagPrev = psEncCtrl->pitchL[ psEnc->sCmn.nb_subfr - 1 ]; | 150 P->lagPrev = psEncCtrl->pitchL[ psEnc->sCmn.nb_subfr - 1 ]; |
| 151 } | 151 } |
| 152 | 152 |
| 153 /* | 153 /* |
| 154 * Prefilter for finding Quantizer input signal | 154 * Prefilter for finding Quantizer input signal |
| 155 */ | 155 */ |
| 156 static inline void silk_prefilt_FLP( | 156 static OPUS_INLINE void silk_prefilt_FLP( |
| 157 silk_prefilter_state_FLP *P, /* I/O state */ | 157 silk_prefilter_state_FLP *P, /* I/O state */ |
| 158 silk_float st_res[], /* I */ | 158 silk_float st_res[], /* I */ |
| 159 silk_float xw[], /* O */ | 159 silk_float xw[], /* O */ |
| 160 silk_float *HarmShapeFIR, /* I */ | 160 silk_float *HarmShapeFIR, /* I */ |
| 161 silk_float Tilt, /* I */ | 161 silk_float Tilt, /* I */ |
| 162 silk_float LF_MA_shp, /* I */ | 162 silk_float LF_MA_shp, /* I */ |
| 163 silk_float LF_AR_shp, /* I */ | 163 silk_float LF_AR_shp, /* I */ |
| 164 opus_int lag, /* I */ | 164 opus_int lag, /* I */ |
| 165 opus_int length /* I */ | 165 opus_int length /* I */ |
| 166 ) | 166 ) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 197 LTP_shp_buf_idx = ( LTP_shp_buf_idx - 1 ) & LTP_MASK; | 197 LTP_shp_buf_idx = ( LTP_shp_buf_idx - 1 ) & LTP_MASK; |
| 198 LTP_shp_buf[ LTP_shp_buf_idx ] = sLF_MA_shp; | 198 LTP_shp_buf[ LTP_shp_buf_idx ] = sLF_MA_shp; |
| 199 | 199 |
| 200 xw[ i ] = sLF_MA_shp - n_LTP; | 200 xw[ i ] = sLF_MA_shp - n_LTP; |
| 201 } | 201 } |
| 202 /* Copy temp variable back to state */ | 202 /* Copy temp variable back to state */ |
| 203 P->sLF_AR_shp = sLF_AR_shp; | 203 P->sLF_AR_shp = sLF_AR_shp; |
| 204 P->sLF_MA_shp = sLF_MA_shp; | 204 P->sLF_MA_shp = sLF_MA_shp; |
| 205 P->sLTP_shp_buf_idx = LTP_shp_buf_idx; | 205 P->sLTP_shp_buf_idx = LTP_shp_buf_idx; |
| 206 } | 206 } |
| OLD | NEW |