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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Kept in sync with media::SampleFormat via static_asserts. | 79 // Kept in sync with media::SampleFormat via static_asserts. |
80 enum SampleFormat { | 80 enum SampleFormat { |
81 UNKNOWN = 0, | 81 UNKNOWN = 0, |
82 U8, | 82 U8, |
83 S16, | 83 S16, |
84 S32, | 84 S32, |
85 F32, | 85 F32, |
86 PlanarS16, | 86 PlanarS16, |
87 PlanarF32, | 87 PlanarF32, |
88 PlanarS32, | 88 PlanarS32, |
89 Max = PlanarS32, | 89 S24, |
| 90 Max = S24, |
90 }; | 91 }; |
91 | 92 |
92 // See media/base/video_types.h for descriptions. | 93 // See media/base/video_types.h for descriptions. |
93 // Kept in sync with media::VideoPixelFormat via static_asserts. | 94 // Kept in sync with media::VideoPixelFormat via static_asserts. |
94 enum VideoFormat { | 95 enum VideoFormat { |
95 UNKNOWN = 0, | 96 UNKNOWN = 0, |
96 I420, | 97 I420, |
97 YV12, | 98 YV12, |
98 YV16, | 99 YV16, |
99 YV12A, | 100 YV12A, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 225 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
225 DecryptConfig? decrypt_config; | 226 DecryptConfig? decrypt_config; |
226 | 227 |
227 // These fields indicate the amount of data to discard after decoding. | 228 // These fields indicate the amount of data to discard after decoding. |
228 int64 front_discard_usec; | 229 int64 front_discard_usec; |
229 int64 back_discard_usec; | 230 int64 back_discard_usec; |
230 | 231 |
231 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. | 232 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. |
232 int64 splice_timestamp_usec; | 233 int64 splice_timestamp_usec; |
233 }; | 234 }; |
OLD | NEW |