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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 // Returns the vector index to the largest absolute value of a 16-bit vector. | 248 // Returns the vector index to the largest absolute value of a 16-bit vector. |
249 // | 249 // |
250 // Input: | 250 // Input: |
251 // - vector : 16-bit input vector. | 251 // - vector : 16-bit input vector. |
252 // - length : Number of samples in vector. | 252 // - length : Number of samples in vector. |
253 // | 253 // |
254 // Return value : Index to the maximum absolute value in vector. | 254 // Return value : Index to the maximum absolute value in vector. |
255 // If there are multiple equal maxima, return the index of the | 255 // If there are multiple equal maxima, return the index of the |
256 // first. -32768 will always have precedence over 32767 (despite | 256 // first. -32768 will always have precedence over 32767 (despite |
257 // -32768 presenting an int16 absolute value of 32767). | 257 // -32768 presenting an int16_t absolute value of 32767). |
258 size_t WebRtcSpl_MaxAbsIndexW16(const int16_t* vector, size_t length); | 258 size_t WebRtcSpl_MaxAbsIndexW16(const int16_t* vector, size_t length); |
259 | 259 |
260 // Returns the vector index to the maximum sample value of a 16-bit vector. | 260 // Returns the vector index to the maximum sample value of a 16-bit vector. |
261 // | 261 // |
262 // Input: | 262 // Input: |
263 // - vector : 16-bit input vector. | 263 // - vector : 16-bit input vector. |
264 // - length : Number of samples in vector. | 264 // - length : Number of samples in vector. |
265 // | 265 // |
266 // Return value : Index to the maximum value in vector (if multiple | 266 // Return value : Index to the maximum value in vector (if multiple |
267 // indexes have the maximum, return the first). | 267 // indexes have the maximum, return the first). |
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 // This function multiply a 16-bit word by a 16-bit word, and accumulate this | 1636 // This function multiply a 16-bit word by a 16-bit word, and accumulate this |
1637 // value to a 32-bit integer. | 1637 // value to a 32-bit integer. |
1638 // | 1638 // |
1639 // Input: | 1639 // Input: |
1640 // - a : The value of the first 16-bit word. | 1640 // - a : The value of the first 16-bit word. |
1641 // - b : The value of the second 16-bit word. | 1641 // - b : The value of the second 16-bit word. |
1642 // - c : The value of an 32-bit integer. | 1642 // - c : The value of an 32-bit integer. |
1643 // | 1643 // |
1644 // Return Value: The value of a * b + c. | 1644 // Return Value: The value of a * b + c. |
1645 // | 1645 // |
OLD | NEW |