Chromium Code Reviews| 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) |
|
bbudge
2015/10/06 00:54:25
The IDL for PPB_AudioEncoder talks about audio buf
llandwerlin-old
2015/10/06 10:28:57
Done.
|
| +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) |