| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 PIXEL_FORMAT_YV12, | 25 PIXEL_FORMAT_YV12, |
| 26 PIXEL_FORMAT_NV12, | 26 PIXEL_FORMAT_NV12, |
| 27 PIXEL_FORMAT_NV21, | 27 PIXEL_FORMAT_NV21, |
| 28 PIXEL_FORMAT_UYVY, | 28 PIXEL_FORMAT_UYVY, |
| 29 PIXEL_FORMAT_YUY2, | 29 PIXEL_FORMAT_YUY2, |
| 30 PIXEL_FORMAT_RGB24, | 30 PIXEL_FORMAT_RGB24, |
| 31 PIXEL_FORMAT_RGB32, | 31 PIXEL_FORMAT_RGB32, |
| 32 PIXEL_FORMAT_ARGB, | 32 PIXEL_FORMAT_ARGB, |
| 33 PIXEL_FORMAT_MJPEG, | 33 PIXEL_FORMAT_MJPEG, |
| 34 PIXEL_FORMAT_UNKNOWN, // Color format not set. | 34 PIXEL_FORMAT_UNKNOWN, // Color format not set. |
| 35 PIXEL_FORMAT_MAX, | 35 PIXEL_FORMAT_MAX = PIXEL_FORMAT_UNKNOWN, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Storage type for the pixels. In principle, all combinations of Storage and | 38 // Storage type for the pixels. In principle, all combinations of Storage and |
| 39 // Format are possible, though some are very typical, such as texture + ARGB, | 39 // Format are possible, though some are very typical, such as texture + ARGB, |
| 40 // and others are only available if the platform allows it e.g. GpuMemoryBuffer. | 40 // and others are only available if the platform allows it e.g. GpuMemoryBuffer. |
| 41 // TODO(mcasas): http://crbug.com/504160 Consider making this an enum class. | 41 // TODO(mcasas): http://crbug.com/504160 Consider making this an enum class. |
| 42 enum VideoPixelStorage { | 42 enum VideoPixelStorage { |
| 43 PIXEL_STORAGE_CPU, | 43 PIXEL_STORAGE_CPU, |
| 44 PIXEL_STORAGE_TEXTURE, | 44 PIXEL_STORAGE_TEXTURE, |
| 45 PIXEL_STORAGE_GPUMEMORYBUFFER, | 45 PIXEL_STORAGE_GPUMEMORYBUFFER, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Policy for resolution change. | 133 // Policy for resolution change. |
| 134 ResolutionChangePolicy resolution_change_policy; | 134 ResolutionChangePolicy resolution_change_policy; |
| 135 | 135 |
| 136 // Indication to the Driver to try to use GpuMemoryBuffers. | 136 // Indication to the Driver to try to use GpuMemoryBuffers. |
| 137 bool use_gpu_memory_buffers; | 137 bool use_gpu_memory_buffers; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace media | 140 } // namespace media |
| 141 | 141 |
| 142 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ | 142 #endif // MEDIA_BASE_VIDEO_CAPTURE_TYPES_H_ |
| OLD | NEW |