| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Kept in sync with media::VideoCodec via static_asserts. | 123 // Kept in sync with media::VideoCodec via static_asserts. |
| 124 enum VideoCodec { | 124 enum VideoCodec { |
| 125 UNKNOWN = 0, | 125 UNKNOWN = 0, |
| 126 H264, | 126 H264, |
| 127 VC1, | 127 VC1, |
| 128 MPEG2, | 128 MPEG2, |
| 129 MPEG4, | 129 MPEG4, |
| 130 Theora, | 130 Theora, |
| 131 VP8, | 131 VP8, |
| 132 VP9, | 132 VP9, |
| 133 Max = VP9, | 133 HEVC, |
| 134 Max = HEVC, |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 // See media/base/video_decoder_config.h for descriptions. | 137 // See media/base/video_decoder_config.h for descriptions. |
| 137 // Kept in sync with media::VideoCodecProfile via static_asserts. | 138 // Kept in sync with media::VideoCodecProfile via static_asserts. |
| 138 enum VideoCodecProfile { | 139 enum VideoCodecProfile { |
| 139 VIDEO_CODEC_PROFILE_UNKNOWN = -1, | 140 VIDEO_CODEC_PROFILE_UNKNOWN = -1, |
| 140 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, | 141 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, |
| 141 H264PROFILE_MIN = 0, | 142 H264PROFILE_MIN = 0, |
| 142 H264PROFILE_BASELINE = H264PROFILE_MIN, | 143 H264PROFILE_BASELINE = H264PROFILE_MIN, |
| 143 H264PROFILE_MAIN = 1, | 144 H264PROFILE_MAIN = 1, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 224 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
| 224 DecryptConfig? decrypt_config; | 225 DecryptConfig? decrypt_config; |
| 225 | 226 |
| 226 // These fields indicate the amount of data to discard after decoding. | 227 // These fields indicate the amount of data to discard after decoding. |
| 227 int64 front_discard_usec; | 228 int64 front_discard_usec; |
| 228 int64 back_discard_usec; | 229 int64 back_discard_usec; |
| 229 | 230 |
| 230 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. | 231 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. |
| 231 int64 splice_timestamp_usec; | 232 int64 splice_timestamp_usec; |
| 232 }; | 233 }; |
| OLD | NEW |