| 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 18 matching lines...) Expand all Loading... |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #include "main.h" | 32 #include "main.h" |
| 33 #include "stack_alloc.h" | 33 #include "stack_alloc.h" |
| 34 | 34 |
| 35 /*********************************************/ | 35 /*********************************************/ |
| 36 /* Encode quantization indices of excitation */ | 36 /* Encode quantization indices of excitation */ |
| 37 /*********************************************/ | 37 /*********************************************/ |
| 38 | 38 |
| 39 static inline opus_int combine_and_check( /* return ok
*/ | 39 static OPUS_INLINE opus_int combine_and_check( /* return ok
*/ |
| 40 opus_int *pulses_comb, /* O
*/ | 40 opus_int *pulses_comb, /* O
*/ |
| 41 const opus_int *pulses_in, /* I
*/ | 41 const opus_int *pulses_in, /* I
*/ |
| 42 opus_int max_pulses, /* I max value for sum of pulses
*/ | 42 opus_int max_pulses, /* I max value for sum of pulses
*/ |
| 43 opus_int len /* I number of output values
*/ | 43 opus_int len /* I number of output values
*/ |
| 44 ) | 44 ) |
| 45 { | 45 { |
| 46 opus_int k, sum; | 46 opus_int k, sum; |
| 47 | 47 |
| 48 for( k = 0; k < len; k++ ) { | 48 for( k = 0; k < len; k++ ) { |
| 49 sum = pulses_in[ 2 * k ] + pulses_in[ 2 * k + 1 ]; | 49 sum = pulses_in[ 2 * k ] + pulses_in[ 2 * k + 1 ]; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 /****************/ | 201 /****************/ |
| 202 /* Encode signs */ | 202 /* Encode signs */ |
| 203 /****************/ | 203 /****************/ |
| 204 silk_encode_signs( psRangeEnc, pulses, frame_length, signalType, quantOffset
Type, sum_pulses ); | 204 silk_encode_signs( psRangeEnc, pulses, frame_length, signalType, quantOffset
Type, sum_pulses ); |
| 205 RESTORE_STACK; | 205 RESTORE_STACK; |
| 206 } | 206 } |
| OLD | NEW |