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. |
11 enum BufferingState { | 11 enum BufferingState { |
12 HAVE_NOTHING, | 12 HAVE_NOTHING, |
13 HAVE_ENOUGH, | 13 HAVE_ENOUGH, |
14 }; | 14 }; |
15 | 15 |
| 16 // See media/base/decode_status.h for descriptions. |
| 17 // Kept in sync with media::DecodeStatus via static_asserts. |
| 18 enum DecodeStatus { |
| 19 OK, |
| 20 ABORTED, |
| 21 DECODE_ERROR, |
| 22 }; |
| 23 |
16 // See media/base/audio_decoder_config.h for descriptions. | 24 // See media/base/audio_decoder_config.h for descriptions. |
17 // Kept in sync with media::AudioCodec via static_asserts. | 25 // Kept in sync with media::AudioCodec via static_asserts. |
18 enum AudioCodec { | 26 enum AudioCodec { |
19 UNKNOWN = 0, | 27 UNKNOWN = 0, |
20 AAC = 1, | 28 AAC = 1, |
21 MP3 = 2, | 29 MP3 = 2, |
22 PCM = 3, | 30 PCM = 3, |
23 Vorbis = 4, | 31 Vorbis = 4, |
24 FLAC = 5, | 32 FLAC = 5, |
25 AMR_NB = 6, | 33 AMR_NB = 6, |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 | 325 |
318 // Stride and offsets for each plane. Offsets are relative to the start | 326 // Stride and offsets for each plane. Offsets are relative to the start |
319 // of |frame_data|. | 327 // of |frame_data|. |
320 int32 y_stride; | 328 int32 y_stride; |
321 int32 u_stride; | 329 int32 u_stride; |
322 int32 v_stride; | 330 int32 v_stride; |
323 uint64 y_offset; | 331 uint64 y_offset; |
324 uint64 u_offset; | 332 uint64 u_offset; |
325 uint64 v_offset; | 333 uint64 v_offset; |
326 }; | 334 }; |
OLD | NEW |