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/audio/audio_parameters.h for descriptions. | |
10 // Kept in sync with media::AudioParameters::Format via static_asserts. | |
11 enum AudioFormat { | |
12 AUDIO_PCM_LINEAR = 0, | |
13 AUDIO_PCM_LOW_LATENCY, | |
14 AUDIO_FAKE, | |
15 AUDIO_FORMAT_LAST = AUDIO_FAKE, | |
16 }; | |
17 | |
9 // See media/base/buffering_state.h for descriptions. | 18 // See media/base/buffering_state.h for descriptions. |
10 // Kept in sync with media::BufferingState via static_asserts. | 19 // Kept in sync with media::BufferingState via static_asserts. |
11 enum BufferingState { | 20 enum BufferingState { |
12 HAVE_NOTHING, | 21 HAVE_NOTHING, |
13 HAVE_ENOUGH, | 22 HAVE_ENOUGH, |
14 }; | 23 }; |
15 | 24 |
16 // See media/base/audio_decoder_config.h for descriptions. | 25 // See media/base/audio_decoder_config.h for descriptions. |
17 // Kept in sync with media::AudioCodec via static_asserts. | 26 // Kept in sync with media::AudioCodec via static_asserts. |
18 enum AudioCodec { | 27 enum AudioCodec { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 | 182 |
174 // See media/base/encryption_scheme.h. | 183 // See media/base/encryption_scheme.h. |
175 // Kept in sync with media::CipherMode via static_asserts. | 184 // Kept in sync with media::CipherMode via static_asserts. |
176 enum CipherMode { | 185 enum CipherMode { |
177 UNENCRYPTED = 0, | 186 UNENCRYPTED = 0, |
178 AES_CTR, | 187 AES_CTR, |
179 AES_CBC, | 188 AES_CBC, |
180 MAX = AES_CBC | 189 MAX = AES_CBC |
181 }; | 190 }; |
182 | 191 |
192 struct AudioOutputStreamParameters { | |
xhwang
2016/04/26 22:54:42
Is this the equivalence of media::AudioParameters?
rchtara
2016/04/29 12:54:47
This defines a mojo transport format for media::Au
| |
193 AudioFormat format_; // Format of the stream. | |
xhwang
2016/04/26 22:54:42
We don't use trailing "_" for mojo struct members.
rchtara
2016/04/29 12:54:47
Done.
| |
194 ChannelLayout channel_layout_; // Order of surround sound channels. | |
195 int32 channels_; // Number of channels. Value set based on | |
196 // |channel_layout|. | |
197 int32 sample_rate_; // Sampling frequency/rate. | |
198 int32 bits_per_sample_; // Number of bits per sample. | |
199 int32 frames_per_buffer_; // Number of frames in a buffer. | |
200 int32 effects_; // Bitmask using PlatformEffectsMask. | |
201 | |
xhwang
2016/04/26 22:54:42
remote empty line.
rchtara
2016/04/29 12:54:47
Done.
| |
202 }; | |
203 | |
183 // This defines a mojo transport format for media::EncryptionScheme::Pattern | 204 // This defines a mojo transport format for media::EncryptionScheme::Pattern |
184 // See media/base/encryption_scheme.h for description. | 205 // See media/base/encryption_scheme.h for description. |
185 struct Pattern { | 206 struct Pattern { |
186 uint32 encrypt_blocks; | 207 uint32 encrypt_blocks; |
187 uint32 skip_blocks; | 208 uint32 skip_blocks; |
188 }; | 209 }; |
189 | 210 |
190 // This defines a mojo transport format for media::EncryptionScheme. | 211 // This defines a mojo transport format for media::EncryptionScheme. |
191 // See media/base/encryption_scheme.h for description. | 212 // See media/base/encryption_scheme.h for description. |
192 struct EncryptionScheme { | 213 struct EncryptionScheme { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
317 | 338 |
318 // Stride and offsets for each plane. Offsets are relative to the start | 339 // Stride and offsets for each plane. Offsets are relative to the start |
319 // of |frame_data|. | 340 // of |frame_data|. |
320 int32 y_stride; | 341 int32 y_stride; |
321 int32 u_stride; | 342 int32 u_stride; |
322 int32 v_stride; | 343 int32 v_stride; |
323 uint64 y_offset; | 344 uint64 y_offset; |
324 uint64 u_offset; | 345 uint64 u_offset; |
325 uint64 v_offset; | 346 uint64 v_offset; |
326 }; | 347 }; |
OLD | NEW |