Chromium Code Reviews| 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)] | |
|
DaleCurtis
2013/10/11 01:30:53
Not sure where the extra 4 bytes comes from, it co
xhwang
2013/10/11 22:45:16
see l.126. you may want to have a
uint32_t paddi
dmichael (off chromium)
2013/10/11 23:00:35
PP_DecryptTrackingInfo has an int64_t, so it gets
| |
| 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; | |
|
DaleCurtis
2013/10/11 01:30:53
Is this necessary? The size is already attached to
xhwang
2013/10/11 22:45:16
You mean PP_DecryptedBufferInfo? See the comment o
| |
| 272 | |
| 273 /** | |
| 274 * Information needed by the client to track the decrypted samples. | |
| 275 */ | |
| 276 PP_DecryptTrackingInfo tracking_info; | |
| 277 }; | |
| 278 | |
| 279 /** | |
| 238 * <code>PP_AudioCodec</code> contains audio codec type constants. | 280 * <code>PP_AudioCodec</code> contains audio codec type constants. |
| 239 */ | 281 */ |
| 240 [assert_size(4)] | 282 [assert_size(4)] |
| 241 enum PP_AudioCodec { | 283 enum PP_AudioCodec { |
| 242 PP_AUDIOCODEC_UNKNOWN = 0, | 284 PP_AUDIOCODEC_UNKNOWN = 0, |
| 243 PP_AUDIOCODEC_VORBIS = 1, | 285 PP_AUDIOCODEC_VORBIS = 1, |
| 244 PP_AUDIOCODEC_AAC = 2 | 286 PP_AUDIOCODEC_AAC = 2 |
| 245 }; | 287 }; |
| 246 | 288 |
| 247 /** | 289 /** |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 354 }; | 396 }; |
| 355 | 397 |
| 356 /** | 398 /** |
| 357 * <code>PP_DecryptorStreamType</code> contains stream type constants. | 399 * <code>PP_DecryptorStreamType</code> contains stream type constants. |
| 358 */ | 400 */ |
| 359 [assert_size(4)] | 401 [assert_size(4)] |
| 360 enum PP_DecryptorStreamType { | 402 enum PP_DecryptorStreamType { |
| 361 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, | 403 PP_DECRYPTORSTREAMTYPE_AUDIO = 0, |
| 362 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 | 404 PP_DECRYPTORSTREAMTYPE_VIDEO = 1 |
| 363 }; | 405 }; |
| OLD | NEW |