Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/arith_routines_logist.c

Issue 1179953003: Revert "Upconvert various types to int." (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 * - envQ8 : side info vector defining the width of the pdf 219 * - envQ8 : side info vector defining the width of the pdf
220 * in Q8 220 * in Q8
221 * - lenData : data vector length 221 * - lenData : data vector length
222 * 222 *
223 * Input/Output: 223 * Input/Output:
224 * - dataQ7 : input: dither vector, output: data vector 224 * - dataQ7 : input: dither vector, output: data vector
225 * 225 *
226 * Return value : number of bytes in the stream so far 226 * Return value : number of bytes in the stream so far
227 * -1 if error detected 227 * -1 if error detected
228 */ 228 */
229 int WebRtcIsacfix_DecLogisticMulti2(int16_t *dataQ7, 229 int16_t WebRtcIsacfix_DecLogisticMulti2(int16_t *dataQ7,
230 Bitstr_dec *streamData, 230 Bitstr_dec *streamData,
231 const int32_t *envQ8, 231 const int32_t *envQ8,
232 const int16_t lenData) 232 const int16_t lenData)
233 { 233 {
234 uint32_t W_lower; 234 uint32_t W_lower;
235 uint32_t W_upper; 235 uint32_t W_upper;
236 uint32_t W_tmp; 236 uint32_t W_tmp;
237 uint16_t W_upper_LSB; 237 uint16_t W_upper_LSB;
238 uint16_t W_upper_MSB; 238 uint16_t W_upper_MSB;
239 uint32_t streamVal; 239 uint32_t streamVal;
240 uint16_t cdfTmp; 240 uint16_t cdfTmp;
241 int32_t res; 241 int32_t res;
242 int32_t inSqrt; 242 int32_t inSqrt;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 streamData->stream_index = streamPtr + offset - streamData->stream; 404 streamData->stream_index = streamPtr + offset - streamData->stream;
405 streamData->W_upper = W_upper; 405 streamData->W_upper = W_upper;
406 streamData->streamval = streamVal; 406 streamData->streamval = streamVal;
407 407
408 /* find number of bytes in original stream (determined by current interval wid th) */ 408 /* find number of bytes in original stream (determined by current interval wid th) */
409 if ( W_upper > 0x01FFFFFF ) 409 if ( W_upper > 0x01FFFFFF )
410 return (streamData->stream_index*2 - 3 + !streamData->full); 410 return (streamData->stream_index*2 - 3 + !streamData->full);
411 else 411 else
412 return (streamData->stream_index*2 - 2 + !streamData->full); 412 return (streamData->stream_index*2 - 2 + !streamData->full);
413 } 413 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698