| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 |
| 11 #ifndef WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ // NOLINT | 11 #ifndef WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ // NOLINT |
| 12 #define WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ | 12 #define WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/common.h" // For ASSERT | 14 #include "webrtc/base/common.h" // For ASSERT |
| 15 #include "webrtc/base/criticalsection.h" | 15 #include "webrtc/base/criticalsection.h" |
| 16 #include "webrtc/base/scoped_ptr.h" | |
| 17 #include "webrtc/base/sigslot.h" | 16 #include "webrtc/base/sigslot.h" |
| 18 #include "webrtc/media/base/videocommon.h" | 17 #include "webrtc/media/base/videocommon.h" |
| 19 | 18 |
| 20 namespace cricket { | 19 namespace cricket { |
| 21 | 20 |
| 22 class VideoFrame; | 21 class VideoFrame; |
| 23 | 22 |
| 24 // VideoAdapter adapts an input video frame to an output frame based on the | 23 // VideoAdapter adapts an input video frame to an output frame based on the |
| 25 // specified input and output formats. The adaptation includes dropping frames | 24 // specified input and output formats. The adaptation includes dropping frames |
| 26 // to reduce frame rate and scaling frames. VideoAdapter is thread safe. | 25 // to reduce frame rate and scaling frames. VideoAdapter is thread safe. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // The weighted average of cpu load over time. It's always updated (if cpu | 182 // The weighted average of cpu load over time. It's always updated (if cpu |
| 184 // adaptation is on), but only used if cpu_smoothing_ is set. | 183 // adaptation is on), but only used if cpu_smoothing_ is set. |
| 185 float system_load_average_; | 184 float system_load_average_; |
| 186 | 185 |
| 187 RTC_DISALLOW_COPY_AND_ASSIGN(CoordinatedVideoAdapter); | 186 RTC_DISALLOW_COPY_AND_ASSIGN(CoordinatedVideoAdapter); |
| 188 }; | 187 }; |
| 189 | 188 |
| 190 } // namespace cricket | 189 } // namespace cricket |
| 191 | 190 |
| 192 #endif // WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ // NOLINT | 191 #endif // WEBRTC_MEDIA_BASE_VIDEOADAPTER_H_ // NOLINT |
| OLD | NEW |