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

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

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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
« no previous file with comments | « media/base/video_frame_metadata.h ('k') | media/capture/content/video_capture_oracle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_THREAD_SAFE_CAPTURE_ORACLE_H_ 5 #ifndef MEDIA_CAPTURE_CONTENT_THREAD_SAFE_CAPTURE_ORACLE_H_
6 #define MEDIA_CAPTURE_THREAD_SAFE_CAPTURE_ORACLE_H_ 6 #define MEDIA_CAPTURE_CONTENT_THREAD_SAFE_CAPTURE_ORACLE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 #include "media/base/video_frame.h" 13 #include "media/base/video_frame.h"
14 #include "media/capture/content/video_capture_oracle.h" 14 #include "media/capture/content/video_capture_oracle.h"
15 #include "media/capture/video/video_capture_device.h" 15 #include "media/capture/video/video_capture_device.h"
16 16
(...skipping 28 matching lines...) Expand all
45 bool ObserveEventAndDecideCapture(VideoCaptureOracle::Event event, 45 bool ObserveEventAndDecideCapture(VideoCaptureOracle::Event event,
46 const gfx::Rect& damage_rect, 46 const gfx::Rect& damage_rect,
47 base::TimeTicks event_time, 47 base::TimeTicks event_time,
48 scoped_refptr<VideoFrame>* storage, 48 scoped_refptr<VideoFrame>* storage,
49 CaptureFrameCallback* callback); 49 CaptureFrameCallback* callback);
50 50
51 base::TimeDelta min_capture_period() const { 51 base::TimeDelta min_capture_period() const {
52 return oracle_.min_capture_period(); 52 return oracle_.min_capture_period();
53 } 53 }
54 54
55 base::TimeTicks last_time_animation_was_detected() const {
56 return oracle_.last_time_animation_was_detected();
57 }
58
55 gfx::Size max_frame_size() const { 59 gfx::Size max_frame_size() const {
56 return params_.requested_format.frame_size; 60 return params_.requested_format.frame_size;
57 } 61 }
58 62
59 // Returns the current capture resolution. 63 // Returns the current capture resolution.
60 gfx::Size GetCaptureSize() const; 64 gfx::Size GetCaptureSize() const;
61 65
62 // Updates capture resolution based on the supplied source size and the 66 // Updates capture resolution based on the supplied source size and the
63 // maximum frame size. 67 // maximum frame size.
64 void UpdateCaptureSize(const gfx::Size& source_size); 68 void UpdateCaptureSize(const gfx::Size& source_size);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 100
97 // Makes the decision to capture a frame. 101 // Makes the decision to capture a frame.
98 VideoCaptureOracle oracle_; 102 VideoCaptureOracle oracle_;
99 103
100 // The video capture parameters used to construct the oracle proxy. 104 // The video capture parameters used to construct the oracle proxy.
101 const VideoCaptureParams params_; 105 const VideoCaptureParams params_;
102 }; 106 };
103 107
104 } // namespace media 108 } // namespace media
105 109
106 #endif // MEDIA_CAPTURE_THREAD_SAFE_CAPTURE_ORACLE_H_ 110 #endif // MEDIA_CAPTURE_CONTENT_THREAD_SAFE_CAPTURE_ORACLE_H_
OLDNEW
« no previous file with comments | « media/base/video_frame_metadata.h ('k') | media/capture/content/video_capture_oracle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698