Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 module media.mojom; | 5 module media.mojom; |
| 6 | 6 |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 import "mojo/common/common_custom_types.mojom"; | 8 import "mojo/common/common_custom_types.mojom"; |
| 9 | 9 |
| 10 // See media/base/buffering_state.h for descriptions. | 10 // See media/base/buffering_state.h for descriptions. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 S32, | 92 S32, |
| 93 F32, | 93 F32, |
| 94 PlanarS16, | 94 PlanarS16, |
| 95 PlanarF32, | 95 PlanarF32, |
| 96 PlanarS32, | 96 PlanarS32, |
| 97 S24, | 97 S24, |
| 98 Max = S24, | 98 Max = S24, |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // See media/base/video_types.h for descriptions. | 101 // See media/base/video_types.h for descriptions. |
| 102 // Kept in sync with media::VideoPixelFormat via static_asserts. | 102 // Kept in sync with media::VideoPixelFormat via static_asserts. |
|
mcasas
2016/10/12 17:18:26
nit: Totally unrelated to your CL, but would you
m
chfremer
2016/10/12 17:39:19
Done.
| |
| 103 enum VideoFormat { | 103 enum VideoFormat { |
| 104 UNKNOWN = 0, | 104 UNKNOWN = 0, |
| 105 I420, | 105 I420, |
| 106 YV12, | 106 YV12, |
| 107 YV16, | 107 YV16, |
| 108 YV12A, | 108 YV12A, |
| 109 YV24, | 109 YV24, |
| 110 NV12, | 110 NV12, |
| 111 NV21, | 111 NV21, |
| 112 UYVY, | 112 UYVY, |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 124 YUV444P9, | 124 YUV444P9, |
| 125 YUV444P10, | 125 YUV444P10, |
| 126 YUV420P12, | 126 YUV420P12, |
| 127 YUV422P12, | 127 YUV422P12, |
| 128 YUV444P12, | 128 YUV444P12, |
| 129 Y8, | 129 Y8, |
| 130 Y16, | 130 Y16, |
| 131 FORMAT_MAX = Y16, | 131 FORMAT_MAX = Y16, |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 enum ResolutionChangePolicy { | |
| 135 FIXED_RESOLUTION, | |
| 136 FIXED_ASPECT_RATIO, | |
| 137 ANY_WITHIN_LIMIT, | |
| 138 }; | |
| 139 | |
| 140 enum PowerLineFrequency { | |
| 141 DEFAULT, | |
| 142 HZ_50, | |
| 143 HZ_60 | |
| 144 }; | |
| 145 | |
| 146 enum VideoPixelStorage { | |
| 147 CPU, | |
| 148 GPUMEMORYBUFFER | |
| 149 }; | |
| 150 | |
| 151 enum VideoCaptureApi { | |
| 152 LINUX_V4L2_SINGLE_PLANE, | |
| 153 WIN_MEDIA_FOUNDATION, | |
| 154 WIN_DIRECT_SHOW, | |
| 155 MACOSX_AVFOUNDATION, | |
| 156 MACOSX_DECKLINK, | |
| 157 ANDROID_API1, | |
| 158 ANDROID_API2_LEGACY, | |
| 159 ANDROID_API2_FULL, | |
| 160 ANDROID_API2_LIMITED, | |
| 161 ANDROID_TANGO, | |
| 162 UNKNOWN | |
| 163 }; | |
| 164 | |
| 165 enum VideoCaptureTransportType { | |
| 166 // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB. | |
| 167 MACOSX_USB_OR_BUILT_IN, | |
| 168 OTHER_TRANSPORT | |
| 169 }; | |
| 134 // Kept in sync with media::ColorSpace via static_asserts. | 170 // Kept in sync with media::ColorSpace via static_asserts. |
| 135 enum ColorSpace { | 171 enum ColorSpace { |
| 136 UNSPECIFIED = 0, | 172 UNSPECIFIED = 0, |
| 137 JPEG = 1, | 173 JPEG = 1, |
| 138 HD_REC709 = 2, | 174 HD_REC709 = 2, |
| 139 SD_REC601 = 3, | 175 SD_REC601 = 3, |
| 140 MAX = SD_REC601, | 176 MAX = SD_REC601, |
| 141 }; | 177 }; |
| 142 | 178 |
| 143 // See media/base/video_decoder_config.h for descriptions. | 179 // See media/base/video_decoder_config.h for descriptions. |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 341 }; | 377 }; |
| 342 | 378 |
| 343 struct PipelineStatistics { | 379 struct PipelineStatistics { |
| 344 uint64 audio_bytes_decoded; | 380 uint64 audio_bytes_decoded; |
| 345 uint64 video_bytes_decoded; | 381 uint64 video_bytes_decoded; |
| 346 uint32 video_frames_decoded; | 382 uint32 video_frames_decoded; |
| 347 uint32 video_frames_dropped; | 383 uint32 video_frames_dropped; |
| 348 int64 audio_memory_usage; | 384 int64 audio_memory_usage; |
| 349 int64 video_memory_usage; | 385 int64 video_memory_usage; |
| 350 }; | 386 }; |
| 387 | |
| 388 struct VideoCaptureFormat { | |
| 389 gfx.mojom.Size frame_size; | |
| 390 float frame_rate; | |
| 391 VideoFormat pixel_format; | |
| 392 VideoPixelStorage pixel_storage; | |
| 393 }; | |
| 394 | |
| 395 struct VideoCaptureParams { | |
| 396 VideoCaptureFormat requested_format; | |
| 397 ResolutionChangePolicy resolution_change_policy; | |
| 398 PowerLineFrequency power_line_frequency; | |
| 399 }; | |
| OLD | NEW |