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

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

Issue 1419013005: Hide ACMCodecDB::codec_settings_ behind an accessor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ICanHasNumChannels? 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 static rtc::Maybe<CodecId> CodecIdByParams(const char* payload_name, 147 static rtc::Maybe<CodecId> CodecIdByParams(const char* payload_name,
148 int sampling_freq_hz, 148 int sampling_freq_hz,
149 int channels); 149 int channels);
150 static rtc::Maybe<CodecInst> CodecInstById(CodecId codec_id); 150 static rtc::Maybe<CodecInst> CodecInstById(CodecId codec_id);
151 static rtc::Maybe<CodecInst> CodecInstByParams(const char* payload_name, 151 static rtc::Maybe<CodecInst> CodecInstByParams(const char* payload_name,
152 int sampling_freq_hz, 152 int sampling_freq_hz,
153 int channels); 153 int channels);
154 static bool IsCodecValid(const CodecInst& codec_inst); 154 static bool IsCodecValid(const CodecInst& codec_inst);
155 static rtc::ArrayView<const CodecInst> Database(); 155 static rtc::ArrayView<const CodecInst> Database();
156 156
157 static rtc::Maybe<bool> IsSupportedNumChannels(CodecId codec_id,
158 int num_channels);
159
157 static rtc::Maybe<NetEqDecoder> NetEqDecoderFromCodecId(CodecId codec_id, 160 static rtc::Maybe<NetEqDecoder> NetEqDecoderFromCodecId(CodecId codec_id,
158 int num_channels); 161 int num_channels);
159 }; 162 };
160 163
161 } // namespace acm2 164 } // namespace acm2
162 } // namespace webrtc 165 } // namespace webrtc
163 166
164 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_RENT_A_CODEC_H_ 167 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_RENT_A_CODEC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698