| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ | 5 #ifndef DEVICE_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ |
| 6 #define MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ | 6 #define DEVICE_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "media/capture/capture_export.h" | 10 #include "device/capture/capture_export.h" |
| 11 #include "media/capture/content/animated_content_sampler.h" | 11 #include "device/capture/content/animated_content_sampler.h" |
| 12 #include "media/capture/content/capture_resolution_chooser.h" | 12 #include "device/capture/content/capture_resolution_chooser.h" |
| 13 #include "media/capture/content/feedback_signal_accumulator.h" | 13 #include "device/capture/content/smooth_event_sampler.h" |
| 14 #include "media/capture/content/smooth_event_sampler.h" | 14 #include "media/base/feedback_signal_accumulator.h" |
| 15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 16 | 16 |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 // VideoCaptureOracle manages the producer-side throttling of captured frames | 19 // VideoCaptureOracle manages the producer-side throttling of captured frames |
| 20 // from a video capture device. It is informed of every update by the device; | 20 // from a video capture device. It is informed of every update by the device; |
| 21 // this empowers it to look into the future and decide if a particular frame | 21 // this empowers it to look into the future and decide if a particular frame |
| 22 // ought to be captured in order to achieve its target frame rate. | 22 // ought to be captured in order to achieve its target frame rate. |
| 23 class CAPTURE_EXPORT VideoCaptureOracle { | 23 class CAPTURE_EXPORT VideoCaptureOracle { |
| 24 public: | 24 public: |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 base::TimeTicks start_time_of_underutilization_; | 195 base::TimeTicks start_time_of_underutilization_; |
| 196 | 196 |
| 197 // The timestamp of the frame where |content_sampler_| last detected | 197 // The timestamp of the frame where |content_sampler_| last detected |
| 198 // animation. This determines whether capture size increases will be | 198 // animation. This determines whether capture size increases will be |
| 199 // aggressive (because content is not animating). | 199 // aggressive (because content is not animating). |
| 200 base::TimeTicks last_time_animation_was_detected_; | 200 base::TimeTicks last_time_animation_was_detected_; |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace media | 203 } // namespace media |
| 204 | 204 |
| 205 #endif // MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ | 205 #endif // DEVICE_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ |
| OLD | NEW |