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

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

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: address review comments Created 3 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIDEO_CAPTURE_TYPES_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_
6 #define MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_ 6 #define MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 typedef int VideoCaptureSessionId; 21 typedef int VideoCaptureSessionId;
22 22
23 // Storage type for the pixels. 23 // Storage type for the pixels.
24 // TODO(mcasas): http://crbug.com/504160 Consider making this an enum class. 24 // TODO(mcasas): http://crbug.com/504160 Consider making this an enum class.
25 // TODO(chfremer): Extend or remove this enum. 25 // TODO(chfremer): Extend or remove this enum.
26 enum VideoPixelStorage { 26 enum VideoPixelStorage {
27 PIXEL_STORAGE_CPU, 27 PIXEL_STORAGE_CPU,
28 PIXEL_STORAGE_MAX = PIXEL_STORAGE_CPU, 28 PIXEL_STORAGE_MAX = PIXEL_STORAGE_CPU,
29 }; 29 };
30 30
31 enum class CameraFacing {
32 DEFAULT = 0,
33 // FRONT means a person's right will be on the left in the video.
wuchengli 2017/01/09 08:28:00 This is not always true. Apps can choose not to mi
shenghao 2017/01/10 12:16:35 Done.
34 FRONT,
wuchengli 2017/01/09 08:28:00 Also document BACK. // The source is facing away
shenghao 2017/01/10 12:16:35 Done.
35 BACK,
36 };
37
31 // Policies for capture devices that have source content that varies in size. 38 // Policies for capture devices that have source content that varies in size.
32 // It is up to the implementation how the captured content will be transformed 39 // It is up to the implementation how the captured content will be transformed
33 // (e.g., scaling and/or letterboxing) in order to produce video frames that 40 // (e.g., scaling and/or letterboxing) in order to produce video frames that
34 // strictly adheree to one of these policies. 41 // strictly adheree to one of these policies.
35 enum ResolutionChangePolicy { 42 enum ResolutionChangePolicy {
36 // Capture device outputs a fixed resolution all the time. The resolution of 43 // Capture device outputs a fixed resolution all the time. The resolution of
37 // the first frame is the resolution for all frames. 44 // the first frame is the resolution for all frames.
38 RESOLUTION_POLICY_FIXED_RESOLUTION, 45 RESOLUTION_POLICY_FIXED_RESOLUTION,
39 46
40 // Capture device is allowed to output frames of varying resolutions. The 47 // Capture device is allowed to output frames of varying resolutions. The
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Policy for resolution change. 147 // Policy for resolution change.
141 ResolutionChangePolicy resolution_change_policy; 148 ResolutionChangePolicy resolution_change_policy;
142 149
143 // User-specified power line frequency. 150 // User-specified power line frequency.
144 PowerLineFrequency power_line_frequency; 151 PowerLineFrequency power_line_frequency;
145 }; 152 };
146 153
147 } // namespace media 154 } // namespace media
148 155
149 #endif // MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_ 156 #endif // MEDIA_CAPTURE_VIDEO_CAPTURE_TYPES_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_track.cc ('k') | media/capture/video_capturer_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698