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 "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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Max = PlanarS32, |
90 }; | 90 }; |
91 | 91 |
92 // See media/base/video_types.h for descriptions. | 92 // See media/base/video_types.h for descriptions. |
93 // Kept in sync with media::VideoFrame::Format via static_asserts. | 93 // Kept in sync with media::VideoPixelFormat via static_asserts. |
94 enum VideoFormat { | 94 enum VideoFormat { |
95 UNKNOWN = 0, | 95 UNKNOWN = 0, |
96 YV12, | 96 YV12, |
97 I420, | 97 I420, |
98 YV16, | 98 YV16, |
99 YV12A, | 99 YV12A, |
100 YV24, | 100 YV24, |
101 NV12, | 101 NV12, |
102 ARGB, | 102 ARGB, |
103 XRGB, | 103 XRGB, |
104 FORMAT_MAX = XRGB, | 104 FORMAT_MAX = XRGB, |
105 }; | 105 }; |
106 | 106 |
| 107 // Kept in sync with media::ColorSpace via static_asserts. |
| 108 enum ColorSpace { |
| 109 UNSPECIFIED = 0, |
| 110 JPEG = 1, |
| 111 HD_REC709 = 2, |
| 112 SD_REC601 = 3, |
| 113 MAX = SD_REC601, |
| 114 }; |
| 115 |
107 // See media/base/video_decoder_config.h for descriptions. | 116 // See media/base/video_decoder_config.h for descriptions. |
108 // Kept in sync with media::VideoCodec via static_asserts. | 117 // Kept in sync with media::VideoCodec via static_asserts. |
109 enum VideoCodec { | 118 enum VideoCodec { |
110 UNKNOWN = 0, | 119 UNKNOWN = 0, |
111 H264, | 120 H264, |
112 VC1, | 121 VC1, |
113 MPEG2, | 122 MPEG2, |
114 MPEG4, | 123 MPEG4, |
115 Theora, | 124 Theora, |
116 VP8, | 125 VP8, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 int32 codec_delay; | 166 int32 codec_delay; |
158 bool is_encrypted; | 167 bool is_encrypted; |
159 }; | 168 }; |
160 | 169 |
161 // This defines a mojo transport format for media::VideoDecoderConfig. | 170 // This defines a mojo transport format for media::VideoDecoderConfig. |
162 // See media/base/video_decoder_config.h for descriptions. | 171 // See media/base/video_decoder_config.h for descriptions. |
163 struct VideoDecoderConfig { | 172 struct VideoDecoderConfig { |
164 VideoCodec codec; | 173 VideoCodec codec; |
165 VideoCodecProfile profile; | 174 VideoCodecProfile profile; |
166 VideoFormat format; | 175 VideoFormat format; |
| 176 ColorSpace color_space; |
167 Size coded_size; | 177 Size coded_size; |
168 Rect visible_rect; | 178 Rect visible_rect; |
169 Size natural_size; | 179 Size natural_size; |
170 array<uint8>? extra_data; | 180 array<uint8>? extra_data; |
171 bool is_encrypted; | 181 bool is_encrypted; |
172 }; | 182 }; |
173 | 183 |
174 // This defines a mojo transport format for media::SubsampleEntry. | 184 // This defines a mojo transport format for media::SubsampleEntry. |
175 // See media/base/decrypt_config.h for descriptions. | 185 // See media/base/decrypt_config.h for descriptions. |
176 struct SubsampleEntry { | 186 struct SubsampleEntry { |
(...skipping 30 matching lines...) Expand all Loading... |
207 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 217 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
208 DecryptConfig? decrypt_config; | 218 DecryptConfig? decrypt_config; |
209 | 219 |
210 // These fields indicate the amount of data to discard after decoding. | 220 // These fields indicate the amount of data to discard after decoding. |
211 int64 front_discard_usec; | 221 int64 front_discard_usec; |
212 int64 back_discard_usec; | 222 int64 back_discard_usec; |
213 | 223 |
214 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. | 224 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. |
215 int64 splice_timestamp_usec; | 225 int64 splice_timestamp_usec; |
216 }; | 226 }; |
OLD | NEW |