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 // This defines a mojo transport format for media::AudioParameters without | |
193 // the |mic_positions_| vector. This will be used by | |
194 // media.interfaces.AudioOutput. CreateStream which doesn't need the vector. | |
Henrik Grunell
2016/04/28 11:44:56
"media::interfaces::AudioOutput::CreateStream()" p
rchtara
2016/05/02 15:54:10
Done.
| |
195 // See media/base/media/base/audio_parameters.h for description. | |
196 struct AudioOutputStreamParameters { | |
197 AudioFormat format; // Format of the stream. | |
Henrik Grunell
2016/04/28 11:44:56
Alignment of the comments.
Henrik Grunell
2016/04/28 11:44:56
Actually, I think it's better to remove the commen
rchtara
2016/05/02 15:54:10
Done.
rchtara
2016/05/02 15:54:10
Done.
| |
198 ChannelLayout channel_layout; // Order of surround sound channels. | |
199 int32 channels; // Number of channels. Value set based on | |
200 // |channel_layout|. | |
201 int32 sample_rate; // Sampling frequency/rate. | |
202 int32 bits_per_sample; // Number of bits per sample. | |
203 int32 frames_per_buffer; // Number of frames in a buffer. | |
204 int32 effects; // Bitmask using PlatformEffectsMask. | |
205 }; | |
206 | |
183 // This defines a mojo transport format for media::EncryptionScheme::Pattern | 207 // This defines a mojo transport format for media::EncryptionScheme::Pattern |
184 // See media/base/encryption_scheme.h for description. | 208 // See media/base/encryption_scheme.h for description. |
185 struct Pattern { | 209 struct Pattern { |
186 uint32 encrypt_blocks; | 210 uint32 encrypt_blocks; |
187 uint32 skip_blocks; | 211 uint32 skip_blocks; |
188 }; | 212 }; |
189 | 213 |
190 // This defines a mojo transport format for media::EncryptionScheme. | 214 // This defines a mojo transport format for media::EncryptionScheme. |
191 // See media/base/encryption_scheme.h for description. | 215 // See media/base/encryption_scheme.h for description. |
192 struct EncryptionScheme { | 216 struct EncryptionScheme { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
317 | 341 |
318 // Stride and offsets for each plane. Offsets are relative to the start | 342 // Stride and offsets for each plane. Offsets are relative to the start |
319 // of |frame_data|. | 343 // of |frame_data|. |
320 int32 y_stride; | 344 int32 y_stride; |
321 int32 u_stride; | 345 int32 u_stride; |
322 int32 v_stride; | 346 int32 v_stride; |
323 uint64 y_offset; | 347 uint64 y_offset; |
324 uint64 u_offset; | 348 uint64 u_offset; |
325 uint64 v_offset; | 349 uint64 v_offset; |
326 }; | 350 }; |
OLD | NEW |