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

Side by Side Diff: webrtc/modules/audio_coding/acm2/codec_manager.h

Issue 1527453005: AudioCodingModuleImpl: Stop failing artificially for non-Opus encoders (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@rac1
Patch Set: rebase Created 5 years 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return &codec_stack_params_; 46 return &codec_stack_params_;
47 } 47 }
48 RentACodec::StackParameters* GetStackParams() { return &codec_stack_params_; } 48 RentACodec::StackParameters* GetStackParams() { return &codec_stack_params_; }
49 49
50 bool SetCopyRed(bool enable); 50 bool SetCopyRed(bool enable);
51 51
52 bool SetVAD(bool enable, ACMVADMode mode); 52 bool SetVAD(bool enable, ACMVADMode mode);
53 53
54 bool SetCodecFEC(bool enable_codec_fec); 54 bool SetCodecFEC(bool enable_codec_fec);
55 55
56 bool CurrentEncoderIsOpus() const;
57
58 private: 56 private:
59 rtc::ThreadChecker thread_checker_; 57 rtc::ThreadChecker thread_checker_;
60 rtc::Optional<CodecInst> send_codec_inst_; 58 rtc::Optional<CodecInst> send_codec_inst_;
61 RentACodec::StackParameters codec_stack_params_; 59 RentACodec::StackParameters codec_stack_params_;
62 60
63 RTC_DISALLOW_COPY_AND_ASSIGN(CodecManager); 61 RTC_DISALLOW_COPY_AND_ASSIGN(CodecManager);
64 }; 62 };
65 63
66 } // namespace acm2 64 } // namespace acm2
67 } // namespace webrtc 65 } // namespace webrtc
68 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_CODEC_MANAGER_H_ 66 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_CODEC_MANAGER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc ('k') | webrtc/modules/audio_coding/acm2/codec_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698