www.pudn.com > g7231codec.rar > g723en.c
/* //============================================================================ // // FILE NAME : G723EN.c // // ALGORITHM : G723EN // // VENDOR : KN // // TARGET DSP: C64x // // PURPOSE : This file implements all methods defined in G723EN.h // // Component Wizard for eXpressDSP Version 1.31.00 Auto-Generated Component // // Number of Inputs : 1 // Number of Outputs: 1 // // Creation Date: Mon - 16 May 2005 // Creation Time: 04:31 PM // //============================================================================ */ #pragma CODE_SECTION(G723EN_create, ".text:create") #pragma CODE_SECTION(G723EN_control, ".text:control") #pragma CODE_SECTION(G723EN_delete, ".text:delete") #pragma CODE_SECTION(G723EN_init, ".text:init") #pragma CODE_SECTION(G723EN_exit, ".text:exit") #include#include #include #include "g723en.h" /* // =========================================================================== // G723EN_create // // Create an G723EN instance object (using parameters specified by prms) */ G723EN_Handle G723EN_create(const IG723EN_Fxns *fxns, const G723EN_Params *prms) { return ((G723EN_Handle)ALG_create((IALG_Fxns *)fxns, NULL, (IALG_Params *)prms)); } /* // =========================================================================== // G723EN_control // // Function to either write to the read/write parameters in the status // structure or to read all the parameters in the status structure. */ Int G723EN_control(G723EN_Handle handle, G723EN_Cmd cmd, G723EN_Status *status) { return (ALG_control((IALG_Handle)handle, cmd, (IALG_Status *)status)); } /* // =========================================================================== // G723EN_delete // // Delete the G723EN instance object specified by handle */ Void G723EN_delete(G723EN_Handle handle) { ALG_delete((IALG_Handle)handle); } /* // =========================================================================== // G723EN_init // // G723EN module initialization */ Void G723EN_init(Void) { } /* // =========================================================================== // G723EN_exit // // G723EN module finalization */ Void G723EN_exit(Void) { } /* // =========================================================================== // G723EN_apply */ XDAS_Void G723EN_apply(G723EN_Handle handle, XDAS_Int16 * ptrIn0, XDAS_Int16 * ptrOut0) { ALG_activate((IALG_Handle)handle); handle->fxns->apply(handle, ptrIn0, ptrOut0); ALG_deactivate((IALG_Handle)handle); }