| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // | 146 // |
| 147 // Output: | 147 // Output: |
| 148 // -codec : a structure where the function returns the | 148 // -codec : a structure where the function returns the |
| 149 // default parameters of the codec. | 149 // default parameters of the codec. |
| 150 // | 150 // |
| 151 // Return value: | 151 // Return value: |
| 152 // -1 if no codec matches the given parameters. | 152 // -1 if no codec matches the given parameters. |
| 153 // 0 if succeeded. | 153 // 0 if succeeded. |
| 154 // | 154 // |
| 155 static int Codec(const char* payload_name, CodecInst* codec, | 155 static int Codec(const char* payload_name, CodecInst* codec, |
| 156 int sampling_freq_hz, int channels); | 156 int sampling_freq_hz, size_t channels); |
| 157 | 157 |
| 158 /////////////////////////////////////////////////////////////////////////// | 158 /////////////////////////////////////////////////////////////////////////// |
| 159 // int32_t Codec() | 159 // int32_t Codec() |
| 160 // | 160 // |
| 161 // Returns the list number of the given codec name, sampling frequency, and | 161 // Returns the list number of the given codec name, sampling frequency, and |
| 162 // a given number of channels. | 162 // a given number of channels. |
| 163 // | 163 // |
| 164 // Input: | 164 // Input: |
| 165 // -payload_name : name of the codec. | 165 // -payload_name : name of the codec. |
| 166 // -sampling_freq_hz : sampling frequency of the codec. Note! for RED | 166 // -sampling_freq_hz : sampling frequency of the codec. Note! for RED |
| 167 // a sampling frequency of -1 is a valid input. | 167 // a sampling frequency of -1 is a valid input. |
| 168 // -channels : number of channels ( 1 - mono, 2 - stereo). | 168 // -channels : number of channels ( 1 - mono, 2 - stereo). |
| 169 // | 169 // |
| 170 // Return value: | 170 // Return value: |
| 171 // if the codec is found, the index of the codec in the list, | 171 // if the codec is found, the index of the codec in the list, |
| 172 // -1 if the codec is not found. | 172 // -1 if the codec is not found. |
| 173 // | 173 // |
| 174 static int Codec(const char* payload_name, int sampling_freq_hz, | 174 static int Codec(const char* payload_name, int sampling_freq_hz, |
| 175 int channels); | 175 size_t channels); |
| 176 | 176 |
| 177 /////////////////////////////////////////////////////////////////////////// | 177 /////////////////////////////////////////////////////////////////////////// |
| 178 // bool IsCodecValid() | 178 // bool IsCodecValid() |
| 179 // Checks the validity of the parameters of the given codec. | 179 // Checks the validity of the parameters of the given codec. |
| 180 // | 180 // |
| 181 // Input: | 181 // Input: |
| 182 // -codec : the structure which keeps the parameters of the | 182 // -codec : the structure which keeps the parameters of the |
| 183 // codec. | 183 // codec. |
| 184 // | 184 // |
| 185 // Return value: | 185 // Return value: |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; | 1162 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; |
| 1163 | 1163 |
| 1164 // Returns the timing statistics for calls to Get10MsAudio. | 1164 // Returns the timing statistics for calls to Get10MsAudio. |
| 1165 virtual void GetDecodingCallStatistics( | 1165 virtual void GetDecodingCallStatistics( |
| 1166 AudioDecodingCallStats* call_stats) const = 0; | 1166 AudioDecodingCallStats* call_stats) const = 0; |
| 1167 }; | 1167 }; |
| 1168 | 1168 |
| 1169 } // namespace webrtc | 1169 } // namespace webrtc |
| 1170 | 1170 |
| 1171 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ | 1171 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ |
| OLD | NEW |