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 11 matching lines...) Expand all Loading... |
22 PCM = 3, | 22 PCM = 3, |
23 Vorbis = 4, | 23 Vorbis = 4, |
24 FLAC = 5, | 24 FLAC = 5, |
25 AMR_NB = 6, | 25 AMR_NB = 6, |
26 AMR_WB = 7, | 26 AMR_WB = 7, |
27 PCM_MULAW = 8, | 27 PCM_MULAW = 8, |
28 GSM_MS = 9, | 28 GSM_MS = 9, |
29 PCM_S16BE = 10, | 29 PCM_S16BE = 10, |
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 AC3 = 16, |
| 36 MAX = AC3, |
36 }; | 37 }; |
37 | 38 |
38 // See media/base/channel_layout.h for descriptions. | 39 // See media/base/channel_layout.h for descriptions. |
39 // Kept in sync with media::ChannelLayout via static_asserts. | 40 // Kept in sync with media::ChannelLayout via static_asserts. |
40 // TODO(tim): The bindings generators will always prepend the enum name, should | 41 // TODO(tim): The bindings generators will always prepend the enum name, should |
41 // mojom therefore allow enum values starting with numbers? | 42 // mojom therefore allow enum values starting with numbers? |
42 enum ChannelLayout { | 43 enum ChannelLayout { |
43 k_NONE = 0, | 44 k_NONE = 0, |
44 k_UNSUPPORTED = 1, | 45 k_UNSUPPORTED = 1, |
45 k_MONO = 2, | 46 k_MONO = 2, |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 bool end_of_stream; | 281 bool end_of_stream; |
281 | 282 |
282 // Timestamp in microseconds of the associated frame. | 283 // Timestamp in microseconds of the associated frame. |
283 int64 timestamp_usec; | 284 int64 timestamp_usec; |
284 | 285 |
285 // Frame data for each plane. Will be null for EOS buffers. | 286 // Frame data for each plane. Will be null for EOS buffers. |
286 array<uint8>? y_data; | 287 array<uint8>? y_data; |
287 array<uint8>? u_data; | 288 array<uint8>? u_data; |
288 array<uint8>? v_data; | 289 array<uint8>? v_data; |
289 }; | 290 }; |
OLD | NEW |