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

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

Issue 1512853007: Remove cricket::VideoEncoderConfig. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove stale function 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
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/videoengine_unittest.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 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Creates a voice media channel. Returns NULL on failure. 81 // Creates a voice media channel. Returns NULL on failure.
82 virtual VoiceMediaChannel* CreateChannel( 82 virtual VoiceMediaChannel* CreateChannel(
83 webrtc::Call* call, 83 webrtc::Call* call,
84 const AudioOptions& options) = 0; 84 const AudioOptions& options) = 0;
85 // Creates a video media channel, paired with the specified voice channel. 85 // Creates a video media channel, paired with the specified voice channel.
86 // Returns NULL on failure. 86 // Returns NULL on failure.
87 virtual VideoMediaChannel* CreateVideoChannel( 87 virtual VideoMediaChannel* CreateVideoChannel(
88 webrtc::Call* call, 88 webrtc::Call* call,
89 const VideoOptions& options) = 0; 89 const VideoOptions& options) = 0;
90 90
91 // Sets the default (maximum) codec/resolution and encoder option to capture
92 // and encode video.
93 virtual bool SetDefaultVideoEncoderConfig(const VideoEncoderConfig& config)
94 = 0;
95
96 // Device configuration 91 // Device configuration
97 // Gets the current speaker volume, as a value between 0 and 255. 92 // Gets the current speaker volume, as a value between 0 and 255.
98 virtual bool GetOutputVolume(int* level) = 0; 93 virtual bool GetOutputVolume(int* level) = 0;
99 // Sets the current speaker volume, as a value between 0 and 255. 94 // Sets the current speaker volume, as a value between 0 and 255.
100 virtual bool SetOutputVolume(int level) = 0; 95 virtual bool SetOutputVolume(int level) = 0;
101 96
102 // Gets the current microphone level, as a value between 0 and 10. 97 // Gets the current microphone level, as a value between 0 and 10.
103 virtual int GetInputLevel() = 0; 98 virtual int GetInputLevel() = 0;
104 99
105 virtual const std::vector<AudioCodec>& audio_codecs() = 0; 100 virtual const std::vector<AudioCodec>& audio_codecs() = 0;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 155 }
161 virtual VoiceMediaChannel* CreateChannel(webrtc::Call* call, 156 virtual VoiceMediaChannel* CreateChannel(webrtc::Call* call,
162 const AudioOptions& options) { 157 const AudioOptions& options) {
163 return voice_.CreateChannel(call, options); 158 return voice_.CreateChannel(call, options);
164 } 159 }
165 virtual VideoMediaChannel* CreateVideoChannel(webrtc::Call* call, 160 virtual VideoMediaChannel* CreateVideoChannel(webrtc::Call* call,
166 const VideoOptions& options) { 161 const VideoOptions& options) {
167 return video_.CreateChannel(call, options); 162 return video_.CreateChannel(call, options);
168 } 163 }
169 164
170 virtual bool SetDefaultVideoEncoderConfig(const VideoEncoderConfig& config) {
171 return video_.SetDefaultEncoderConfig(config);
172 }
173
174 virtual bool GetOutputVolume(int* level) { 165 virtual bool GetOutputVolume(int* level) {
175 return voice_.GetOutputVolume(level); 166 return voice_.GetOutputVolume(level);
176 } 167 }
177 virtual bool SetOutputVolume(int level) { 168 virtual bool SetOutputVolume(int level) {
178 return voice_.SetOutputVolume(level); 169 return voice_.SetOutputVolume(level);
179 } 170 }
180 171
181 virtual int GetInputLevel() { 172 virtual int GetInputLevel() {
182 return voice_.GetInputLevel(); 173 return voice_.GetInputLevel();
183 } 174 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 class DataEngineInterface { 213 class DataEngineInterface {
223 public: 214 public:
224 virtual ~DataEngineInterface() {} 215 virtual ~DataEngineInterface() {}
225 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; 216 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0;
226 virtual const std::vector<DataCodec>& data_codecs() = 0; 217 virtual const std::vector<DataCodec>& data_codecs() = 0;
227 }; 218 };
228 219
229 } // namespace cricket 220 } // namespace cricket
230 221
231 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ 222 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_
OLDNEW
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/videoengine_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698