Index: ppapi/proxy/ppapi_messages.h |
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h |
index 243e78330c29b6e23d6d673d99e51e6bd1a3bdec..643d8f9b42abd37dabd4afa79cf238f0ce0842c1 100644 |
--- a/ppapi/proxy/ppapi_messages.h |
+++ b/ppapi/proxy/ppapi_messages.h |
@@ -41,6 +41,7 @@ |
#include "ppapi/c/ppb_tcp_socket.h" |
#include "ppapi/c/ppb_text_input_controller.h" |
#include "ppapi/c/ppb_udp_socket.h" |
+#include "ppapi/c/ppb_video_encoder.h" |
#include "ppapi/c/private/pp_content_decryptor.h" |
#include "ppapi/c/private/pp_private_font_charset.h" |
#include "ppapi/c/private/pp_video_capture_format.h" |
@@ -443,6 +444,14 @@ IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
IPC_STRUCT_TRAITS_MEMBER(switch_values) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) |
+IPC_STRUCT_TRAITS_MEMBER(profile) |
+IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
+IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) |
+IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
+IPC_STRUCT_TRAITS_MEMBER(acceleration) |
+IPC_STRUCT_TRAITS_END() |
+ |
#if !defined(OS_NACL) && !defined(NACL_WIN64) |
IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
@@ -1992,6 +2001,46 @@ IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) |
IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, |
int32_t /* error */) |
+// VideoEncoder ------------------------------------------------------ |
+ |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Create) |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetSupportedProfiles) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_GetSupportedProfilesReply, |
+ std::vector<PP_VideoProfileDescription> /* results */) |
+IPC_MESSAGE_CONTROL5(PpapiHostMsg_VideoEncoder_Initialize, |
+ PP_VideoFrame_Format /* input_format */, |
+ PP_Size /* input_visible_size */, |
+ PP_VideoProfile /* output_profile */, |
+ uint32_t /* initial_bitrate */, |
+ PP_HardwareAcceleration /* acceleration */) |
+IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoEncoder_InitializeReply, |
+ uint32_t /* input_frame_count */, |
+ PP_Size /* input_coded_size */) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_BitstreamBuffers, |
+ uint32_t /* buffer_length */) |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetVideoFrames) |
+IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_GetVideoFramesReply, |
+ uint32_t /* frame_count */, |
+ uint32_t /* frame_length */, |
+ PP_Size /* frame_size */) |
+IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_Encode, |
+ uint32_t /* frame_id */, |
+ bool /* force_keyframe */) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_EncodeReply, |
+ uint32_t /* frame_id */) |
+IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_BitstreamBufferReady, |
+ uint32_t /* buffer_id */, |
+ uint32_t /* buffer_size */, |
+ bool /* key_frame */) |
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoEncoder_RecycleBitstreamBuffer, |
+ uint32_t /* buffer_id */) |
+IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_RequestEncodingParametersChange, |
+ uint32_t /* bitrate */, |
+ uint32_t /* framerate */) |
+IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_NotifyError, |
+ int32_t /* error */) |
+IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Close) |
+ |
#if !defined(OS_NACL) && !defined(NACL_WIN64) |
// Audio input. |