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

Side by Side Diff: device/capture/content/animated_content_sampler.h

Issue 2143903003: [WIP] Move media/capture to device/capture (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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_ANIMATED_CONTENT_SAMPLER_H_ 5 #ifndef DEVICE_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_
6 #define MEDIA_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_ 6 #define DEVICE_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "media/capture/capture_export.h" 11 #include "device/capture/capture_export.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 // Analyzes a sequence of events to detect the presence of constant frame rate 16 // Analyzes a sequence of events to detect the presence of constant frame rate
17 // animated content. In the case where there are multiple regions of animated 17 // animated content. In the case where there are multiple regions of animated
18 // content, AnimatedContentSampler will propose sampling the one having the 18 // content, AnimatedContentSampler will propose sampling the one having the
19 // largest "smoothness" impact, according to human perception (e.g., a 24 FPS 19 // largest "smoothness" impact, according to human perception (e.g., a 24 FPS
20 // video versus a 60 FPS busy spinner). 20 // video versus a 60 FPS busy spinner).
21 // 21 //
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // of time (one microsecond) equals one token; and, tokens are only taken from 147 // of time (one microsecond) equals one token; and, tokens are only taken from
148 // the bucket when at least a full sampling period's worth are present. 148 // the bucket when at least a full sampling period's worth are present.
149 base::TimeDelta token_bucket_; 149 base::TimeDelta token_bucket_;
150 150
151 // The rewritten frame timestamp for the latest event. 151 // The rewritten frame timestamp for the latest event.
152 base::TimeTicks frame_timestamp_; 152 base::TimeTicks frame_timestamp_;
153 }; 153 };
154 154
155 } // namespace media 155 } // namespace media
156 156
157 #endif // MEDIA_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_ 157 #endif // DEVICE_CAPTURE_CONTENT_ANIMATED_CONTENT_SAMPLER_H_
OLDNEW
« no previous file with comments | « device/capture/content/android/screen_capture_machine_android.cc ('k') | device/capture/content/animated_content_sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698