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

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/rent_a_codec.h

Issue 1452153003: Remove dead code (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@rac6
Patch Set: nit Created 5 years, 1 month 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 static rtc::ArrayView<const CodecInst> Database(); 176 static rtc::ArrayView<const CodecInst> Database();
177 177
178 static rtc::Optional<bool> IsSupportedNumChannels(CodecId codec_id, 178 static rtc::Optional<bool> IsSupportedNumChannels(CodecId codec_id,
179 int num_channels); 179 int num_channels);
180 180
181 static rtc::Optional<NetEqDecoder> NetEqDecoderFromCodecId(CodecId codec_id, 181 static rtc::Optional<NetEqDecoder> NetEqDecoderFromCodecId(CodecId codec_id,
182 int num_channels); 182 int num_channels);
183 183
184 // Parse codec_inst and extract payload types. If the given CodecInst was for
185 // the wrong sort of codec, return kSkip; otherwise, if the rate was illegal,
186 // return kBadFreq; otherwise, update the given RTP timestamp rate (Hz) ->
187 // payload type map and return kOk.
188 enum class RegistrationResult { kOk, kSkip, kBadFreq };
189 static RegistrationResult RegisterCngPayloadType(std::map<int, int>* pt_map,
190 const CodecInst& codec_inst);
191 static RegistrationResult RegisterRedPayloadType(std::map<int, int>* pt_map,
192 const CodecInst& codec_inst);
193
184 RentACodec(); 194 RentACodec();
185 ~RentACodec(); 195 ~RentACodec();
186 196
187 // Creates and returns an audio encoder built to the given specification. 197 // Creates and returns an audio encoder built to the given specification.
188 // Returns null in case of error. The returned encoder is live until the next 198 // Returns null in case of error. The returned encoder is live until the next
189 // successful call to this function, or until the Rent-A-Codec is destroyed. 199 // successful call to this function, or until the Rent-A-Codec is destroyed.
190 AudioEncoder* RentEncoder(const CodecInst& codec_inst); 200 AudioEncoder* RentEncoder(const CodecInst& codec_inst);
191 201
192 // Creates and returns an audio encoder stack where the given speech encoder 202 // Creates and returns an audio encoder stack where the given speech encoder
193 // is augmented with the specified CNG/VAD and RED encoders. Leave either 203 // is augmented with the specified CNG/VAD and RED encoders. Leave either
(...skipping 26 matching lines...) Expand all
220 AudioEncoder* encoder_stack_ = nullptr; 230 AudioEncoder* encoder_stack_ = nullptr;
221 LockedIsacBandwidthInfo isac_bandwidth_info_; 231 LockedIsacBandwidthInfo isac_bandwidth_info_;
222 232
223 RTC_DISALLOW_COPY_AND_ASSIGN(RentACodec); 233 RTC_DISALLOW_COPY_AND_ASSIGN(RentACodec);
224 }; 234 };
225 235
226 } // namespace acm2 236 } // namespace acm2
227 } // namespace webrtc 237 } // namespace webrtc
228 238
229 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_RENT_A_CODEC_H_ 239 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_RENT_A_CODEC_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/codec_manager.cc ('k') | webrtc/modules/audio_coding/main/acm2/rent_a_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698