| 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 "media/mojo/interfaces/subsample_entry.mojom"; |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 import "mojo/common/common_custom_types.mojom"; | 9 import "mojo/common/common_custom_types.mojom"; |
| 9 | 10 |
| 10 // See media/base/buffering_state.h for descriptions. | 11 // See media/base/buffering_state.h for descriptions. |
| 11 // Kept in sync with media::BufferingState via static_asserts. | 12 // Kept in sync with media::BufferingState via static_asserts. |
| 12 enum BufferingState { | 13 enum BufferingState { |
| 13 HAVE_NOTHING, | 14 HAVE_NOTHING, |
| 14 HAVE_ENOUGH, | 15 HAVE_ENOUGH, |
| 15 }; | 16 }; |
| 16 | 17 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 VideoCodecProfile profile; | 234 VideoCodecProfile profile; |
| 234 VideoFormat format; | 235 VideoFormat format; |
| 235 ColorSpace color_space; | 236 ColorSpace color_space; |
| 236 gfx.mojom.Size coded_size; | 237 gfx.mojom.Size coded_size; |
| 237 gfx.mojom.Rect visible_rect; | 238 gfx.mojom.Rect visible_rect; |
| 238 gfx.mojom.Size natural_size; | 239 gfx.mojom.Size natural_size; |
| 239 array<uint8>? extra_data; | 240 array<uint8>? extra_data; |
| 240 EncryptionScheme encryption_scheme; | 241 EncryptionScheme encryption_scheme; |
| 241 }; | 242 }; |
| 242 | 243 |
| 243 // This defines a mojo transport format for media::SubsampleEntry. | |
| 244 // See media/base/decrypt_config.h for descriptions. | |
| 245 struct SubsampleEntry { | |
| 246 uint32 clear_bytes; | |
| 247 uint32 cypher_bytes; | |
| 248 }; | |
| 249 | |
| 250 // This defines a mojo transport format for media::DecryptConfig. | 244 // This defines a mojo transport format for media::DecryptConfig. |
| 251 // See media/base/decrypt_config.h for descriptions. | 245 // See media/base/decrypt_config.h for descriptions. |
| 252 struct DecryptConfig { | 246 struct DecryptConfig { |
| 253 string key_id; | 247 string key_id; |
| 254 string iv; | 248 string iv; |
| 255 array<SubsampleEntry> subsamples; | 249 array<SubsampleEntry> subsamples; |
| 256 }; | 250 }; |
| 257 | 251 |
| 258 // This defines a mojo transport format for media::DecoderBuffer. | 252 // This defines a mojo transport format for media::DecoderBuffer. |
| 259 struct DecoderBuffer { | 253 struct DecoderBuffer { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 }; | 338 }; |
| 345 | 339 |
| 346 struct PipelineStatistics { | 340 struct PipelineStatistics { |
| 347 uint64 audio_bytes_decoded; | 341 uint64 audio_bytes_decoded; |
| 348 uint64 video_bytes_decoded; | 342 uint64 video_bytes_decoded; |
| 349 uint32 video_frames_decoded; | 343 uint32 video_frames_decoded; |
| 350 uint32 video_frames_dropped; | 344 uint32 video_frames_dropped; |
| 351 int64 audio_memory_usage; | 345 int64 audio_memory_usage; |
| 352 int64 video_memory_usage; | 346 int64 video_memory_usage; |
| 353 }; | 347 }; |
| OLD | NEW |