Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: ppapi/api/private/pp_content_decryptor.idl

Issue 26956002: Plumb support for audio sample formats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cast. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc ('k') | ppapi/api/private/ppb_content_decryptor_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 aba404f8bb414414d6630a170631a64dead10eb8..41a399740838b2e38759907c08b142deb1e68b7c 100644
--- a/ppapi/api/private/pp_content_decryptor.idl
+++ b/ppapi/api/private/pp_content_decryptor.idl
@@ -140,6 +140,20 @@ enum PP_DecryptedFrameFormat {
};
/**
+ * <code>PP_DecryptedSampleFormat</code> contains audio sample formats.
+ */
+[assert_size(4)]
+enum PP_DecryptedSampleFormat {
+ PP_DECRYPTEDSAMPLEFORMAT_UNKNOWN = 0,
+ PP_DECRYPTEDSAMPLEFORMAT_U8 = 1,
+ PP_DECRYPTEDSAMPLEFORMAT_S16 = 2,
+ PP_DECRYPTEDSAMPLEFORMAT_S32 = 3,
+ PP_DECRYPTEDSAMPLEFORMAT_F32 = 4,
+ PP_DECRYPTEDSAMPLEFORMAT_PLANAR_S16 = 5,
+ PP_DECRYPTEDSAMPLEFORMAT_PLANAR_F32 = 6
+};
+
+/**
* The <code>PP_DecryptResult</code> enum contains decryption and decoding
* result constants.
*/
@@ -235,6 +249,40 @@ struct PP_DecryptedFrameInfo {
};
/**
+ * <code>PP_DecryptedSampleInfo</code> contains the result of the
+ * decrypt and decode operation on the associated samples, information required
+ * to access the sample data in buffer, and tracking info.
+ */
+[assert_size(32)]
+struct PP_DecryptedSampleInfo {
+ /**
+ * Result of the decrypt and decode operation.
+ */
+ PP_DecryptResult result;
+
+ /**
+ * Format of the decrypted samples.
+ */
+ PP_DecryptedSampleFormat format;
+
+ /**
+ * Size in bytes of decrypted samples.
+ */
+ uint32_t data_size;
+
+ /**
+ * 4-byte padding to make the size of <code>PP_DecryptedSampleInfo</code>
+ * a multiple of 8 bytes. The value of this field should not be used.
+ */
+ uint32_t padding;
+
+ /**
+ * Information needed by the client to track the decrypted samples.
+ */
+ PP_DecryptTrackingInfo tracking_info;
+};
+
+/**
* <code>PP_AudioCodec</code> contains audio codec type constants.
*/
[assert_size(4)]
« no previous file with comments | « media/cdm/ppapi/ffmpeg_cdm_audio_decoder.cc ('k') | ppapi/api/private/ppb_content_decryptor_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698