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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 const opus_int D /* I Input vector dimens
ion (even) */ | 306 const opus_int D /* I Input vector dimens
ion (even) */ |
307 ); | 307 ); |
308 | 308 |
309 /* Compute reflection coefficients from input signal */ | 309 /* Compute reflection coefficients from input signal */ |
310 void silk_burg_modified( | 310 void silk_burg_modified( |
311 opus_int32 *res_nrg, /* O Residual energy
*/ | 311 opus_int32 *res_nrg, /* O Residual energy
*/ |
312 opus_int *res_nrg_Q, /* O Residual energy Q va
lue */ | 312 opus_int *res_nrg_Q, /* O Residual energy Q va
lue */ |
313 opus_int32 A_Q16[], /* O Prediction coefficie
nts (length order) */ | 313 opus_int32 A_Q16[], /* O Prediction coefficie
nts (length order) */ |
314 const opus_int16 x[], /* I Input signal, length
: nb_subfr * ( D + subfr_length ) */ | 314 const opus_int16 x[], /* I Input signal, length
: nb_subfr * ( D + subfr_length ) */ |
315 const opus_int32 minInvGain_Q30, /* I Inverse of max predi
ction gain */ | 315 const opus_int32 minInvGain_Q30, /* I Inverse of max predi
ction gain */ |
316 const opus_int subfr_length, /* I Input signal subfram
e length (incl. D preceeding samples) */ | 316 const opus_int subfr_length, /* I Input signal subfram
e length (incl. D preceding samples) */ |
317 const opus_int nb_subfr, /* I Number of subframes
stacked in x */ | 317 const opus_int nb_subfr, /* I Number of subframes
stacked in x */ |
318 const opus_int D /* I Order
*/ | 318 const opus_int D /* I Order
*/ |
319 ); | 319 ); |
320 | 320 |
321 /* Copy and multiply a vector by a constant */ | 321 /* Copy and multiply a vector by a constant */ |
322 void silk_scale_copy_vector16( | 322 void silk_scale_copy_vector16( |
323 opus_int16 *data_out, | 323 opus_int16 *data_out, |
324 const opus_int16 *data_in, | 324 const opus_int16 *data_in, |
325 opus_int32 gain_Q16, /* I Gain in Q16
*/ | 325 opus_int32 gain_Q16, /* I Gain in Q16
*/ |
326 const opus_int dataSize /* I Length
*/ | 326 const opus_int dataSize /* I Length
*/ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 opus_uint32 m = (opus_uint32) -rot; | 372 opus_uint32 m = (opus_uint32) -rot; |
373 if( rot == 0 ) { | 373 if( rot == 0 ) { |
374 return a32; | 374 return a32; |
375 } else if( rot < 0 ) { | 375 } else if( rot < 0 ) { |
376 return (opus_int32) ((x << m) | (x >> (32 - m))); | 376 return (opus_int32) ((x << m) | (x >> (32 - m))); |
377 } else { | 377 } else { |
378 return (opus_int32) ((x << (32 - r)) | (x >> r)); | 378 return (opus_int32) ((x << (32 - r)) | (x >> r)); |
379 } | 379 } |
380 } | 380 } |
381 | 381 |
382 /* Allocate opus_int16 alligned to 4-byte memory address */ | 382 /* Allocate opus_int16 aligned to 4-byte memory address */ |
383 #if EMBEDDED_ARM | 383 #if EMBEDDED_ARM |
384 #define silk_DWORD_ALIGN __attribute__((aligned(4))) | 384 #define silk_DWORD_ALIGN __attribute__((aligned(4))) |
385 #else | 385 #else |
386 #define silk_DWORD_ALIGN | 386 #define silk_DWORD_ALIGN |
387 #endif | 387 #endif |
388 | 388 |
389 /* Useful Macros that can be adjusted to other platforms */ | 389 /* Useful Macros that can be adjusted to other platforms */ |
390 #define silk_memcpy(dest, src, size) memcpy((dest), (src), (size)) | 390 #define silk_memcpy(dest, src, size) memcpy((dest), (src), (size)) |
391 #define silk_memset(dest, src, size) memset((dest), (src), (size)) | 391 #define silk_memset(dest, src, size) memset((dest), (src), (size)) |
392 #define silk_memmove(dest, src, size) memmove((dest), (src), (size)) | 392 #define silk_memmove(dest, src, size) memmove((dest), (src), (size)) |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 | 580 |
581 #include "Inlines.h" | 581 #include "Inlines.h" |
582 #include "MacroCount.h" | 582 #include "MacroCount.h" |
583 #include "MacroDebug.h" | 583 #include "MacroDebug.h" |
584 | 584 |
585 #ifdef __cplusplus | 585 #ifdef __cplusplus |
586 } | 586 } |
587 #endif | 587 #endif |
588 | 588 |
589 #endif /* SILK_SIGPROC_FIX_H */ | 589 #endif /* SILK_SIGPROC_FIX_H */ |
OLD | NEW |