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