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

Side by Side Diff: webrtc/modules/audio_coding/codecs/g722/g722_enc_dec.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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 * SpanDSP - a series of DSP components for telephony 2 * SpanDSP - a series of DSP components for telephony
3 * 3 *
4 * g722.h - The ITU G.722 codec. 4 * g722.h - The ITU G.722 codec.
5 * 5 *
6 * Written by Steve Underwood <steveu@coppice.org> 6 * Written by Steve Underwood <steveu@coppice.org>
7 * 7 *
8 * Copyright (C) 2005 Steve Underwood 8 * Copyright (C) 2005 Steve Underwood
9 * 9 *
10 * Despite my general liking of the GPL, I place my own contributions 10 * Despite my general liking of the GPL, I place my own contributions
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } G722DecoderState; 132 } G722DecoderState;
133 133
134 #ifdef __cplusplus 134 #ifdef __cplusplus
135 extern "C" { 135 extern "C" {
136 #endif 136 #endif
137 137
138 G722EncoderState* WebRtc_g722_encode_init(G722EncoderState* s, 138 G722EncoderState* WebRtc_g722_encode_init(G722EncoderState* s,
139 int rate, 139 int rate,
140 int options); 140 int options);
141 int WebRtc_g722_encode_release(G722EncoderState *s); 141 int WebRtc_g722_encode_release(G722EncoderState *s);
142 int WebRtc_g722_encode(G722EncoderState *s, 142 size_t WebRtc_g722_encode(G722EncoderState *s,
143 uint8_t g722_data[], 143 uint8_t g722_data[],
144 const int16_t amp[], 144 const int16_t amp[],
145 int len); 145 size_t len);
146 146
147 G722DecoderState* WebRtc_g722_decode_init(G722DecoderState* s, 147 G722DecoderState* WebRtc_g722_decode_init(G722DecoderState* s,
148 int rate, 148 int rate,
149 int options); 149 int options);
150 int WebRtc_g722_decode_release(G722DecoderState *s); 150 int WebRtc_g722_decode_release(G722DecoderState *s);
151 int WebRtc_g722_decode(G722DecoderState *s, 151 size_t WebRtc_g722_decode(G722DecoderState *s,
152 int16_t amp[], 152 int16_t amp[],
153 const uint8_t g722_data[], 153 const uint8_t g722_data[],
154 int len); 154 size_t len);
155 155
156 #ifdef __cplusplus 156 #ifdef __cplusplus
157 } 157 }
158 #endif 158 #endif
159 159
160 #endif 160 #endif
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/g722/g722_decode.c ('k') | webrtc/modules/audio_coding/codecs/g722/g722_encode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698