OLD | NEW |
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_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ |
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ | 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 // TODO(wjia): this type should be defined in a common place and | 15 // TODO(wjia): this type should be defined in a common place and |
16 // shared with device manager. | 16 // shared with device manager. |
17 typedef int VideoCaptureSessionId; | 17 typedef int VideoCaptureSessionId; |
18 | 18 |
19 // Color formats from camera. This list is sorted in order of preference. | 19 // Color formats from camera. This list is sorted in order of preference. |
20 enum VideoPixelFormat { | 20 enum VideoPixelFormat { |
21 PIXEL_FORMAT_I420, | 21 PIXEL_FORMAT_I420, |
22 PIXEL_FORMAT_YV12, | 22 PIXEL_FORMAT_YV12, |
| 23 PIXEL_FORMAT_NV12, |
23 PIXEL_FORMAT_NV21, | 24 PIXEL_FORMAT_NV21, |
24 PIXEL_FORMAT_UYVY, | 25 PIXEL_FORMAT_UYVY, |
25 PIXEL_FORMAT_YUY2, | 26 PIXEL_FORMAT_YUY2, |
26 PIXEL_FORMAT_RGB24, | 27 PIXEL_FORMAT_RGB24, |
27 PIXEL_FORMAT_ARGB, | 28 PIXEL_FORMAT_ARGB, |
28 PIXEL_FORMAT_MJPEG, | 29 PIXEL_FORMAT_MJPEG, |
29 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. | 30 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. |
30 PIXEL_FORMAT_UNKNOWN, // Color format not set. | 31 PIXEL_FORMAT_UNKNOWN, // Color format not set. |
31 PIXEL_FORMAT_MAX, | 32 PIXEL_FORMAT_MAX, |
32 }; | 33 }; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Requests a resolution and format at which the capture will occur. | 106 // Requests a resolution and format at which the capture will occur. |
106 VideoCaptureFormat requested_format; | 107 VideoCaptureFormat requested_format; |
107 | 108 |
108 // Policy for resolution change. | 109 // Policy for resolution change. |
109 ResolutionChangePolicy resolution_change_policy; | 110 ResolutionChangePolicy resolution_change_policy; |
110 }; | 111 }; |
111 | 112 |
112 } // namespace media | 113 } // namespace media |
113 | 114 |
114 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ | 115 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_TYPES_H_ |
OLD | NEW |