| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDE
R + i - 16 ], A_Q12_tmp[ 15 ] ); | 218 LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDE
R + i - 16 ], A_Q12_tmp[ 15 ] ); |
| 219 } | 219 } |
| 220 | 220 |
| 221 /* Add prediction to LPC excitation */ | 221 /* Add prediction to LPC excitation */ |
| 222 sLPC_Q14[ MAX_LPC_ORDER + i ] = silk_ADD_SAT32( pres_Q14[ i ], silk_
LSHIFT_SAT32( LPC_pred_Q10, 4 ) ); | 222 sLPC_Q14[ MAX_LPC_ORDER + i ] = silk_ADD_SAT32( pres_Q14[ i ], silk_
LSHIFT_SAT32( LPC_pred_Q10, 4 ) ); |
| 223 | 223 |
| 224 /* Scale with gain */ | 224 /* Scale with gain */ |
| 225 pxq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( s
LPC_Q14[ MAX_LPC_ORDER + i ], Gain_Q10 ), 8 ) ); | 225 pxq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( s
LPC_Q14[ MAX_LPC_ORDER + i ], Gain_Q10 ), 8 ) ); |
| 226 } | 226 } |
| 227 | 227 |
| 228 /* DEBUG_STORE_DATA( dec.pcm, pxq, psDec->subfr_length * sizeof( opus_in
t16 ) ) */ | |
| 229 | |
| 230 /* Update LPC filter state */ | 228 /* Update LPC filter state */ |
| 231 silk_memcpy( sLPC_Q14, &sLPC_Q14[ psDec->subfr_length ], MAX_LPC_ORDER *
sizeof( opus_int32 ) ); | 229 silk_memcpy( sLPC_Q14, &sLPC_Q14[ psDec->subfr_length ], MAX_LPC_ORDER *
sizeof( opus_int32 ) ); |
| 232 pexc_Q14 += psDec->subfr_length; | 230 pexc_Q14 += psDec->subfr_length; |
| 233 pxq += psDec->subfr_length; | 231 pxq += psDec->subfr_length; |
| 234 } | 232 } |
| 235 | 233 |
| 236 /* Save LPC state */ | 234 /* Save LPC state */ |
| 237 silk_memcpy( psDec->sLPC_Q14_buf, sLPC_Q14, MAX_LPC_ORDER * sizeof( opus_int
32 ) ); | 235 silk_memcpy( psDec->sLPC_Q14_buf, sLPC_Q14, MAX_LPC_ORDER * sizeof( opus_int
32 ) ); |
| 238 RESTORE_STACK; | 236 RESTORE_STACK; |
| 239 } | 237 } |
| OLD | NEW |