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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // | 127 // |
128 // Output: | 128 // Output: |
129 // -codec : a structure where the function returns the | 129 // -codec : a structure where the function returns the |
130 // default parameters of the codec. | 130 // default parameters of the codec. |
131 // | 131 // |
132 // Return value: | 132 // Return value: |
133 // -1 if no codec matches the given parameters. | 133 // -1 if no codec matches the given parameters. |
134 // 0 if succeeded. | 134 // 0 if succeeded. |
135 // | 135 // |
136 static int Codec(const char* payload_name, CodecInst* codec, | 136 static int Codec(const char* payload_name, CodecInst* codec, |
137 int sampling_freq_hz, int channels); | 137 int sampling_freq_hz, int channels); |
138 | 138 |
139 /////////////////////////////////////////////////////////////////////////// | 139 /////////////////////////////////////////////////////////////////////////// |
140 // int32_t Codec() | 140 // int32_t Codec() |
141 // | 141 // |
142 // Returns the list number of the given codec name, sampling frequency, and | 142 // Returns the list number of the given codec name, sampling frequency, and |
143 // a given number of channels. | 143 // a given number of channels. |
144 // | 144 // |
145 // Input: | 145 // Input: |
146 // -payload_name : name of the codec. | 146 // -payload_name : name of the codec. |
147 // -sampling_freq_hz : sampling frequency of the codec. Note! for RED | 147 // -sampling_freq_hz : sampling frequency of the codec. Note! for RED |
148 // a sampling frequency of -1 is a valid input. | 148 // a sampling frequency of -1 is a valid input. |
149 // -channels : number of channels ( 1 - mono, 2 - stereo). | 149 // -channels : number of channels ( 1 - mono, 2 - stereo). |
150 // | 150 // |
151 // Return value: | 151 // Return value: |
152 // if the codec is found, the index of the codec in the list, | 152 // if the codec is found, the index of the codec in the list, |
153 // -1 if the codec is not found. | 153 // -1 if the codec is not found. |
154 // | 154 // |
155 static int Codec(const char* payload_name, int sampling_freq_hz, | 155 static int Codec(const char* payload_name, int sampling_freq_hz, |
156 int channels); | 156 int channels); |
157 | 157 |
158 /////////////////////////////////////////////////////////////////////////// | 158 /////////////////////////////////////////////////////////////////////////// |
159 // bool IsCodecValid() | 159 // bool IsCodecValid() |
160 // Checks the validity of the parameters of the given codec. | 160 // Checks the validity of the parameters of the given codec. |
161 // | 161 // |
162 // Input: | 162 // Input: |
163 // -codec : the structure which keeps the parameters of the | 163 // -codec : the structure which keeps the parameters of the |
164 // codec. | 164 // codec. |
165 // | 165 // |
166 // Return value: | 166 // Return value: |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 virtual std::vector<uint16_t> GetNackList( | 737 virtual std::vector<uint16_t> GetNackList( |
738 int64_t round_trip_time_ms) const = 0; | 738 int64_t round_trip_time_ms) const = 0; |
739 | 739 |
740 virtual void GetDecodingCallStatistics( | 740 virtual void GetDecodingCallStatistics( |
741 AudioDecodingCallStats* call_stats) const = 0; | 741 AudioDecodingCallStats* call_stats) const = 0; |
742 }; | 742 }; |
743 | 743 |
744 } // namespace webrtc | 744 } // namespace webrtc |
745 | 745 |
746 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 746 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |