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

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

Issue 1199593005: Automatic resolution throttling for screen capture pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resolution_chooser_ITEM13
Patch Set: Created 5 years, 6 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 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_THREAD_SAFE_CAPTURE_ORACLE_H_
6 #define MEDIA_CAPTURE_THREAD_SAFE_CAPTURE_ORACLE_H_ 6 #define MEDIA_CAPTURE_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/capture_resolution_chooser.h"
15 #include "media/capture/video_capture_oracle.h" 14 #include "media/capture/video_capture_oracle.h"
16 #include "media/video/capture/video_capture_device.h" 15 #include "media/video/capture/video_capture_device.h"
17 16
18 namespace media { 17 namespace media {
19 18
20 struct VideoCaptureParams; 19 struct VideoCaptureParams;
21 class VideoFrame; 20 class VideoFrame;
22 21
23 // Thread-safe, refcounted proxy to the VideoCaptureOracle. This proxy wraps 22 // Thread-safe, refcounted proxy to the VideoCaptureOracle. This proxy wraps
24 // the VideoCaptureOracle, which decides which frames to capture, and a 23 // the VideoCaptureOracle, which decides which frames to capture, and a
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 mutable base::Lock lock_; 87 mutable base::Lock lock_;
89 88
90 // Recipient of our capture activity. 89 // Recipient of our capture activity.
91 scoped_ptr<VideoCaptureDevice::Client> client_; 90 scoped_ptr<VideoCaptureDevice::Client> client_;
92 91
93 // Makes the decision to capture a frame. 92 // Makes the decision to capture a frame.
94 VideoCaptureOracle oracle_; 93 VideoCaptureOracle oracle_;
95 94
96 // The video capture parameters used to construct the oracle proxy. 95 // The video capture parameters used to construct the oracle proxy.
97 const VideoCaptureParams params_; 96 const VideoCaptureParams params_;
98
99 // Determines video capture frame sizes.
100 CaptureResolutionChooser resolution_chooser_;
101 }; 97 };
102 98
103 } // namespace media 99 } // namespace media
104 100
105 #endif // MEDIA_CAPTURE_THREAD_SAFE_CAPTURE_ORACLE_H_ 101 #endif // MEDIA_CAPTURE_THREAD_SAFE_CAPTURE_ORACLE_H_
OLDNEW
« no previous file with comments | « no previous file | media/capture/thread_safe_capture_oracle.cc » ('j') | media/capture/thread_safe_capture_oracle.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698