Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: silk/fixed/autocorr_FIX.c

Issue 107243004: Updating Opus to release 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « silk/encode_pulses.c ('k') | silk/fixed/burg_modified_FIX.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « silk/encode_pulses.c ('k') | silk/fixed/burg_modified_FIX.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698