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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 26956002: Plumb support for audio sample formats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 static void Pnacl_M31_PPB_ContentDecryptor_Private_DecoderResetDone(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) { 2500 static void Pnacl_M31_PPB_ContentDecryptor_Private_DecoderResetDone(PP_Instance instance, PP_DecryptorStreamType decoder_type, uint32_t request_id) {
2501 const struct PPB_ContentDecryptor_Private_0_7 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_7.real_iface; 2501 const struct PPB_ContentDecryptor_Private_0_7 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_7.real_iface;
2502 iface->DecoderResetDone(instance, decoder_type, request_id); 2502 iface->DecoderResetDone(instance, decoder_type, request_id);
2503 } 2503 }
2504 2504
2505 static void Pnacl_M31_PPB_ContentDecryptor_Private_DeliverFrame(PP_Instance inst ance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted _frame_info) { 2505 static void Pnacl_M31_PPB_ContentDecryptor_Private_DeliverFrame(PP_Instance inst ance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted _frame_info) {
2506 const struct PPB_ContentDecryptor_Private_0_7 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_7.real_iface; 2506 const struct PPB_ContentDecryptor_Private_0_7 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_7.real_iface;
2507 iface->DeliverFrame(instance, decrypted_frame, decrypted_frame_info); 2507 iface->DeliverFrame(instance, decrypted_frame, decrypted_frame_info);
2508 } 2508 }
2509 2509
2510 static void Pnacl_M31_PPB_ContentDecryptor_Private_DeliverSamples(PP_Instance in stance, PP_Resource audio_frames, const struct PP_DecryptedBlockInfo* decrypted_ block_info) { 2510 static void Pnacl_M31_PPB_ContentDecryptor_Private_DeliverSamples(PP_Instance in stance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted _sample_info) {
2511 const struct PPB_ContentDecryptor_Private_0_7 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_7.real_iface; 2511 const struct PPB_ContentDecryptor_Private_0_7 *iface = Pnacl_WrapperInfo_PPB_C ontentDecryptor_Private_0_7.real_iface;
2512 iface->DeliverSamples(instance, audio_frames, decrypted_block_info); 2512 iface->DeliverSamples(instance, audio_frames, decrypted_sample_info);
2513 } 2513 }
2514 2514
2515 /* End wrapper methods for PPB_ContentDecryptor_Private_0_7 */ 2515 /* End wrapper methods for PPB_ContentDecryptor_Private_0_7 */
2516 2516
2517 /* Begin wrapper methods for PPB_Ext_CrxFileSystem_Private_0_1 */ 2517 /* Begin wrapper methods for PPB_Ext_CrxFileSystem_Private_0_1 */
2518 2518
2519 static int32_t Pnacl_M28_PPB_Ext_CrxFileSystem_Private_Open(PP_Instance instance , PP_Resource* file_system, struct PP_CompletionCallback* callback) { 2519 static int32_t Pnacl_M28_PPB_Ext_CrxFileSystem_Private_Open(PP_Instance instance , PP_Resource* file_system, struct PP_CompletionCallback* callback) {
2520 const struct PPB_Ext_CrxFileSystem_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_ Ext_CrxFileSystem_Private_0_1.real_iface; 2520 const struct PPB_Ext_CrxFileSystem_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_ Ext_CrxFileSystem_Private_0_1.real_iface;
2521 return iface->Open(instance, file_system, *callback); 2521 return iface->Open(instance, file_system, *callback);
2522 } 2522 }
(...skipping 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after
4777 4777
4778 struct PPB_ContentDecryptor_Private_0_7 Pnacl_Wrappers_PPB_ContentDecryptor_Priv ate_0_7 = { 4778 struct PPB_ContentDecryptor_Private_0_7 Pnacl_Wrappers_PPB_ContentDecryptor_Priv ate_0_7 = {
4779 .KeyAdded = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id))&Pnacl_M31_PPB_ContentDecryptor_Private_KeyAdded, 4779 .KeyAdded = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id))&Pnacl_M31_PPB_ContentDecryptor_Private_KeyAdded,
4780 .KeyMessage = (void (*)(PP_Instance instance, struct PP_Var key_system, stru ct PP_Var session_id, struct PP_Var message, struct PP_Var default_url))&Pnacl_M 31_PPB_ContentDecryptor_Private_KeyMessage, 4780 .KeyMessage = (void (*)(PP_Instance instance, struct PP_Var key_system, stru ct PP_Var session_id, struct PP_Var message, struct PP_Var default_url))&Pnacl_M 31_PPB_ContentDecryptor_Private_KeyMessage,
4781 .KeyError = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, int32_t media_error, int32_t system_code))&Pnacl_M31_PPB_Con tentDecryptor_Private_KeyError, 4781 .KeyError = (void (*)(PP_Instance instance, struct PP_Var key_system, struct PP_Var session_id, int32_t media_error, int32_t system_code))&Pnacl_M31_PPB_Con tentDecryptor_Private_KeyError,
4782 .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M31_PPB_Conten tDecryptor_Private_DeliverBlock, 4782 .DeliverBlock = (void (*)(PP_Instance instance, PP_Resource decrypted_block, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M31_PPB_Conten tDecryptor_Private_DeliverBlock,
4783 .DecoderInitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStreamT ype decoder_type, uint32_t request_id, PP_Bool success))&Pnacl_M31_PPB_ContentDe cryptor_Private_DecoderInitializeDone, 4783 .DecoderInitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStreamT ype decoder_type, uint32_t request_id, PP_Bool success))&Pnacl_M31_PPB_ContentDe cryptor_Private_DecoderInitializeDone,
4784 .DecoderDeinitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStrea mType decoder_type, uint32_t request_id))&Pnacl_M31_PPB_ContentDecryptor_Private _DecoderDeinitializeDone, 4784 .DecoderDeinitializeDone = (void (*)(PP_Instance instance, PP_DecryptorStrea mType decoder_type, uint32_t request_id))&Pnacl_M31_PPB_ContentDecryptor_Private _DecoderDeinitializeDone,
4785 .DecoderResetDone = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, uint32_t request_id))&Pnacl_M31_PPB_ContentDecryptor_Private_Decode rResetDone, 4785 .DecoderResetDone = (void (*)(PP_Instance instance, PP_DecryptorStreamType d ecoder_type, uint32_t request_id))&Pnacl_M31_PPB_ContentDecryptor_Private_Decode rResetDone,
4786 .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M31_PPB_Conten tDecryptor_Private_DeliverFrame, 4786 .DeliverFrame = (void (*)(PP_Instance instance, PP_Resource decrypted_frame, const struct PP_DecryptedFrameInfo* decrypted_frame_info))&Pnacl_M31_PPB_Conten tDecryptor_Private_DeliverFrame,
4787 .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource audio_frames, const struct PP_DecryptedBlockInfo* decrypted_block_info))&Pnacl_M31_PPB_Content Decryptor_Private_DeliverSamples 4787 .DeliverSamples = (void (*)(PP_Instance instance, PP_Resource audio_frames, const struct PP_DecryptedSampleInfo* decrypted_sample_info))&Pnacl_M31_PPB_Conte ntDecryptor_Private_DeliverSamples
4788 }; 4788 };
4789 4789
4790 struct PPB_Ext_CrxFileSystem_Private_0_1 Pnacl_Wrappers_PPB_Ext_CrxFileSystem_Pr ivate_0_1 = { 4790 struct PPB_Ext_CrxFileSystem_Private_0_1 Pnacl_Wrappers_PPB_Ext_CrxFileSystem_Pr ivate_0_1 = {
4791 .Open = (int32_t (*)(PP_Instance instance, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_Ext_CrxFileSystem_Private_Open 4791 .Open = (int32_t (*)(PP_Instance instance, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_Ext_CrxFileSystem_Private_Open
4792 }; 4792 };
4793 4793
4794 struct PPB_FileIO_Private_0_1 Pnacl_Wrappers_PPB_FileIO_Private_0_1 = { 4794 struct PPB_FileIO_Private_0_1 Pnacl_Wrappers_PPB_FileIO_Private_0_1 = {
4795 .RequestOSFileHandle = (int32_t (*)(PP_Resource file_io, PP_FileHandle* hand le, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileIO_Private_Request OSFileHandle 4795 .RequestOSFileHandle = (int32_t (*)(PP_Resource file_io, PP_FileHandle* hand le, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileIO_Private_Request OSFileHandle
4796 }; 4796 };
4797 4797
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
5987 if (NULL == iface) return NULL; 5987 if (NULL == iface) return NULL;
5988 wrapper->real_iface = iface; 5988 wrapper->real_iface = iface;
5989 } 5989 }
5990 5990
5991 if (wrapper->wrapped_iface) { 5991 if (wrapper->wrapped_iface) {
5992 return wrapper->wrapped_iface; 5992 return wrapper->wrapped_iface;
5993 } else { 5993 } else {
5994 return wrapper->real_iface; 5994 return wrapper->real_iface;
5995 } 5995 }
5996 } 5996 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698