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

Side by Side Diff: webrtc/media/base/mediaengine.h

Issue 2489173004: Revert of Stop caching supported codecs in WebRtcVideoEngine2 (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 webrtc::Call* call, 67 webrtc::Call* call,
68 const MediaConfig& config, 68 const MediaConfig& config,
69 const VideoOptions& options) = 0; 69 const VideoOptions& options) = 0;
70 70
71 // Gets the current microphone level, as a value between 0 and 10. 71 // Gets the current microphone level, as a value between 0 and 10.
72 virtual int GetInputLevel() = 0; 72 virtual int GetInputLevel() = 0;
73 73
74 virtual const std::vector<AudioCodec>& audio_send_codecs() = 0; 74 virtual const std::vector<AudioCodec>& audio_send_codecs() = 0;
75 virtual const std::vector<AudioCodec>& audio_recv_codecs() = 0; 75 virtual const std::vector<AudioCodec>& audio_recv_codecs() = 0;
76 virtual RtpCapabilities GetAudioCapabilities() = 0; 76 virtual RtpCapabilities GetAudioCapabilities() = 0;
77 virtual const std::vector<VideoCodec> video_codecs() = 0; 77 virtual const std::vector<VideoCodec>& video_codecs() = 0;
78 virtual RtpCapabilities GetVideoCapabilities() = 0; 78 virtual RtpCapabilities GetVideoCapabilities() = 0;
79 79
80 // Starts AEC dump using existing file, a maximum file size in bytes can be 80 // Starts AEC dump using existing file, a maximum file size in bytes can be
81 // specified. Logging is stopped just before the size limit is exceeded. 81 // specified. Logging is stopped just before the size limit is exceeded.
82 // If max_size_bytes is set to a value <= 0, no limit will be used. 82 // If max_size_bytes is set to a value <= 0, no limit will be used.
83 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; 83 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0;
84 84
85 // Stops recording AEC dump. 85 // Stops recording AEC dump.
86 virtual void StopAecDump() = 0; 86 virtual void StopAecDump() = 0;
87 }; 87 };
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 virtual const std::vector<AudioCodec>& audio_send_codecs() { 141 virtual const std::vector<AudioCodec>& audio_send_codecs() {
142 return voice_.send_codecs(); 142 return voice_.send_codecs();
143 } 143 }
144 virtual const std::vector<AudioCodec>& audio_recv_codecs() { 144 virtual const std::vector<AudioCodec>& audio_recv_codecs() {
145 return voice_.recv_codecs(); 145 return voice_.recv_codecs();
146 } 146 }
147 virtual RtpCapabilities GetAudioCapabilities() { 147 virtual RtpCapabilities GetAudioCapabilities() {
148 return voice_.GetCapabilities(); 148 return voice_.GetCapabilities();
149 } 149 }
150 virtual const std::vector<VideoCodec> video_codecs() { 150 virtual const std::vector<VideoCodec>& video_codecs() {
151 return video_.codecs(); 151 return video_.codecs();
152 } 152 }
153 virtual RtpCapabilities GetVideoCapabilities() { 153 virtual RtpCapabilities GetVideoCapabilities() {
154 return video_.GetCapabilities(); 154 return video_.GetCapabilities();
155 } 155 }
156 156
157 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { 157 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) {
158 return voice_.StartAecDump(file, max_size_bytes); 158 return voice_.StartAecDump(file, max_size_bytes);
159 } 159 }
160 160
(...skipping 13 matching lines...) Expand all
174 virtual ~DataEngineInterface() {} 174 virtual ~DataEngineInterface() {}
175 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; 175 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0;
176 virtual const std::vector<DataCodec>& data_codecs() = 0; 176 virtual const std::vector<DataCodec>& data_codecs() = 0;
177 }; 177 };
178 178
179 webrtc::RtpParameters CreateRtpParametersWithOneEncoding(); 179 webrtc::RtpParameters CreateRtpParametersWithOneEncoding();
180 180
181 } // namespace cricket 181 } // namespace cricket
182 182
183 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ 183 #endif // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698