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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 array<uint8> side_data; | 165 array<uint8> side_data; |
166 | 166 |
167 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 167 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
168 DecryptConfig? decrypt_config; | 168 DecryptConfig? decrypt_config; |
169 | 169 |
170 // These fields indicate the amount of data to discard after decoding. | 170 // These fields indicate the amount of data to discard after decoding. |
171 mojo.common.mojom.TimeDelta front_discard; | 171 mojo.common.mojom.TimeDelta front_discard; |
172 mojo.common.mojom.TimeDelta back_discard; | 172 mojo.common.mojom.TimeDelta back_discard; |
173 }; | 173 }; |
174 | 174 |
| 175 // This defines a mojo transport format for media::BitstreamBuffer. |
| 176 struct BitstreamBuffer { |
| 177 int32 id; |
| 178 handle<shared_buffer> shared_memory_handle; |
| 179 uint32 size; |
| 180 uint64 offset; |
| 181 mojo.common.mojom.TimeDelta timestamp; |
| 182 string key_id; |
| 183 string iv; |
| 184 array<SubsampleEntry> subsamples; |
| 185 }; |
| 186 |
175 // This defines a mojo transport format for media::AudioBuffer. | 187 // This defines a mojo transport format for media::AudioBuffer. |
176 struct AudioBuffer { | 188 struct AudioBuffer { |
177 // Format of the audio. | 189 // Format of the audio. |
178 SampleFormat sample_format; | 190 SampleFormat sample_format; |
179 | 191 |
180 // How the channels are laid out. | 192 // How the channels are laid out. |
181 ChannelLayout channel_layout; | 193 ChannelLayout channel_layout; |
182 | 194 |
183 // Number of channels. | 195 // Number of channels. |
184 int32 channel_count; | 196 int32 channel_count; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 }; | 263 }; |
252 | 264 |
253 struct PipelineStatistics { | 265 struct PipelineStatistics { |
254 uint64 audio_bytes_decoded; | 266 uint64 audio_bytes_decoded; |
255 uint64 video_bytes_decoded; | 267 uint64 video_bytes_decoded; |
256 uint32 video_frames_decoded; | 268 uint32 video_frames_decoded; |
257 uint32 video_frames_dropped; | 269 uint32 video_frames_dropped; |
258 int64 audio_memory_usage; | 270 int64 audio_memory_usage; |
259 int64 video_memory_usage; | 271 int64 video_memory_usage; |
260 }; | 272 }; |
OLD | NEW |