Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbank_internal.h @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 2.3 KB
Line 
1/*
2 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 *  tree. An additional intellectual property rights grant can be found
7 *  in the file PATENTS.  All contributing project authors may
8 *  be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_
12#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_
13
14#include "typedefs.h"
15
16#if defined(__cplusplus) || defined(c_plusplus)
17extern "C" {
18#endif
19
20/* Arguments:
21 *   io:  Input/output, in Q0.
22 *   len: Input, sample length.
23 *   coefficient: Input.
24 *   state: Input/output, filter state, in Q4.
25 */
26void WebRtcIsacfix_HighpassFilterFixDec32(int16_t *io,
27                                          int16_t len,
28                                          const int16_t *coefficient,
29                                          int32_t *state);
30
31typedef void (*AllpassFilter2FixDec16)(
32    int16_t *data_ch1,           // Input and output in channel 1, in Q0
33    int16_t *data_ch2,           // Input and output in channel 2, in Q0
34    const int16_t *factor_ch1,   // Scaling factor for channel 1, in Q15
35    const int16_t *factor_ch2,   // Scaling factor for channel 2, in Q15
36    const int length,            // Length of the data buffers
37    int32_t *filter_state_ch1,   // Filter state for channel 1, in Q16
38    int32_t *filter_state_ch2);  // Filter state for channel 2, in Q16
39extern AllpassFilter2FixDec16 WebRtcIsacfix_AllpassFilter2FixDec16;
40
41void WebRtcIsacfix_AllpassFilter2FixDec16C(
42   int16_t *data_ch1,
43   int16_t *data_ch2,
44   const int16_t *factor_ch1,
45   const int16_t *factor_ch2,
46   const int length,
47   int32_t *filter_state_ch1,
48   int32_t *filter_state_ch2);
49
50#if (defined WEBRTC_DETECT_ARM_NEON) || (defined WEBRTC_ARCH_ARM_NEON)
51void WebRtcIsacfix_AllpassFilter2FixDec16Neon(
52   int16_t *data_ch1,
53   int16_t *data_ch2,
54   const int16_t *factor_ch1,
55   const int16_t *factor_ch2,
56   const int length,
57   int32_t *filter_state_ch1,
58   int32_t *filter_state_ch2);
59#endif
60
61#if defined(__cplusplus) || defined(c_plusplus)
62}
63#endif
64
65#endif
66/* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_FILTERBANK_INTERNAL_H_ */
Note: See TracBrowser for help on using the repository browser.