Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: media/mojo/interfaces/media_types.mojom

Issue 2405423002: [Video Capture Service] Move Mojo structs and enums to media/capture/mojo (Closed)
Patch Set: mcasas' comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 F32, 90 F32,
91 PlanarS16, 91 PlanarS16,
92 PlanarF32, 92 PlanarF32,
93 PlanarS32, 93 PlanarS32,
94 S24, 94 S24,
95 Max = S24, 95 Max = S24,
96 }; 96 };
97 97
98 // See media/base/video_types.h for descriptions. 98 // See media/base/video_types.h for descriptions.
99 // Kept in sync with media::VideoPixelFormat via static_asserts. 99 // Kept in sync with media::VideoPixelFormat via static_asserts.
100 // TODO(mcasas): use enum traits instead, https://crbug.com/655205
100 enum VideoFormat { 101 enum VideoFormat {
101 UNKNOWN = 0, 102 UNKNOWN = 0,
102 I420, 103 I420,
103 YV12, 104 YV12,
104 YV16, 105 YV16,
105 YV12A, 106 YV12A,
106 YV24, 107 YV24,
107 NV12, 108 NV12,
108 NV21, 109 NV21,
109 UYVY, 110 UYVY,
(...skipping 11 matching lines...) Expand all
121 YUV444P9, 122 YUV444P9,
122 YUV444P10, 123 YUV444P10,
123 YUV420P12, 124 YUV420P12,
124 YUV422P12, 125 YUV422P12,
125 YUV444P12, 126 YUV444P12,
126 Y8, 127 Y8,
127 Y16, 128 Y16,
128 FORMAT_MAX = Y16, 129 FORMAT_MAX = Y16,
129 }; 130 };
130 131
132 enum ResolutionChangePolicy {
133 FIXED_RESOLUTION,
134 FIXED_ASPECT_RATIO,
135 ANY_WITHIN_LIMIT,
136 };
137
138 enum PowerLineFrequency {
139 DEFAULT,
140 HZ_50,
141 HZ_60
142 };
143
144 enum VideoPixelStorage {
145 CPU,
146 GPUMEMORYBUFFER
147 };
148
149 enum VideoCaptureApi {
150 LINUX_V4L2_SINGLE_PLANE,
151 WIN_MEDIA_FOUNDATION,
152 WIN_DIRECT_SHOW,
153 MACOSX_AVFOUNDATION,
154 MACOSX_DECKLINK,
155 ANDROID_API1,
156 ANDROID_API2_LEGACY,
157 ANDROID_API2_FULL,
158 ANDROID_API2_LIMITED,
159 ANDROID_TANGO,
160 UNKNOWN
161 };
162
163 enum VideoCaptureTransportType {
164 // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB.
165 MACOSX_USB_OR_BUILT_IN,
166 OTHER_TRANSPORT
167 };
131 // Kept in sync with media::ColorSpace via static_asserts. 168 // Kept in sync with media::ColorSpace via static_asserts.
132 enum ColorSpace { 169 enum ColorSpace {
133 UNSPECIFIED = 0, 170 UNSPECIFIED = 0,
134 JPEG = 1, 171 JPEG = 1,
135 HD_REC709 = 2, 172 HD_REC709 = 2,
136 SD_REC601 = 3, 173 SD_REC601 = 3,
137 MAX = SD_REC601, 174 MAX = SD_REC601,
138 }; 175 };
139 176
140 // See media/base/video_decoder_config.h for descriptions. 177 // See media/base/video_decoder_config.h for descriptions.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 }; 375 };
339 376
340 struct PipelineStatistics { 377 struct PipelineStatistics {
341 uint64 audio_bytes_decoded; 378 uint64 audio_bytes_decoded;
342 uint64 video_bytes_decoded; 379 uint64 video_bytes_decoded;
343 uint32 video_frames_decoded; 380 uint32 video_frames_decoded;
344 uint32 video_frames_dropped; 381 uint32 video_frames_dropped;
345 int64 audio_memory_usage; 382 int64 audio_memory_usage;
346 int64 video_memory_usage; 383 int64 video_memory_usage;
347 }; 384 };
385
386 struct VideoCaptureFormat {
387 gfx.mojom.Size frame_size;
388 float frame_rate;
389 VideoFormat pixel_format;
390 VideoPixelStorage pixel_storage;
391 };
392
393 struct VideoCaptureParams {
394 VideoCaptureFormat requested_format;
395 ResolutionChangePolicy resolution_change_policy;
396 PowerLineFrequency power_line_frequency;
397 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698