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