OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 // |vector2| pointer should be updated for each new | 535 // |vector2| pointer should be updated for each new |
536 // cross-correlation value. | 536 // cross-correlation value. |
537 // | 537 // |
538 // Output: | 538 // Output: |
539 // - cross_correlation : The cross-correlation in Q(-right_shifts) | 539 // - cross_correlation : The cross-correlation in Q(-right_shifts) |
540 typedef void (*CrossCorrelation)(int32_t* cross_correlation, | 540 typedef void (*CrossCorrelation)(int32_t* cross_correlation, |
541 const int16_t* seq1, | 541 const int16_t* seq1, |
542 const int16_t* seq2, | 542 const int16_t* seq2, |
543 int16_t dim_seq, | 543 int16_t dim_seq, |
544 int16_t dim_cross_correlation, | 544 int16_t dim_cross_correlation, |
545 int16_t right_shifts, | 545 int right_shifts, |
546 int16_t step_seq2); | 546 int step_seq2); |
547 extern CrossCorrelation WebRtcSpl_CrossCorrelation; | 547 extern CrossCorrelation WebRtcSpl_CrossCorrelation; |
548 void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation, | 548 void WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation, |
549 const int16_t* seq1, | 549 const int16_t* seq1, |
550 const int16_t* seq2, | 550 const int16_t* seq2, |
551 int16_t dim_seq, | 551 int16_t dim_seq, |
552 int16_t dim_cross_correlation, | 552 int16_t dim_cross_correlation, |
553 int16_t right_shifts, | 553 int right_shifts, |
554 int16_t step_seq2); | 554 int step_seq2); |
555 #if (defined WEBRTC_DETECT_NEON) || (defined WEBRTC_HAS_NEON) | 555 #if (defined WEBRTC_DETECT_NEON) || (defined WEBRTC_HAS_NEON) |
556 void WebRtcSpl_CrossCorrelationNeon(int32_t* cross_correlation, | 556 void WebRtcSpl_CrossCorrelationNeon(int32_t* cross_correlation, |
557 const int16_t* seq1, | 557 const int16_t* seq1, |
558 const int16_t* seq2, | 558 const int16_t* seq2, |
559 int16_t dim_seq, | 559 int16_t dim_seq, |
560 int16_t dim_cross_correlation, | 560 int16_t dim_cross_correlation, |
561 int16_t right_shifts, | 561 int right_shifts, |
562 int16_t step_seq2); | 562 int step_seq2); |
563 #endif | 563 #endif |
564 #if defined(MIPS32_LE) | 564 #if defined(MIPS32_LE) |
565 void WebRtcSpl_CrossCorrelation_mips(int32_t* cross_correlation, | 565 void WebRtcSpl_CrossCorrelation_mips(int32_t* cross_correlation, |
566 const int16_t* seq1, | 566 const int16_t* seq1, |
567 const int16_t* seq2, | 567 const int16_t* seq2, |
568 int16_t dim_seq, | 568 int16_t dim_seq, |
569 int16_t dim_cross_correlation, | 569 int16_t dim_cross_correlation, |
570 int16_t right_shifts, | 570 int right_shifts, |
571 int16_t step_seq2); | 571 int step_seq2); |
572 #endif | 572 #endif |
573 | 573 |
574 // Creates (the first half of) a Hanning window. Size must be at least 1 and | 574 // Creates (the first half of) a Hanning window. Size must be at least 1 and |
575 // at most 512. | 575 // at most 512. |
576 // | 576 // |
577 // Input: | 577 // Input: |
578 // - size : Length of the requested Hanning window (1 to 512) | 578 // - size : Length of the requested Hanning window (1 to 512) |
579 // | 579 // |
580 // Output: | 580 // Output: |
581 // - window : Hanning vector in Q14. | 581 // - window : Hanning vector in Q14. |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 // This function multiply a 16-bit word by a 16-bit word, and accumulate this | 1655 // This function multiply a 16-bit word by a 16-bit word, and accumulate this |
1656 // value to a 32-bit integer. | 1656 // value to a 32-bit integer. |
1657 // | 1657 // |
1658 // Input: | 1658 // Input: |
1659 // - a : The value of the first 16-bit word. | 1659 // - a : The value of the first 16-bit word. |
1660 // - b : The value of the second 16-bit word. | 1660 // - b : The value of the second 16-bit word. |
1661 // - c : The value of an 32-bit integer. | 1661 // - c : The value of an 32-bit integer. |
1662 // | 1662 // |
1663 // Return Value: The value of a * b + c. | 1663 // Return Value: The value of a * b + c. |
1664 // | 1664 // |
OLD | NEW |