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

Side by Side Diff: webrtc/modules/audio_coding/codecs/g711/g711_interface.c

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync 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 #include <string.h> 10 #include <string.h>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int16_t len, 45 int16_t len,
46 int16_t* decoded, 46 int16_t* decoded,
47 int16_t* speechType) { 47 int16_t* speechType) {
48 int n; 48 int n;
49 for (n = 0; n < len; n++) 49 for (n = 0; n < len; n++)
50 decoded[n] = ulaw_to_linear(encoded[n]); 50 decoded[n] = ulaw_to_linear(encoded[n]);
51 *speechType = 1; 51 *speechType = 1;
52 return len; 52 return len;
53 } 53 }
54 54
55 int WebRtcG711_DurationEst(const uint8_t* payload,
56 int payload_length_bytes) {
57 (void) payload;
58 /* G.711 is one byte per sample, so we can just return the number of bytes. */
59 return payload_length_bytes;
60 }
61
62 int16_t WebRtcG711_Version(char* version, int16_t lenBytes) { 55 int16_t WebRtcG711_Version(char* version, int16_t lenBytes) {
63 strncpy(version, "2.0.0", lenBytes); 56 strncpy(version, "2.0.0", lenBytes);
64 return 0; 57 return 0;
65 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698