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

Side by Side Diff: content/renderer/media/video_track_adapter.h

Issue 2790823002: Spec compliant video constraints for getUserMedia behind flag. (Closed)
Patch Set: rebase Created 3 years, 8 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 CONTENT_RENDERER_MEDIA_VIDEO_TRACK_ADAPTER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_TRACK_ADAPTER_H_
6 #define CONTENT_RENDERER_MEDIA_VIDEO_TRACK_ADAPTER_H_ 6 #define CONTENT_RENDERER_MEDIA_VIDEO_TRACK_ADAPTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "content/renderer/media/media_stream_video_track.h" 15 #include "content/renderer/media/media_stream_video_track.h"
16 #include "media/base/video_frame.h" 16 #include "media/base/video_frame.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 struct VideoTrackAdapterSettings { 20 struct CONTENT_EXPORT VideoTrackAdapterSettings {
21 VideoTrackAdapterSettings() = default; 21 VideoTrackAdapterSettings();
22 VideoTrackAdapterSettings(int max_width, 22 VideoTrackAdapterSettings(int max_width,
23 int max_height, 23 int max_height,
24 double min_aspect_ratio, 24 double min_aspect_ratio,
25 double max_aspect_ratio, 25 double max_aspect_ratio,
26 double max_frame_rate); 26 double max_frame_rate);
27 int max_width; 27 int max_width;
28 int max_height; 28 int max_height;
29 double min_aspect_ratio; 29 double min_aspect_ratio;
30 double max_aspect_ratio; 30 double max_aspect_ratio;
31 double max_frame_rate; 31 double max_frame_rate;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // Frame rate configured on the video source, accessed on the IO-thread. 132 // Frame rate configured on the video source, accessed on the IO-thread.
133 float source_frame_rate_; 133 float source_frame_rate_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(VideoTrackAdapter); 135 DISALLOW_COPY_AND_ASSIGN(VideoTrackAdapter);
136 }; 136 };
137 137
138 } // namespace content 138 } // namespace content
139 139
140 #endif // CONTENT_RENDERER_MEDIA_VIDEO_TRACK_ADAPTER_H_ 140 #endif // CONTENT_RENDERER_MEDIA_VIDEO_TRACK_ADAPTER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/user_media_client_impl.cc ('k') | content/renderer/media/video_track_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698