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

Unified Diff: ppapi/proxy/ppapi_messages.h

Issue 1348563003: ppapi: implement PPB_AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address tsepez's review Created 5 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
Index: ppapi/proxy/ppapi_messages.h
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
index c36ceac59be8c391cd63ee3978877df76a0f9766..8b3b963a6ff1226779f5514f30a2d416190f6f4b 100644
--- a/ppapi/proxy/ppapi_messages.h
+++ b/ppapi/proxy/ppapi_messages.h
@@ -129,6 +129,7 @@ IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
IPC_STRUCT_TRAITS_BEGIN(PP_Point)
@@ -441,6 +442,14 @@ IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
IPC_STRUCT_TRAITS_MEMBER(switch_values)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription)
+ IPC_STRUCT_TRAITS_MEMBER(profile)
+ IPC_STRUCT_TRAITS_MEMBER(max_channels)
+ IPC_STRUCT_TRAITS_MEMBER(sample_size)
+ IPC_STRUCT_TRAITS_MEMBER(sample_rate)
+ IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
IPC_STRUCT_TRAITS_MEMBER(profile)
IPC_STRUCT_TRAITS_MEMBER(max_resolution)
@@ -449,6 +458,15 @@ IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters)
+ IPC_STRUCT_TRAITS_MEMBER(channels)
+ IPC_STRUCT_TRAITS_MEMBER(input_sample_rate)
+ IPC_STRUCT_TRAITS_MEMBER(input_sample_size)
+ IPC_STRUCT_TRAITS_MEMBER(output_profile)
+ IPC_STRUCT_TRAITS_MEMBER(initial_bitrate)
+ IPC_STRUCT_TRAITS_MEMBER(acceleration)
+IPC_STRUCT_TRAITS_END()
+
#if !defined(OS_NACL) && !defined(NACL_WIN64)
IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
@@ -889,6 +907,35 @@ IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
ppapi::HostResource /* audio_id */,
bool /* play */)
+// PPB_AudioEncoder
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create)
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles)
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply,
+ std::vector<PP_AudioProfileDescription> /* results */)
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize,
+ ppapi::proxy::PPB_AudioEncodeParameters /* parameters */)
+IPC_MESSAGE_CONTROL3(PpapiPluginMsg_AudioEncoder_InitializeReply,
+ uint32_t /* number_of_samples */,
+ uint32_t /* buffer_count */,
+ uint32_t /* buffer_size */)
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetAudioFrames)
+IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_GetAudioFramesReply,
+ uint32_t /* frame_count */,
+ uint32_t /* frame_length */)
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, uint32_t /* buffer_id */)
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply,
+ uint32_t /* buffer_id */)
+IPC_MESSAGE_CONTROL2(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady,
+ uint32_t /* buffer_id */,
+ uint32_t /* buffer_size */)
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer,
+ uint32_t /* buffer_id */)
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange,
+ uint32_t /* bitrate */)
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError,
+ int32_t /* error */)
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close)
+
// PPB_Core.
IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
ppapi::HostResource)

Powered by Google App Engine
This is Rietveld 408576698