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/03/02 01:36:38
Since this is a MOJO API definition, I wonder whet
servolk
2016/03/02 01:47:45
Is there a requirement that constants never change
xhwang
2016/03/02 04:17:55
At this point mojo is pretty much just a transport
| |
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 // 4 profile values are reserved for VP9 profiles. |
169 HEVCPROFILE_MIN = 16, | |
ddorwin
2016/03/02 01:36:38
not done. There are no other literals here.
servolk
2016/03/02 01:47:45
I think this is the best we can do. I've tried to
ddorwin
2016/03/03 22:00:21
Longshot - does it work if you use parentheses?
T
| |
170 HEVCPROFILE_MAIN = HEVCPROFILE_MIN, | |
171 HEVCPROFILE_MAIN10, | |
172 HEVCPROFILE_MAIN_STILL_PICTURE, | |
173 HEVCPROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE, | |
174 VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAX, | |
169 }; | 175 }; |
170 | 176 |
171 // This defines a mojo transport format for media::AudioDecoderConfig. | 177 // This defines a mojo transport format for media::AudioDecoderConfig. |
172 // See media/base/audio_decoder_config.h for descriptions. | 178 // See media/base/audio_decoder_config.h for descriptions. |
173 struct AudioDecoderConfig { | 179 struct AudioDecoderConfig { |
174 AudioCodec codec; | 180 AudioCodec codec; |
175 SampleFormat sample_format; | 181 SampleFormat sample_format; |
176 ChannelLayout channel_layout; | 182 ChannelLayout channel_layout; |
177 int32 samples_per_second; | 183 int32 samples_per_second; |
178 array<uint8>? extra_data; | 184 array<uint8>? extra_data; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
285 bool end_of_stream; | 291 bool end_of_stream; |
286 | 292 |
287 // Timestamp in microseconds of the associated frame. | 293 // Timestamp in microseconds of the associated frame. |
288 int64 timestamp_usec; | 294 int64 timestamp_usec; |
289 | 295 |
290 // Frame data for each plane. Will be null for EOS buffers. | 296 // Frame data for each plane. Will be null for EOS buffers. |
291 array<uint8>? y_data; | 297 array<uint8>? y_data; |
292 array<uint8>? u_data; | 298 array<uint8>? u_data; |
293 array<uint8>? v_data; | 299 array<uint8>? v_data; |
294 }; | 300 }; |
OLD | NEW |