Chromium Code Reviews| Index: ppapi/api/private/pp_content_decryptor.idl |
| diff --git a/ppapi/api/private/pp_content_decryptor.idl b/ppapi/api/private/pp_content_decryptor.idl |
| index 248b7356b2d29946e6c7b48f062ae3064d0d44f1..ebfb9e454294a1f35af7d498fec68a7439915c26 100644 |
| --- a/ppapi/api/private/pp_content_decryptor.idl |
| +++ b/ppapi/api/private/pp_content_decryptor.idl |
| @@ -114,6 +114,40 @@ struct PP_EncryptedBlockInfo { |
| }; |
| /** |
| + * <code>PP_StreamType</code> contains stream type constants. |
| + */ |
| +[assert_size(4)] |
| +enum PP_StreamType { |
| + PP_STREAMTYPE_UNKNOWN = 0, |
|
Ami GONE FROM CHROMIUM
2012/10/10 07:30:26
why does it make sense to have UNKNOWN?
Tom Finegan
2012/10/10 08:26:06
I was thinking of metadata and text streams, and t
Ami GONE FROM CHROMIUM
2012/10/10 18:06:45
yes, remove until needed.
Tom Finegan
2012/10/10 20:02:51
Done.
|
| + PP_STREAMTYPE_AUDIO = 1, |
| + PP_STREAMTYPE_VIDEO = 2 |
| +}; |
| + |
| +/** |
| + * <code>PP_EncryptedMediaInfo</code> contains the information required to |
|
Ami GONE FROM CHROMIUM
2012/10/10 07:30:26
Does this type justify its existence, as opposed t
Tom Finegan
2012/10/10 08:26:06
We have to pass a resource around with the info, a
Ami GONE FROM CHROMIUM
2012/10/10 18:06:45
I don't understand; my proposal is that APIs that
Tom Finegan
2012/10/10 20:02:51
I just thought it was nicer to keep the PP_StreamT
|
| + * decrypt and decode media data. |
| + */ |
| +[assert_size(248)] |
| +struct PP_EncryptedMediaInfo { |
| + /** |
| + * Media type of the encrypted data. |
| + */ |
| + PP_StreamType media_type; |
| + |
| + /** |
| + * 4-byte padding to make the size of <code>PP_EncryptedMediaInfo</code> |
| + * a multiple of 8 bytes and make sure |encryption_info| starts on an 8-byte |
| + * boundary. The value of this field should not be used. |
|
Ami GONE FROM CHROMIUM
2012/10/10 07:30:26
Why does alignment matter?
(also, what makes you t
Tom Finegan
2012/10/10 08:26:06
Fair point on alignment. I copied the comment from
|
| + */ |
| + uint32_t padding; |
| + |
| + /** |
| + * Information required to decrypt the media. |
| + */ |
| + PP_EncryptedBlockInfo encryption_info; |
| +}; |
| + |
| +/** |
| * <code>PP_DecryptedFrameFormat</code> contains video frame formats. |
| */ |
| [assert_size(4)] |
| @@ -134,40 +168,6 @@ enum PP_VideoCodec { |
| }; |
| /** |
| - * <code>PP_EncryptedVideoFrameInfo</code> contains the information required |
| - * to decrypt and decode a video frame. |
| - * TODO(tomfinegan): Revisit necessity of including format information in this |
| - * struct once we decide how to implement video decoder initialization. |
| - */ |
| -[assert_size(256)] |
| -struct PP_EncryptedVideoFrameInfo { |
| - /** |
| - * The decoded video frame format. |
| - */ |
| - PP_DecryptedFrameFormat format; |
| - |
| - /** |
| - * The video frame codec type. |
| - */ |
| - PP_VideoCodec codec; |
| - |
| - /** |
| - * Video frame width in pixels. |
| - */ |
| - int32_t width; |
| - |
| - /** |
| - * Video frame height in pixels. |
| - */ |
| - int32_t height; |
| - |
| - /** |
| - * Information required to decrypt the frame. |
| - */ |
| - PP_EncryptedBlockInfo encryption_info; |
| -}; |
| - |
| -/** |
| * The <code>PP_DecryptResult</code> enum contains decryption and decoding |
| * result constants. |
| */ |