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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 905023005: Pepper: PPB_VideoEncoder implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest on win_chromium_x64_rel_ng Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/proxy/video_encoder_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 #include "ppapi/c/pp_rect.h" 34 #include "ppapi/c/pp_rect.h"
35 #include "ppapi/c/pp_resource.h" 35 #include "ppapi/c/pp_resource.h"
36 #include "ppapi/c/pp_size.h" 36 #include "ppapi/c/pp_size.h"
37 #include "ppapi/c/pp_time.h" 37 #include "ppapi/c/pp_time.h"
38 #include "ppapi/c/ppb_audio_config.h" 38 #include "ppapi/c/ppb_audio_config.h"
39 #include "ppapi/c/ppb_compositor_layer.h" 39 #include "ppapi/c/ppb_compositor_layer.h"
40 #include "ppapi/c/ppb_image_data.h" 40 #include "ppapi/c/ppb_image_data.h"
41 #include "ppapi/c/ppb_tcp_socket.h" 41 #include "ppapi/c/ppb_tcp_socket.h"
42 #include "ppapi/c/ppb_text_input_controller.h" 42 #include "ppapi/c/ppb_text_input_controller.h"
43 #include "ppapi/c/ppb_udp_socket.h" 43 #include "ppapi/c/ppb_udp_socket.h"
44 #include "ppapi/c/ppb_video_encoder.h"
44 #include "ppapi/c/private/pp_content_decryptor.h" 45 #include "ppapi/c/private/pp_content_decryptor.h"
45 #include "ppapi/c/private/pp_private_font_charset.h" 46 #include "ppapi/c/private/pp_private_font_charset.h"
46 #include "ppapi/c/private/pp_video_capture_format.h" 47 #include "ppapi/c/private/pp_video_capture_format.h"
47 #include "ppapi/c/private/ppb_flash.h" 48 #include "ppapi/c/private/ppb_flash.h"
48 #include "ppapi/c/private/ppb_host_resolver_private.h" 49 #include "ppapi/c/private/ppb_host_resolver_private.h"
49 #include "ppapi/c/private/ppb_isolated_file_system_private.h" 50 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
50 #include "ppapi/c/private/ppb_net_address_private.h" 51 #include "ppapi/c/private/ppb_net_address_private.h"
51 #include "ppapi/c/private/ppb_pdf.h" 52 #include "ppapi/c/private/ppb_pdf.h"
52 #include "ppapi/c/private/ppb_talk_private.h" 53 #include "ppapi/c/private/ppb_talk_private.h"
53 #include "ppapi/c/private/ppp_flash_browser_operations.h" 54 #include "ppapi/c/private/ppp_flash_browser_operations.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // The list of switches can be found in: 437 // The list of switches can be found in:
437 // components/nacl/browser/nacl_process_host.cc 438 // components/nacl/browser/nacl_process_host.cc
438 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) 439 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
439 IPC_STRUCT_TRAITS_MEMBER(off_the_record) 440 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
440 IPC_STRUCT_TRAITS_MEMBER(permissions) 441 IPC_STRUCT_TRAITS_MEMBER(permissions)
441 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) 442 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
442 IPC_STRUCT_TRAITS_MEMBER(switch_names) 443 IPC_STRUCT_TRAITS_MEMBER(switch_names)
443 IPC_STRUCT_TRAITS_MEMBER(switch_values) 444 IPC_STRUCT_TRAITS_MEMBER(switch_values)
444 IPC_STRUCT_TRAITS_END() 445 IPC_STRUCT_TRAITS_END()
445 446
447 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
448 IPC_STRUCT_TRAITS_MEMBER(profile)
449 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
450 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
451 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
452 IPC_STRUCT_TRAITS_MEMBER(acceleration)
453 IPC_STRUCT_TRAITS_END()
454
446 #if !defined(OS_NACL) && !defined(NACL_WIN64) 455 #if !defined(OS_NACL) && !defined(NACL_WIN64)
447 456
448 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) 457 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
449 IPC_STRUCT_TRAITS_MEMBER(resource) 458 IPC_STRUCT_TRAITS_MEMBER(resource)
450 IPC_STRUCT_TRAITS_MEMBER(handle) 459 IPC_STRUCT_TRAITS_MEMBER(handle)
451 IPC_STRUCT_TRAITS_MEMBER(size) 460 IPC_STRUCT_TRAITS_MEMBER(size)
452 IPC_STRUCT_TRAITS_END() 461 IPC_STRUCT_TRAITS_END()
453 462
454 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 463 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
455 464
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 uint32_t /* texture_id */) 1994 uint32_t /* texture_id */)
1986 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture, 1995 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
1987 uint32_t /* texture_id */) 1996 uint32_t /* texture_id */)
1988 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush) 1997 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
1989 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply) 1998 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
1990 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset) 1999 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
1991 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) 2000 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
1992 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, 2001 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
1993 int32_t /* error */) 2002 int32_t /* error */)
1994 2003
2004 // VideoEncoder ------------------------------------------------------
2005
2006 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Create)
2007 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetSupportedProfiles)
2008 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_GetSupportedProfilesReply,
2009 std::vector<PP_VideoProfileDescription> /* results */)
2010 IPC_MESSAGE_CONTROL5(PpapiHostMsg_VideoEncoder_Initialize,
2011 PP_VideoFrame_Format /* input_format */,
2012 PP_Size /* input_visible_size */,
2013 PP_VideoProfile /* output_profile */,
2014 uint32_t /* initial_bitrate */,
2015 PP_HardwareAcceleration /* acceleration */)
2016 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoEncoder_InitializeReply,
2017 uint32_t /* input_frame_count */,
2018 PP_Size /* input_coded_size */)
2019 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_BitstreamBuffers,
2020 uint32_t /* buffer_length */)
2021 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetVideoFrames)
2022 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_GetVideoFramesReply,
2023 uint32_t /* frame_count */,
2024 uint32_t /* frame_length */,
2025 PP_Size /* frame_size */)
2026 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_Encode,
2027 uint32_t /* frame_id */,
2028 bool /* force_keyframe */)
2029 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_EncodeReply,
2030 uint32_t /* frame_id */)
2031 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_BitstreamBufferReady,
2032 uint32_t /* buffer_id */,
2033 uint32_t /* buffer_size */,
2034 bool /* key_frame */)
2035 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoEncoder_RecycleBitstreamBuffer,
2036 uint32_t /* buffer_id */)
2037 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_RequestEncodingParametersChange,
2038 uint32_t /* bitrate */,
2039 uint32_t /* framerate */)
2040 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_NotifyError,
2041 int32_t /* error */)
2042 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Close)
2043
1995 #if !defined(OS_NACL) && !defined(NACL_WIN64) 2044 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1996 2045
1997 // Audio input. 2046 // Audio input.
1998 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) 2047 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
1999 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, 2048 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
2000 std::string /* device_id */, 2049 std::string /* device_id */,
2001 PP_AudioSampleRate /* sample_rate */, 2050 PP_AudioSampleRate /* sample_rate */,
2002 uint32_t /* sample_frame_count */) 2051 uint32_t /* sample_frame_count */)
2003 // Reply to an Open call. This supplies a socket handle and a shared memory 2052 // Reply to an Open call. This supplies a socket handle and a shared memory
2004 // handle. Both handles are passed in the ReplyParams struct. 2053 // handle. Both handles are passed in the ReplyParams struct.
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2347 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2299 PP_TalkPermission /* permission */) 2348 PP_TalkPermission /* permission */)
2300 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2349 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2301 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2350 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2302 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2351 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2352 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2304 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2353 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2305 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2354 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2306 2355
2307 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2356 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/proxy/video_encoder_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698