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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 187 |
179 // See media/base/encryption_scheme.h. | 188 // See media/base/encryption_scheme.h. |
180 // Kept in sync with media::CipherMode via static_asserts. | 189 // Kept in sync with media::CipherMode via static_asserts. |
181 enum CipherMode { | 190 enum CipherMode { |
182 UNENCRYPTED = 0, | 191 UNENCRYPTED = 0, |
183 AES_CTR, | 192 AES_CTR, |
184 AES_CBC, | 193 AES_CBC, |
185 MAX = AES_CBC | 194 MAX = AES_CBC |
186 }; | 195 }; |
187 | 196 |
| 197 // This defines a mojo transport format for media::AudioParameters. |
| 198 // See media/base/audio_parameters.h for description. |
| 199 struct AudioParameters { |
| 200 AudioFormat format; |
| 201 ChannelLayout channel_layout; |
| 202 int32 channels; |
| 203 int32 sample_rate; |
| 204 int32 bits_per_sample; |
| 205 int32 frames_per_buffer; |
| 206 int32 effects; |
| 207 // TODO(rchtara): add |mic_positions_| if needed. |
| 208 }; |
| 209 |
188 // This defines a mojo transport format for media::EncryptionScheme::Pattern | 210 // This defines a mojo transport format for media::EncryptionScheme::Pattern |
189 // See media/base/encryption_scheme.h for description. | 211 // See media/base/encryption_scheme.h for description. |
190 struct Pattern { | 212 struct Pattern { |
191 uint32 encrypt_blocks; | 213 uint32 encrypt_blocks; |
192 uint32 skip_blocks; | 214 uint32 skip_blocks; |
193 }; | 215 }; |
194 | 216 |
195 // This defines a mojo transport format for media::EncryptionScheme. | 217 // This defines a mojo transport format for media::EncryptionScheme. |
196 // See media/base/encryption_scheme.h for description. | 218 // See media/base/encryption_scheme.h for description. |
197 struct EncryptionScheme { | 219 struct EncryptionScheme { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 344 |
323 // Stride and offsets for each plane. Offsets are relative to the start | 345 // Stride and offsets for each plane. Offsets are relative to the start |
324 // of |frame_data|. | 346 // of |frame_data|. |
325 int32 y_stride; | 347 int32 y_stride; |
326 int32 u_stride; | 348 int32 u_stride; |
327 int32 v_stride; | 349 int32 v_stride; |
328 uint64 y_offset; | 350 uint64 y_offset; |
329 uint64 u_offset; | 351 uint64 u_offset; |
330 uint64 v_offset; | 352 uint64 v_offset; |
331 }; | 353 }; |
OLD | NEW |