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

Unified Diff: ppapi/c/pp_codecs.h

Issue 1128023009: ppapi: define PPB_AudioEncoder API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bbudge's nits & api release bump Created 5 years, 3 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
Index: ppapi/c/pp_codecs.h
diff --git a/ppapi/c/pp_codecs.h b/ppapi/c/pp_codecs.h
index 173f9f4325e129aa7792728c48312b53b18eb6c2..e8977998d36d2b27bdf399d9cb3a3047680871fa 100644
--- a/ppapi/c/pp_codecs.h
+++ b/ppapi/c/pp_codecs.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From pp_codecs.idl modified Fri Apr 17 10:55:27 2015. */
+/* From pp_codecs.idl modified Thu May 21 15:11:01 2015. */
#ifndef PPAPI_C_PP_CODECS_H_
#define PPAPI_C_PP_CODECS_H_
@@ -43,6 +43,15 @@ typedef enum {
} PP_VideoProfile;
/**
+ * Audio profiles.
+ */
+typedef enum {
+ PP_AUDIOPROFILE_OPUS = 0,
+ PP_AUDIOPROFILE_SPEEX = 1,
+ PP_AUDIOPROFILE_MAX = PP_AUDIOPROFILE_SPEEX
+} PP_AudioProfile;
+
+/**
* Hardware acceleration options.
*/
typedef enum {
@@ -188,6 +197,33 @@ struct PP_VideoProfileDescription_0_1 {
};
/**
+ * Supported audio profile information. See the PPB_AudioEncoder function
+ * GetSupportedProfiles() for more details.
+ */
+struct PP_AudioProfileDescription {
+ /**
+ * The codec profile.
+ */
+ PP_AudioProfile profile;
+ /**
+ * Maximum number of channels that can be encoded.
+ */
+ uint32_t max_channels;
+ /**
+ * Sample size.
+ */
+ uint32_t sample_size;
+ /**
+ * Sampling rate that can be encoded
+ */
+ uint32_t sample_rate;
+ /**
+ * Whether the profile is hardware accelerated.
+ */
+ PP_Bool hardware_accelerated;
+};
+
+/**
* Struct describing a bitstream buffer.
*/
struct PP_BitstreamBuffer {
@@ -204,6 +240,20 @@ struct PP_BitstreamBuffer {
*/
PP_Bool key_frame;
};
+
+/**
+ * Struct describing an audio bitstream buffer.
+ */
+struct PP_AudioBitstreamBuffer {
+ /**
+ * The size, in bytes, of the bitstream data.
+ */
+ uint32_t size;
+ /**
+ * The base address of the bitstream data.
+ */
+ void* buffer;
+};
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698