Chromium Code Reviews| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 141 Max = HEVC, | 141 Max = HEVC, |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 // See media/base/video_decoder_config.h for descriptions. | 144 // See media/base/video_decoder_config.h for descriptions. |
| 145 // Kept in sync with media::VideoCodecProfile via static_asserts. | 145 // Kept in sync with media::VideoCodecProfile via static_asserts. |
| 146 enum VideoCodecProfile { | 146 enum VideoCodecProfile { |
| 147 VIDEO_CODEC_PROFILE_UNKNOWN = -1, | 147 VIDEO_CODEC_PROFILE_UNKNOWN = -1, |
| 148 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, | 148 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, |
| 149 H264PROFILE_MIN = 0, | 149 H264PROFILE_MIN = 0, |
| 150 H264PROFILE_BASELINE = H264PROFILE_MIN, | 150 H264PROFILE_BASELINE = H264PROFILE_MIN, |
| 151 H264PROFILE_MAIN = 1, | 151 H264PROFILE_MAIN, |
|
ddorwin
2016/02/26 18:54:17
ditto
| |
| 152 H264PROFILE_EXTENDED = 2, | 152 H264PROFILE_EXTENDED, |
| 153 H264PROFILE_HIGH = 3, | 153 H264PROFILE_HIGH, |
| 154 H264PROFILE_HIGH10PROFILE = 4, | 154 H264PROFILE_HIGH10PROFILE, |
| 155 H264PROFILE_HIGH422PROFILE = 5, | 155 H264PROFILE_HIGH422PROFILE, |
| 156 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, | 156 H264PROFILE_HIGH444PREDICTIVEPROFILE, |
| 157 H264PROFILE_SCALABLEBASELINE = 7, | 157 H264PROFILE_SCALABLEBASELINE, |
| 158 H264PROFILE_SCALABLEHIGH = 8, | 158 H264PROFILE_SCALABLEHIGH, |
| 159 H264PROFILE_STEREOHIGH = 9, | 159 H264PROFILE_STEREOHIGH, |
| 160 H264PROFILE_MULTIVIEWHIGH = 10, | 160 H264PROFILE_MULTIVIEWHIGH, |
| 161 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, | 161 H264PROFILE_MAX = H264PROFILE_MULTIVIEWHIGH, |
| 162 VP8PROFILE_MIN = 11, | 162 VP8PROFILE_MIN, |
| 163 VP8PROFILE_ANY = VP8PROFILE_MIN, | 163 VP8PROFILE_ANY = VP8PROFILE_MIN, |
| 164 VP8PROFILE_MAX = VP8PROFILE_ANY, | 164 VP8PROFILE_MAX = VP8PROFILE_ANY, |
| 165 VP9PROFILE_MIN = 12, | 165 VP9PROFILE_MIN, |
| 166 VP9PROFILE_ANY = VP9PROFILE_MIN, | 166 VP9PROFILE_ANY = VP9PROFILE_MIN, |
| 167 VP9PROFILE_MAX = VP9PROFILE_ANY, | 167 VP9PROFILE_MAX = VP9PROFILE_ANY, |
| 168 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_MAX, | 168 HEVCPROFILE_MIN, |
| 169 HEVCPROFILE_MAIN = HEVCPROFILE_MIN, | |
| 170 HEVCPROFILE_MAIN10, | |
| 171 HEVCPROFILE_MAIN_STILL_PICTURE, | |
| 172 HEVCPROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE, | |
| 173 VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAX, | |
| 169 }; | 174 }; |
| 170 | 175 |
| 171 // This defines a mojo transport format for media::AudioDecoderConfig. | 176 // This defines a mojo transport format for media::AudioDecoderConfig. |
| 172 // See media/base/audio_decoder_config.h for descriptions. | 177 // See media/base/audio_decoder_config.h for descriptions. |
| 173 struct AudioDecoderConfig { | 178 struct AudioDecoderConfig { |
| 174 AudioCodec codec; | 179 AudioCodec codec; |
| 175 SampleFormat sample_format; | 180 SampleFormat sample_format; |
| 176 ChannelLayout channel_layout; | 181 ChannelLayout channel_layout; |
| 177 int32 samples_per_second; | 182 int32 samples_per_second; |
| 178 array<uint8>? extra_data; | 183 array<uint8>? extra_data; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 285 bool end_of_stream; | 290 bool end_of_stream; |
| 286 | 291 |
| 287 // Timestamp in microseconds of the associated frame. | 292 // Timestamp in microseconds of the associated frame. |
| 288 int64 timestamp_usec; | 293 int64 timestamp_usec; |
| 289 | 294 |
| 290 // Frame data for each plane. Will be null for EOS buffers. | 295 // Frame data for each plane. Will be null for EOS buffers. |
| 291 array<uint8>? y_data; | 296 array<uint8>? y_data; |
| 292 array<uint8>? u_data; | 297 array<uint8>? u_data; |
| 293 array<uint8>? v_data; | 298 array<uint8>? v_data; |
| 294 }; | 299 }; |
| OLD | NEW |