| 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 "gpu/ipc/common/mailbox_holder.mojom"; | 7 import "gpu/ipc/common/mailbox_holder.mojom"; |
| 8 import "mojo/common/time.mojom"; | 8 import "mojo/common/time.mojom"; |
| 9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Empty when |side_data| doesn't exist. | 120 // Empty when |side_data| doesn't exist. |
| 121 array<uint8> side_data; | 121 array<uint8> side_data; |
| 122 | 122 |
| 123 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 123 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
| 124 DecryptConfig? decrypt_config; | 124 DecryptConfig? decrypt_config; |
| 125 | 125 |
| 126 // These fields indicate the amount of data to discard after decoding. | 126 // These fields indicate the amount of data to discard after decoding. |
| 127 mojo.common.mojom.TimeDelta front_discard; | 127 mojo.common.mojom.TimeDelta front_discard; |
| 128 mojo.common.mojom.TimeDelta back_discard; | 128 mojo.common.mojom.TimeDelta back_discard; |
| 129 | |
| 130 // Indicates this buffer is part of a splice around |splice_timestamp|. | |
| 131 mojo.common.mojom.TimeDelta splice_timestamp; | |
| 132 }; | 129 }; |
| 133 | 130 |
| 134 // This defines a mojo transport format for media::AudioBuffer. | 131 // This defines a mojo transport format for media::AudioBuffer. |
| 135 struct AudioBuffer { | 132 struct AudioBuffer { |
| 136 // Format of the audio. | 133 // Format of the audio. |
| 137 SampleFormat sample_format; | 134 SampleFormat sample_format; |
| 138 | 135 |
| 139 // How the channels are laid out. | 136 // How the channels are laid out. |
| 140 ChannelLayout channel_layout; | 137 ChannelLayout channel_layout; |
| 141 | 138 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 }; | 207 }; |
| 211 | 208 |
| 212 struct PipelineStatistics { | 209 struct PipelineStatistics { |
| 213 uint64 audio_bytes_decoded; | 210 uint64 audio_bytes_decoded; |
| 214 uint64 video_bytes_decoded; | 211 uint64 video_bytes_decoded; |
| 215 uint32 video_frames_decoded; | 212 uint32 video_frames_decoded; |
| 216 uint32 video_frames_dropped; | 213 uint32 video_frames_dropped; |
| 217 int64 audio_memory_usage; | 214 int64 audio_memory_usage; |
| 218 int64 video_memory_usage; | 215 int64 video_memory_usage; |
| 219 }; | 216 }; |
| OLD | NEW |