| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 * - data : data vector | 91 * - data : data vector |
| 92 * - cdf : array of cdf arrays | 92 * - cdf : array of cdf arrays |
| 93 * - lenData : data vector length | 93 * - lenData : data vector length |
| 94 * | 94 * |
| 95 * Return value : 0 if ok | 95 * Return value : 0 if ok |
| 96 * <0 if error detected | 96 * <0 if error detected |
| 97 */ | 97 */ |
| 98 int WebRtcIsacfix_EncHistMulti( | 98 int WebRtcIsacfix_EncHistMulti( |
| 99 Bitstr_enc *streamData, | 99 Bitstr_enc *streamData, |
| 100 const int16_t *data, | 100 const int16_t *data, |
| 101 const uint16_t **cdf, | 101 const uint16_t *const *cdf, |
| 102 const int16_t lenData); | 102 const int16_t lenData); |
| 103 | 103 |
| 104 | 104 |
| 105 /**************************************************************************** | 105 /**************************************************************************** |
| 106 * WebRtcIsacfix_DecHistBisectMulti(...) | 106 * WebRtcIsacfix_DecHistBisectMulti(...) |
| 107 * | 107 * |
| 108 * Function to decode more symbols from the arithmetic bytestream, using | 108 * Function to decode more symbols from the arithmetic bytestream, using |
| 109 * method of bisection. | 109 * method of bisection. |
| 110 * C df tables should be of size 2^k-1 (which corresponds to an | 110 * C df tables should be of size 2^k-1 (which corresponds to an |
| 111 * alphabet size of 2^k-2) | 111 * alphabet size of 2^k-2) |
| 112 * | 112 * |
| 113 * Input: | 113 * Input: |
| 114 * - streamData : in-/output struct containing bitstream | 114 * - streamData : in-/output struct containing bitstream |
| 115 * - cdf : array of cdf arrays | 115 * - cdf : array of cdf arrays |
| 116 * - cdfSize : array of cdf table sizes+1 (power of two: 2^k) | 116 * - cdfSize : array of cdf table sizes+1 (power of two: 2^k) |
| 117 * - lenData : data vector length | 117 * - lenData : data vector length |
| 118 * | 118 * |
| 119 * Output: | 119 * Output: |
| 120 * - data : data vector | 120 * - data : data vector |
| 121 * | 121 * |
| 122 * Return value : number of bytes in the stream | 122 * Return value : number of bytes in the stream |
| 123 * <0 if error detected | 123 * <0 if error detected |
| 124 */ | 124 */ |
| 125 int16_t WebRtcIsacfix_DecHistBisectMulti( | 125 int16_t WebRtcIsacfix_DecHistBisectMulti( |
| 126 int16_t *data, | 126 int16_t *data, |
| 127 Bitstr_dec *streamData, | 127 Bitstr_dec *streamData, |
| 128 const uint16_t **cdf, | 128 const uint16_t *const *cdf, |
| 129 const uint16_t *cdfSize, | 129 const uint16_t *cdfSize, |
| 130 const int16_t lenData); | 130 const int16_t lenData); |
| 131 | 131 |
| 132 | 132 |
| 133 /**************************************************************************** | 133 /**************************************************************************** |
| 134 * WebRtcIsacfix_DecHistOneStepMulti(...) | 134 * WebRtcIsacfix_DecHistOneStepMulti(...) |
| 135 * | 135 * |
| 136 * Function to decode more symbols from the arithmetic bytestream, taking | 136 * Function to decode more symbols from the arithmetic bytestream, taking |
| 137 * single step up or down at a time. | 137 * single step up or down at a time. |
| 138 * cdf tables can be of arbitrary size, but large tables may take a lot of | 138 * cdf tables can be of arbitrary size, but large tables may take a lot of |
| 139 * iterations. | 139 * iterations. |
| 140 * | 140 * |
| 141 * Input: | 141 * Input: |
| 142 * - streamData : in-/output struct containing bitstream | 142 * - streamData : in-/output struct containing bitstream |
| 143 * - cdf : array of cdf arrays | 143 * - cdf : array of cdf arrays |
| 144 * - initIndex : vector of initial cdf table search entries | 144 * - initIndex : vector of initial cdf table search entries |
| 145 * - lenData : data vector length | 145 * - lenData : data vector length |
| 146 * | 146 * |
| 147 * Output: | 147 * Output: |
| 148 * - data : data vector | 148 * - data : data vector |
| 149 * | 149 * |
| 150 * Return value : number of bytes in original stream | 150 * Return value : number of bytes in original stream |
| 151 * <0 if error detected | 151 * <0 if error detected |
| 152 */ | 152 */ |
| 153 int16_t WebRtcIsacfix_DecHistOneStepMulti( | 153 int16_t WebRtcIsacfix_DecHistOneStepMulti( |
| 154 int16_t *data, | 154 int16_t *data, |
| 155 Bitstr_dec *streamData, | 155 Bitstr_dec *streamData, |
| 156 const uint16_t **cdf, | 156 const uint16_t *const *cdf, |
| 157 const uint16_t *initIndex, | 157 const uint16_t *initIndex, |
| 158 const int16_t lenData); | 158 const int16_t lenData); |
| 159 | 159 |
| 160 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ARITH_ROUTINS_H_ */ | 160 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ARITH_ROUTINS_H_ */ |
| OLD | NEW |