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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "SigProc_FIX.h" | 32 #include "SigProc_FIX.h" |
33 #include "celt_lpc.h" | 33 #include "celt_lpc.h" |
34 | 34 |
35 /* Compute autocorrelation */ | 35 /* Compute autocorrelation */ |
36 void silk_autocorr( | 36 void silk_autocorr( |
37 opus_int32 *results, /* O Result (length corre
lationCount) */ | 37 opus_int32 *results, /* O Result (length corre
lationCount) */ |
38 opus_int *scale, /* O Scaling of the corre
lation vector */ | 38 opus_int *scale, /* O Scaling of the corre
lation vector */ |
39 const opus_int16 *inputData, /* I Input data to correl
ate */ | 39 const opus_int16 *inputData, /* I Input data to correl
ate */ |
40 const opus_int inputDataSize, /* I Length of input
*/ | 40 const opus_int inputDataSize, /* I Length of input
*/ |
41 const opus_int correlationCount /* I Number of correlatio
n taps to compute */ | 41 const opus_int correlationCount, /* I Number of correlatio
n taps to compute */ |
| 42 int arch /* I Run-time architectur
e */ |
42 ) | 43 ) |
43 { | 44 { |
44 opus_int corrCount; | 45 opus_int corrCount; |
45 corrCount = silk_min_int( inputDataSize, correlationCount ); | 46 corrCount = silk_min_int( inputDataSize, correlationCount ); |
46 *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataS
ize); | 47 *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataS
ize, arch); |
47 } | 48 } |
OLD | NEW |