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

Side by Side Diff: media/capture/content/video_capture_oracle.h

Issue 2149793003: Move media/capture/content/feedback_signal_accumulator{.h,_unittest.cc} to media/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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
OLDNEW
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 MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_
6 #define MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ 6 #define MEDIA_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/base/feedback_signal_accumulator.h"
10 #include "media/capture/capture_export.h" 11 #include "media/capture/capture_export.h"
11 #include "media/capture/content/animated_content_sampler.h" 12 #include "media/capture/content/animated_content_sampler.h"
12 #include "media/capture/content/capture_resolution_chooser.h" 13 #include "media/capture/content/capture_resolution_chooser.h"
13 #include "media/capture/content/feedback_signal_accumulator.h"
14 #include "media/capture/content/smooth_event_sampler.h" 14 #include "media/capture/content/smooth_event_sampler.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 {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_
OLDNEW
« no previous file with comments | « media/capture/content/feedback_signal_accumulator_unittest.cc ('k') | media/cast/sender/vp8_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698