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. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, | 161 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, |
162 VP8PROFILE_MIN = 11, | 162 VP8PROFILE_MIN = 11, |
163 VP8PROFILE_ANY = VP8PROFILE_MIN, | 163 VP8PROFILE_ANY = VP8PROFILE_MIN, |
164 VP8PROFILE_MAX = VP8PROFILE_ANY, | 164 VP8PROFILE_MAX = VP8PROFILE_ANY, |
165 VP9PROFILE_MIN = 12, | 165 VP9PROFILE_MIN = 12, |
166 VP9PROFILE_ANY = VP9PROFILE_MIN, | 166 VP9PROFILE_ANY = VP9PROFILE_MIN, |
167 VP9PROFILE_MAX = VP9PROFILE_ANY, | 167 VP9PROFILE_MAX = VP9PROFILE_ANY, |
168 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, | 168 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, |
169 }; | 169 }; |
170 | 170 |
171 // See media/base/encryption_scheme.h. | |
172 // Kept in sync with media::CipherMode via static_asserts. | |
173 enum CipherMode { | |
174 UNENCRYPTED = 0, | |
175 AES_CTR, | |
176 AES_CBC, | |
177 MAX = AES_CBC | |
178 }; | |
179 | |
180 // This defines a mojo transport format for media::EncryptionScheme::Pattern | |
181 // See media/base/encryption_scheme.h for description. | |
182 struct Pattern { | |
183 uint32 encrypt_blocks; | |
184 uint32 skip_blocks; | |
185 }; | |
186 | |
187 // This defines a mojo transport format for media::EncryptionScheme. | |
188 // See media/base/encryption_scheme.h for description. | |
189 struct EncryptionScheme { | |
190 CipherMode mode; | |
191 Pattern pattern; | |
192 }; | |
193 | |
194 // This defines a mojo transport format for media::AudioDecoderConfig. | 171 // This defines a mojo transport format for media::AudioDecoderConfig. |
195 // See media/base/audio_decoder_config.h for descriptions. | 172 // See media/base/audio_decoder_config.h for descriptions. |
196 struct AudioDecoderConfig { | 173 struct AudioDecoderConfig { |
197 AudioCodec codec; | 174 AudioCodec codec; |
198 SampleFormat sample_format; | 175 SampleFormat sample_format; |
199 ChannelLayout channel_layout; | 176 ChannelLayout channel_layout; |
200 int32 samples_per_second; | 177 int32 samples_per_second; |
201 array<uint8>? extra_data; | 178 array<uint8>? extra_data; |
202 int64 seek_preroll_usec; | 179 int64 seek_preroll_usec; |
203 int32 codec_delay; | 180 int32 codec_delay; |
204 EncryptionScheme encryption_scheme; | 181 bool is_encrypted; |
205 }; | 182 }; |
206 | 183 |
207 // This defines a mojo transport format for media::VideoDecoderConfig. | 184 // This defines a mojo transport format for media::VideoDecoderConfig. |
208 // See media/base/video_decoder_config.h for descriptions. | 185 // See media/base/video_decoder_config.h for descriptions. |
209 struct VideoDecoderConfig { | 186 struct VideoDecoderConfig { |
210 VideoCodec codec; | 187 VideoCodec codec; |
211 VideoCodecProfile profile; | 188 VideoCodecProfile profile; |
212 VideoFormat format; | 189 VideoFormat format; |
213 ColorSpace color_space; | 190 ColorSpace color_space; |
214 mojo.Size coded_size; | 191 mojo.Size coded_size; |
215 mojo.Rect visible_rect; | 192 mojo.Rect visible_rect; |
216 mojo.Size natural_size; | 193 mojo.Size natural_size; |
217 array<uint8>? extra_data; | 194 array<uint8>? extra_data; |
218 EncryptionScheme encryption_scheme; | 195 bool is_encrypted; |
219 }; | 196 }; |
220 | 197 |
221 // This defines a mojo transport format for media::SubsampleEntry. | 198 // This defines a mojo transport format for media::SubsampleEntry. |
222 // See media/base/decrypt_config.h for descriptions. | 199 // See media/base/decrypt_config.h for descriptions. |
223 struct SubsampleEntry { | 200 struct SubsampleEntry { |
224 uint32 clear_bytes; | 201 uint32 clear_bytes; |
225 uint32 cypher_bytes; | 202 uint32 cypher_bytes; |
226 }; | 203 }; |
227 | 204 |
228 // This defines a mojo transport format for media::DecryptConfig. | 205 // This defines a mojo transport format for media::DecryptConfig. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 291 |
315 // Stride and offsets for each plane. Offsets are relative to the start | 292 // Stride and offsets for each plane. Offsets are relative to the start |
316 // of |frame_data|. | 293 // of |frame_data|. |
317 int32 y_stride; | 294 int32 y_stride; |
318 int32 u_stride; | 295 int32 u_stride; |
319 int32 v_stride; | 296 int32 v_stride; |
320 uint64 y_offset; | 297 uint64 y_offset; |
321 uint64 u_offset; | 298 uint64 u_offset; |
322 uint64 v_offset; | 299 uint64 v_offset; |
323 }; | 300 }; |
OLD | NEW |