| 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_BASE_VIDEO_CAPTURE_TYPES_H_ | 5 #ifndef MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ |
| 6 #define MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ | 6 #define MEDIA_BASE_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/geometry/size.h" | 11 #include "ui/gfx/geometry/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_NV12, |
| 24 PIXEL_FORMAT_NV21, | 24 PIXEL_FORMAT_NV21, |
| 25 PIXEL_FORMAT_UYVY, | 25 PIXEL_FORMAT_UYVY, |
| 26 PIXEL_FORMAT_YUY2, | 26 PIXEL_FORMAT_YUY2, |
| 27 PIXEL_FORMAT_RGB24, | 27 PIXEL_FORMAT_RGB24, |
| 28 PIXEL_FORMAT_RGB32, |
| 28 PIXEL_FORMAT_ARGB, | 29 PIXEL_FORMAT_ARGB, |
| 29 PIXEL_FORMAT_MJPEG, | 30 PIXEL_FORMAT_MJPEG, |
| 30 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. | 31 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. |
| 31 PIXEL_FORMAT_UNKNOWN, // Color format not set. | 32 PIXEL_FORMAT_UNKNOWN, // Color format not set. |
| 32 PIXEL_FORMAT_MAX, | 33 PIXEL_FORMAT_MAX, |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 // Policies for capture devices that has source content with dynamic resolution. | 36 // Policies for capture devices that has source content with dynamic resolution. |
| 36 enum ResolutionChangePolicy { | 37 enum ResolutionChangePolicy { |
| 37 // Capture device outputs a fixed resolution all the time. The resolution of | 38 // Capture device outputs a fixed resolution all the time. The resolution of |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Requests a resolution and format at which the capture will occur. | 94 // Requests a resolution and format at which the capture will occur. |
| 94 VideoCaptureFormat requested_format; | 95 VideoCaptureFormat requested_format; |
| 95 | 96 |
| 96 // Policy for resolution change. | 97 // Policy for resolution change. |
| 97 ResolutionChangePolicy resolution_change_policy; | 98 ResolutionChangePolicy resolution_change_policy; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace media | 101 } // namespace media |
| 101 | 102 |
| 102 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ | 103 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ |
| OLD | NEW |