| 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 mojo; | 5 module mojo; |
| 6 | 6 |
| 7 import "mojo/services/geometry/public/interfaces/geometry.mojom"; | 7 import "mojo/services/geometry/public/interfaces/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 COMPILE_ASSERTs. | 10 // Kept in sync with media::BufferingState via COMPILE_ASSERTs. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // This defines a mojo transport format for media::AudioDecoderConfig. | 147 // This defines a mojo transport format for media::AudioDecoderConfig. |
| 148 // See media/base/audio_decoder_config.h for descriptions. | 148 // See media/base/audio_decoder_config.h for descriptions. |
| 149 struct AudioDecoderConfig { | 149 struct AudioDecoderConfig { |
| 150 AudioCodec codec; | 150 AudioCodec codec; |
| 151 SampleFormat sample_format; | 151 SampleFormat sample_format; |
| 152 ChannelLayout channel_layout; | 152 ChannelLayout channel_layout; |
| 153 int32 samples_per_second; | 153 int32 samples_per_second; |
| 154 array<uint8>? extra_data; | 154 array<uint8>? extra_data; |
| 155 int64 seek_preroll_usec; | 155 int64 seek_preroll_usec; |
| 156 int32 codec_delay; | 156 int32 codec_delay; |
| 157 bool is_encrypted; |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 // This defines a mojo transport format for media::VideoDecoderConfig. | 160 // This defines a mojo transport format for media::VideoDecoderConfig. |
| 160 // See media/base/video_decoder_config.h for descriptions. | 161 // See media/base/video_decoder_config.h for descriptions. |
| 161 struct VideoDecoderConfig { | 162 struct VideoDecoderConfig { |
| 162 VideoCodec codec; | 163 VideoCodec codec; |
| 163 VideoCodecProfile profile; | 164 VideoCodecProfile profile; |
| 164 VideoFormat format; | 165 VideoFormat format; |
| 165 Size coded_size; | 166 Size coded_size; |
| 166 Rect visible_rect; | 167 Rect visible_rect; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 206 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
| 206 DecryptConfig? decrypt_config; | 207 DecryptConfig? decrypt_config; |
| 207 | 208 |
| 208 // These fields indicate the amount of data to discard after decoding. | 209 // These fields indicate the amount of data to discard after decoding. |
| 209 int64 front_discard_usec; | 210 int64 front_discard_usec; |
| 210 int64 back_discard_usec; | 211 int64 back_discard_usec; |
| 211 | 212 |
| 212 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. | 213 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. |
| 213 int64 splice_timestamp_usec; | 214 int64 splice_timestamp_usec; |
| 214 }; | 215 }; |
| OLD | NEW |