| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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_RGB32, |
| 29 PIXEL_FORMAT_ARGB, | 29 PIXEL_FORMAT_ARGB, |
| 30 PIXEL_FORMAT_MJPEG, | 30 PIXEL_FORMAT_MJPEG, |
| 31 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. | 31 PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture. |
| 32 PIXEL_FORMAT_GPUMEMORYBUFFER, | |
| 33 PIXEL_FORMAT_UNKNOWN, // Color format not set. | 32 PIXEL_FORMAT_UNKNOWN, // Color format not set. |
| 34 PIXEL_FORMAT_MAX, | 33 PIXEL_FORMAT_MAX, |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 // Policies for capture devices that has source content with dynamic resolution. | 36 // Policies for capture devices that has source content with dynamic resolution. |
| 38 enum ResolutionChangePolicy { | 37 enum ResolutionChangePolicy { |
| 39 // 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 |
| 40 // the first frame is the resolution for all frames. | 39 // the first frame is the resolution for all frames. |
| 41 // It is implementation specific for the capture device to scale, letter-box | 40 // It is implementation specific for the capture device to scale, letter-box |
| 42 // and pillar-box. The only guarantee is that resolution will never change. | 41 // and pillar-box. The only guarantee is that resolution will never change. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Requests a resolution and format at which the capture will occur. | 94 // Requests a resolution and format at which the capture will occur. |
| 96 VideoCaptureFormat requested_format; | 95 VideoCaptureFormat requested_format; |
| 97 | 96 |
| 98 // Policy for resolution change. | 97 // Policy for resolution change. |
| 99 ResolutionChangePolicy resolution_change_policy; | 98 ResolutionChangePolicy resolution_change_policy; |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 } // namespace media | 101 } // namespace media |
| 103 | 102 |
| 104 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ | 103 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ |
| OLD | NEW |