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

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: Send bitstream buffers in their own ppapi ipc message Created 5 years, 10 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
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/ppb_flash.h" 47 #include "ppapi/c/private/ppb_flash.h"
47 #include "ppapi/c/private/ppb_host_resolver_private.h" 48 #include "ppapi/c/private/ppb_host_resolver_private.h"
48 #include "ppapi/c/private/ppb_isolated_file_system_private.h" 49 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
49 #include "ppapi/c/private/ppb_net_address_private.h" 50 #include "ppapi/c/private/ppb_net_address_private.h"
50 #include "ppapi/c/private/ppb_pdf.h" 51 #include "ppapi/c/private/ppb_pdf.h"
51 #include "ppapi/c/private/ppb_talk_private.h" 52 #include "ppapi/c/private/ppb_talk_private.h"
52 #include "ppapi/c/private/ppp_flash_browser_operations.h" 53 #include "ppapi/c/private/ppp_flash_browser_operations.h"
53 #include "ppapi/c/private/ppp_pdf.h" 54 #include "ppapi/c/private/ppp_pdf.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // The list of switches can be found in: 431 // The list of switches can be found in:
431 // components/nacl/browser/nacl_process_host.cc 432 // components/nacl/browser/nacl_process_host.cc
432 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) 433 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
433 IPC_STRUCT_TRAITS_MEMBER(off_the_record) 434 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
434 IPC_STRUCT_TRAITS_MEMBER(permissions) 435 IPC_STRUCT_TRAITS_MEMBER(permissions)
435 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) 436 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
436 IPC_STRUCT_TRAITS_MEMBER(switch_names) 437 IPC_STRUCT_TRAITS_MEMBER(switch_names)
437 IPC_STRUCT_TRAITS_MEMBER(switch_values) 438 IPC_STRUCT_TRAITS_MEMBER(switch_values)
438 IPC_STRUCT_TRAITS_END() 439 IPC_STRUCT_TRAITS_END()
439 440
441 IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
442 IPC_STRUCT_TRAITS_MEMBER(profile)
443 IPC_STRUCT_TRAITS_MEMBER(max_resolution)
444 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
445 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
446 IPC_STRUCT_TRAITS_MEMBER(acceleration)
447 IPC_STRUCT_TRAITS_END()
448
440 #if !defined(OS_NACL) && !defined(NACL_WIN64) 449 #if !defined(OS_NACL) && !defined(NACL_WIN64)
441 450
442 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) 451 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
443 IPC_STRUCT_TRAITS_MEMBER(resource) 452 IPC_STRUCT_TRAITS_MEMBER(resource)
444 IPC_STRUCT_TRAITS_MEMBER(handle) 453 IPC_STRUCT_TRAITS_MEMBER(handle)
445 IPC_STRUCT_TRAITS_MEMBER(size) 454 IPC_STRUCT_TRAITS_MEMBER(size)
446 IPC_STRUCT_TRAITS_END() 455 IPC_STRUCT_TRAITS_END()
447 456
448 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 457 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
449 458
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 uint32_t /* texture_id */) 1974 uint32_t /* texture_id */)
1966 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture, 1975 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
1967 uint32_t /* texture_id */) 1976 uint32_t /* texture_id */)
1968 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush) 1977 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
1969 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply) 1978 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
1970 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset) 1979 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
1971 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) 1980 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
1972 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, 1981 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
1973 int32_t /* error */) 1982 int32_t /* error */)
1974 1983
1984 // VideoEncoder ------------------------------------------------------
1985
1986 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Create)
1987 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetSupportedProfiles)
1988 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_GetSupportedProfilesReply,
1989 std::vector<PP_VideoProfileDescription> /* results */)
1990 IPC_MESSAGE_CONTROL5(PpapiHostMsg_VideoEncoder_Initialize,
1991 PP_VideoFrame_Format /* input_format */,
1992 PP_Size /* input_visible_size */,
1993 PP_VideoProfile /* output_profile */,
1994 uint32_t /* initial_bitrate */,
1995 PP_HardwareAcceleration /* acceleration */)
1996 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoEncoder_InitializeReply,
1997 uint32_t /* input_frame_count */,
1998 PP_Size /* input_coded_size */)
1999 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_BitstreamBuffers,
2000 uint32_t /* buffer_length */)
2001 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetVideoFrames)
2002 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_GetVideoFramesReply,
2003 uint32_t /* frame_count */,
2004 uint32_t /* frame_length */,
2005 PP_Size /* frame_size */)
2006 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_Encode,
2007 uint32_t /* frame_id */,
2008 bool /* force_keyframe */)
2009 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_EncodeReply,
2010 uint32_t /* frame_id */)
2011 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_BitstreamBufferReady,
2012 uint32_t /* buffer_id */,
2013 uint32_t /* buffer_size */,
2014 bool /* key_frame */)
2015 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoEncoder_RecycleBitstreamBuffer,
2016 uint32_t /* buffer_id */)
2017 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_RequestEncodingParametersChange,
2018 uint32_t /* bitrate */,
2019 uint32_t /* framerate */)
2020 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_NotifyError,
2021 int32_t /* error */)
2022 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Close)
2023 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoEncoder_CloseReply)
2024
1975 #if !defined(OS_NACL) && !defined(NACL_WIN64) 2025 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1976 2026
1977 // Audio input. 2027 // Audio input.
1978 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) 2028 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
1979 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, 2029 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1980 std::string /* device_id */, 2030 std::string /* device_id */,
1981 PP_AudioSampleRate /* sample_rate */, 2031 PP_AudioSampleRate /* sample_rate */,
1982 uint32_t /* sample_frame_count */) 2032 uint32_t /* sample_frame_count */)
1983 // Reply to an Open call. This supplies a socket handle and a shared memory 2033 // Reply to an Open call. This supplies a socket handle and a shared memory
1984 // handle. Both handles are passed in the ReplyParams struct. 2034 // handle. Both handles are passed in the ReplyParams struct.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2326 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2277 PP_TalkPermission /* permission */) 2327 PP_TalkPermission /* permission */)
2278 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2328 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2279 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2329 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2280 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2330 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2281 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2331 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2282 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2332 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2283 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2333 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2284 2334
2285 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2335 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698