| 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.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. |
| 11 [Native] | 11 [Native] |
| 12 enum BufferingState; | 12 enum BufferingState; |
| 13 | 13 |
| 14 // See media/base/decode_status.h for descriptions. | 14 // See media/base/decode_status.h for descriptions. |
| 15 [Native] | 15 [Native] |
| 16 enum DecodeStatus; | 16 enum DecodeStatus; |
| 17 | 17 |
| 18 // See media/base/audio_decoder_config.h for descriptions. | 18 // See media/base/audio_codecs.h for descriptions. |
| 19 // Kept in sync with media::AudioCodec via static_asserts. | 19 [Native] |
| 20 enum AudioCodec { | 20 enum AudioCodec; |
| 21 UNKNOWN = 0, | |
| 22 AAC = 1, | |
| 23 MP3 = 2, | |
| 24 PCM = 3, | |
| 25 Vorbis = 4, | |
| 26 FLAC = 5, | |
| 27 AMR_NB = 6, | |
| 28 AMR_WB = 7, | |
| 29 PCM_MULAW = 8, | |
| 30 GSM_MS = 9, | |
| 31 PCM_S16BE = 10, | |
| 32 PCM_S24BE = 11, | |
| 33 Opus = 12, | |
| 34 EAC3 = 13, | |
| 35 PCM_ALAW = 14, | |
| 36 ALAC = 15, | |
| 37 AC3 = 16, | |
| 38 MAX = AC3, | |
| 39 }; | |
| 40 | 21 |
| 41 // See media/base/channel_layout.h for descriptions. | 22 // See media/base/channel_layout.h for descriptions. |
| 42 // Kept in sync with media::ChannelLayout via static_asserts. | 23 [Native] |
| 43 enum ChannelLayout { | 24 enum ChannelLayout; |
| 44 k_NONE = 0, | |
| 45 k_UNSUPPORTED = 1, | |
| 46 k_MONO = 2, | |
| 47 k_STEREO = 3, | |
| 48 k_2_1 = 4, | |
| 49 k_SURROUND = 5, | |
| 50 k_4_0 = 6, | |
| 51 k_2_2 = 7, | |
| 52 k_QUAD = 8, | |
| 53 k_5_0 = 9, | |
| 54 k_5_1 = 10, | |
| 55 k_5_0_BACK = 11, | |
| 56 k_5_1_BACK = 12, | |
| 57 k_7_0 = 13, | |
| 58 k_7_1 = 14, | |
| 59 k_7_1_WIDE = 15, | |
| 60 k_STEREO_DOWNMIX = 16, | |
| 61 k_2POINT1 = 17, | |
| 62 k_3_1 = 18, | |
| 63 k_4_1 = 19, | |
| 64 k_6_0 = 20, | |
| 65 k_6_0_FRONT = 21, | |
| 66 k_HEXAGONAL = 22, | |
| 67 k_6_1 = 23, | |
| 68 k_6_1_BACK = 24, | |
| 69 k_6_1_FRONT = 25, | |
| 70 k_7_0_FRONT = 26, | |
| 71 k_7_1_WIDE_BACK = 27, | |
| 72 k_OCTAGONAL = 28, | |
| 73 k_DISCRETE = 29, | |
| 74 k_STEREO_AND_KEYBOARD_MIC = 30, | |
| 75 k_4_1_QUAD_SIDE = 31, | |
| 76 k_MAX = k_4_1_QUAD_SIDE, | |
| 77 }; | |
| 78 | 25 |
| 79 // See media/base/sample_format.h for descriptions. | 26 // See media/base/sample_format.h for descriptions. |
| 80 // Kept in sync with media::SampleFormat via static_asserts. | 27 [Native] |
| 81 enum SampleFormat { | 28 enum SampleFormat; |
| 82 UNKNOWN = 0, | |
| 83 U8, | |
| 84 S16, | |
| 85 S32, | |
| 86 F32, | |
| 87 PlanarS16, | |
| 88 PlanarF32, | |
| 89 PlanarS32, | |
| 90 S24, | |
| 91 Max = S24, | |
| 92 }; | |
| 93 | 29 |
| 94 // See media/base/video_types.h for descriptions. | 30 // See media/base/video_types.h for descriptions. |
| 95 // Kept in sync with media::VideoPixelFormat via static_asserts. | 31 // Kept in sync with media::VideoPixelFormat via static_asserts. |
| 96 enum VideoFormat { | 32 enum VideoFormat { |
| 97 UNKNOWN = 0, | 33 UNKNOWN = 0, |
| 98 I420, | 34 I420, |
| 99 YV12, | 35 YV12, |
| 100 YV16, | 36 YV16, |
| 101 YV12A, | 37 YV12A, |
| 102 YV24, | 38 YV24, |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 }; | 269 }; |
| 334 | 270 |
| 335 struct PipelineStatistics { | 271 struct PipelineStatistics { |
| 336 uint64 audio_bytes_decoded; | 272 uint64 audio_bytes_decoded; |
| 337 uint64 video_bytes_decoded; | 273 uint64 video_bytes_decoded; |
| 338 uint32 video_frames_decoded; | 274 uint32 video_frames_decoded; |
| 339 uint32 video_frames_dropped; | 275 uint32 video_frames_dropped; |
| 340 int64 audio_memory_usage; | 276 int64 audio_memory_usage; |
| 341 int64 video_memory_usage; | 277 int64 video_memory_usage; |
| 342 }; | 278 }; |
| OLD | NEW |