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.interfaces; | 5 module media.interfaces; |
6 | 6 |
7 import "ui/mojo/geometry/geometry.mojom"; | 7 import "ui/mojo/geometry/geometry.mojom"; |
8 | 8 |
9 // See media/base/buffering_state.h for descriptions. | 9 // See media/base/buffering_state.h for descriptions. |
10 // Kept in sync with media::BufferingState via static_asserts. | 10 // Kept in sync with media::BufferingState via static_asserts. |
(...skipping 20 matching lines...) Expand all Loading... |
31 Opus = 12, | 31 Opus = 12, |
32 EAC3 = 13, | 32 EAC3 = 13, |
33 PCM_ALAW = 14, | 33 PCM_ALAW = 14, |
34 ALAC = 15, | 34 ALAC = 15, |
35 AC3 = 16, | 35 AC3 = 16, |
36 MAX = AC3, | 36 MAX = AC3, |
37 }; | 37 }; |
38 | 38 |
39 // See media/base/channel_layout.h for descriptions. | 39 // See media/base/channel_layout.h for descriptions. |
40 // Kept in sync with media::ChannelLayout via static_asserts. | 40 // Kept in sync with media::ChannelLayout via static_asserts. |
41 // TODO(tim): The bindings generators will always prepend the enum name, should | |
42 // mojom therefore allow enum values starting with numbers? | |
43 enum ChannelLayout { | 41 enum ChannelLayout { |
44 k_NONE = 0, | 42 k_NONE = 0, |
45 k_UNSUPPORTED = 1, | 43 k_UNSUPPORTED = 1, |
46 k_MONO = 2, | 44 k_MONO = 2, |
47 k_STEREO = 3, | 45 k_STEREO = 3, |
48 k_2_1 = 4, | 46 k_2_1 = 4, |
49 k_SURROUND = 5, | 47 k_SURROUND = 5, |
50 k_4_0 = 6, | 48 k_4_0 = 6, |
51 k_2_2 = 7, | 49 k_2_2 = 7, |
52 k_QUAD = 8, | 50 k_QUAD = 8, |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 bool end_of_stream; | 279 bool end_of_stream; |
282 | 280 |
283 // Timestamp in microseconds of the associated frame. | 281 // Timestamp in microseconds of the associated frame. |
284 int64 timestamp_usec; | 282 int64 timestamp_usec; |
285 | 283 |
286 // Frame data for each plane. Will be null for EOS buffers. | 284 // Frame data for each plane. Will be null for EOS buffers. |
287 array<uint8>? y_data; | 285 array<uint8>? y_data; |
288 array<uint8>? u_data; | 286 array<uint8>? u_data; |
289 array<uint8>? v_data; | 287 array<uint8>? v_data; |
290 }; | 288 }; |
OLD | NEW |