OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 /** | 6 /** |
7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information | 7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information |
8 * that can be used to associate the decrypted block with a decrypt request | 8 * that can be used to associate the decrypted block with a decrypt request |
9 * and/or an input block. | 9 * and/or an input block. |
10 */ | 10 */ |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 * <code>PP_DecryptedFrameFormat</code> contains video frame formats. | 133 * <code>PP_DecryptedFrameFormat</code> contains video frame formats. |
134 */ | 134 */ |
135 [assert_size(4)] | 135 [assert_size(4)] |
136 enum PP_DecryptedFrameFormat { | 136 enum PP_DecryptedFrameFormat { |
137 PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0, | 137 PP_DECRYPTEDFRAMEFORMAT_UNKNOWN = 0, |
138 PP_DECRYPTEDFRAMEFORMAT_YV12 = 1, | 138 PP_DECRYPTEDFRAMEFORMAT_YV12 = 1, |
139 PP_DECRYPTEDFRAMEFORMAT_I420 = 2 | 139 PP_DECRYPTEDFRAMEFORMAT_I420 = 2 |
140 }; | 140 }; |
141 | 141 |
142 /** | 142 /** |
| 143 * <code>PP_DecryptedSampleFormat</code> contains audio sample formats. |
| 144 */ |
| 145 [assert_size(4)] |
| 146 enum PP_DecryptedSampleFormat { |
| 147 PP_DECRYPTEDSAMPLEFORMAT_UNKNOWN = 0, |
| 148 PP_DECRYPTEDSAMPLEFORMAT_U8 = 1, |
| 149 PP_DECRYPTEDSAMPLEFORMAT_S16 = 2, |
| 150 PP_DECRYPTEDSAMPLEFORMAT_S32 = 3, |
| 151 PP_DECRYPTEDSAMPLEFORMAT_F32 = 4, |
| 152 PP_DECRYPTEDSAMPLEFORMAT_PLANAR_S16 = 5, |
| 153 PP_DECRYPTEDSAMPLEFORMAT_PLANAR_F32 = 6 |
| 154 }; |
| 155 |
| 156 /** |
143 * The <code>PP_DecryptResult</code> enum contains decryption and decoding | 157 * The <code>PP_DecryptResult</code> enum contains decryption and decoding |
144 * result constants. | 158 * result constants. |
145 */ | 159 */ |
146 [assert_size(4)] | 160 [assert_size(4)] |
147 enum PP_DecryptResult { | 161 enum PP_DecryptResult { |
148 /** The decryption (and/or decoding) operation finished successfully. */ | 162 /** The decryption (and/or decoding) operation finished successfully. */ |
149 PP_DECRYPTRESULT_SUCCESS = 0, | 163 PP_DECRYPTRESULT_SUCCESS = 0, |
150 /** The decryptor did not have the necessary decryption key. */ | 164 /** The decryptor did not have the necessary decryption key. */ |
151 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1, | 165 PP_DECRYPTRESULT_DECRYPT_NOKEY = 1, |
152 /** The input was accepted by the decoder but no frame(s) can be produced. */ | 166 /** The input was accepted by the decoder but no frame(s) can be produced. */ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 */ | 242 */ |
229 int32_t height; | 243 int32_t height; |
230 | 244 |
231 /** | 245 /** |
232 * Information needed by the client to track the decrypted frame. | 246 * Information needed by the client to track the decrypted frame. |
233 */ | 247 */ |
234 PP_DecryptTrackingInfo tracking_info; | 248 PP_DecryptTrackingInfo tracking_info; |
235 }; | 249 }; |
236 | 250 |
237 /** | 251 /** |
| 252 * <code>PP_DecryptedSampleInfo</code> contains the result of the |
| 253 * decrypt and decode operation on the associated samples, information required |
| 254 * to access the sample data in buffer, and tracking info. |
| 255 */ |
| 256 [assert_size(32)] |
| 257 struct PP_DecryptedSampleInfo { |
| 258 /** |
| 259 * Result of the decrypt and decode operation. |
| 260 */ |
| 261 PP_DecryptResult result; |
| 262 |
| 263 /** |
| 264 * Format of the decrypted samples. |
| 265 */ |
| 266 PP_DecryptedSampleFormat format; |
| 267 |
| 268 /** |
| 269 * Size in bytes of decrypted samples. |
| 270 */ |
| 271 uint32_t data_size; |
| 272 |
| 273 /** |
| 274 * 4-byte padding to make the size of <code>PP_DecryptedSampleInfo</code> |
| 275 * a multiple of 8 bytes. The value of this field should not be used. |
| 276 */ |
| 277 uint32_t padding; |
| 278 |
| 279 /** |
| 280 * Information needed by the client to track the decrypted samples. |
| 281 */ |
| 282 PP_DecryptTrackingInfo tracking_info; |
| 283 }; |
| 284 |
| 285 /** |
238 * <code>PP_AudioCodec</code> contains audio codec type constants. | 286 * <code>PP_AudioCodec</code> contains audio codec type constants. |
239 */ | 287 */ |
240 [assert_size(4)] | 288 [assert_size(4)] |
241 enum PP_AudioCodec { | 289 enum PP_AudioCodec { |
242 PP_AUDIOCODEC_UNKNOWN = 0, | 290 PP_AUDIOCODEC_UNKNOWN = 0, |
243 PP_AUDIOCODEC_VORBIS = 1, | 291 PP_AUDIOCODEC_VORBIS = 1, |
244 PP_AUDIOCODEC_AAC = 2 | 292 PP_AUDIOCODEC_AAC = 2 |
245 }; | 293 }; |
246 | 294 |
247 /** | 295 /** |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 }; | 402 }; |
355 | 403 |
356 /** | 404 /** |
357 * <code>PP_DecryptorStreamType</code> contains stream type constants. | 405 * <code>PP_DecryptorStreamType</code> contains stream type constants. |
358 */ | 406 */ |
359 [assert_size(4)] | 407 [assert_size(4)] |
360 enum PP_DecryptorStreamType { | 408 enum PP_DecryptorStreamType { |
361 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, | 409 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, |
362 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 | 410 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 |
363 }; | 411 }; |
OLD | NEW |