OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 }; | 188 }; |
189 | 189 |
190 // Callback used to inform the user of the the desired resolution | 190 // Callback used to inform the user of the the desired resolution |
191 // as subscribed by Media Optimization (Quality Modes) | 191 // as subscribed by Media Optimization (Quality Modes) |
192 class VCMQMSettingsCallback { | 192 class VCMQMSettingsCallback { |
193 public: | 193 public: |
194 virtual int32_t SetVideoQMSettings(const uint32_t frameRate, | 194 virtual int32_t SetVideoQMSettings(const uint32_t frameRate, |
195 const uint32_t width, | 195 const uint32_t width, |
196 const uint32_t height) = 0; | 196 const uint32_t height) = 0; |
197 | 197 |
198 virtual void SetTargetFramerate(int frame_rate) = 0; | |
199 | |
200 protected: | 198 protected: |
201 virtual ~VCMQMSettingsCallback() {} | 199 virtual ~VCMQMSettingsCallback() {} |
202 }; | 200 }; |
203 | 201 |
204 // Callback class used for telling the user about the size (in time) of the | 202 // Callback class used for telling the user about the size (in time) of the |
205 // render buffer, that is the size in time of the complete continuous frames. | 203 // render buffer, that is the size in time of the complete continuous frames. |
206 class VCMRenderBufferSizeCallback { | 204 class VCMRenderBufferSizeCallback { |
207 public: | 205 public: |
208 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; | 206 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; |
209 | 207 |
210 protected: | 208 protected: |
211 virtual ~VCMRenderBufferSizeCallback() {} | 209 virtual ~VCMRenderBufferSizeCallback() {} |
212 }; | 210 }; |
213 | 211 |
214 } // namespace webrtc | 212 } // namespace webrtc |
215 | 213 |
216 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ | 214 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ |
OLD | NEW |