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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 // This defines a mojo transport format for media::DecryptConfig. | 191 // This defines a mojo transport format for media::DecryptConfig. |
192 // See media/base/decrypt_config.h for descriptions. | 192 // See media/base/decrypt_config.h for descriptions. |
193 struct DecryptConfig { | 193 struct DecryptConfig { |
194 string key_id; | 194 string key_id; |
195 string iv; | 195 string iv; |
196 array<SubsampleEntry> subsamples; | 196 array<SubsampleEntry> subsamples; |
197 }; | 197 }; |
198 | 198 |
199 // This defines a mojo transport format for media::DecoderBuffer. | 199 // This defines a mojo transport format for media::DecoderBuffer. |
200 struct MediaDecoderBuffer { | 200 struct DecoderBuffer { |
201 // See media/base/buffers.h for details. | 201 // See media/base/buffers.h for details. |
202 int64 timestamp_usec; | 202 int64 timestamp_usec; |
203 int64 duration_usec; | 203 int64 duration_usec; |
204 | 204 |
205 // The number of bytes present in this buffer. The data is not serialized | 205 // The number of bytes present in this buffer. The data is not serialized |
206 // along with this structure and must be read from a separate DataPipe. | 206 // along with this structure and must be read from a separate DataPipe. |
207 uint32 data_size; | 207 uint32 data_size; |
208 | 208 |
209 // Indicates whether or not this buffer is a random access point. | 209 // Indicates whether or not this buffer is a random access point. |
210 bool is_key_frame; | 210 bool is_key_frame; |
211 | 211 |
212 // This is backed by an std::vector and results in a few copies. | 212 // This is backed by an std::vector and results in a few copies. |
213 // Into the vector, onto and off the MessagePipe, back into a vector. | 213 // Into the vector, onto and off the MessagePipe, back into a vector. |
214 array<uint8>? side_data; | 214 array<uint8>? side_data; |
215 uint32 side_data_size; | 215 uint32 side_data_size; |
216 | 216 |
217 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 217 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
218 DecryptConfig? decrypt_config; | 218 DecryptConfig? decrypt_config; |
219 | 219 |
220 // These fields indicate the amount of data to discard after decoding. | 220 // These fields indicate the amount of data to discard after decoding. |
221 int64 front_discard_usec; | 221 int64 front_discard_usec; |
222 int64 back_discard_usec; | 222 int64 back_discard_usec; |
223 | 223 |
224 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. | 224 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. |
225 int64 splice_timestamp_usec; | 225 int64 splice_timestamp_usec; |
226 }; | 226 }; |
OLD | NEW |