www.pudn.com > g7231codec.rar > g723de.c


/* 
//============================================================================ 
// 
//    FILE NAME : G723DE.c 
// 
//    ALGORITHM : G723DE 
// 
//    VENDOR    : KN 
// 
//    TARGET DSP: C64x 
// 
//    PURPOSE   : This file implements all methods defined in G723DE.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:34 PM 
// 
//============================================================================ 
*/ 
 
#pragma CODE_SECTION(G723DE_create,  ".text:create") 
#pragma CODE_SECTION(G723DE_control, ".text:control") 
#pragma CODE_SECTION(G723DE_delete,  ".text:delete") 
#pragma CODE_SECTION(G723DE_init,    ".text:init") 
#pragma CODE_SECTION(G723DE_exit,    ".text:exit") 
 
#include  
#include  
#include  
#include "g723de.h" 
 
/* 
// =========================================================================== 
// G723DE_create 
// 
//  Create an G723DE instance object (using parameters specified by prms) 
*/ 
G723DE_Handle G723DE_create(const IG723DE_Fxns *fxns, const G723DE_Params *prms) 
{ 
    return ((G723DE_Handle)ALG_create((IALG_Fxns *)fxns, NULL, (IALG_Params *)prms)); 
} 
 
/* 
// =========================================================================== 
// G723DE_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 G723DE_control(G723DE_Handle handle, G723DE_Cmd cmd, G723DE_Status *status) 
{ 
    return (ALG_control((IALG_Handle)handle, cmd, (IALG_Status *)status)); 
} 
 
/* 
// =========================================================================== 
// G723DE_delete 
// 
// Delete the G723DE instance object specified by handle 
*/ 
Void G723DE_delete(G723DE_Handle handle) 
{ 
    ALG_delete((IALG_Handle)handle); 
} 
 
/* 
// =========================================================================== 
// G723DE_init 
// 
// G723DE module initialization 
*/ 
Void  G723DE_init(Void) 
{ 
} 
 
/* 
// =========================================================================== 
// G723DE_exit 
// 
// G723DE module finalization 
*/ 
Void  G723DE_exit(Void) 
{ 
} 
 
/* 
// =========================================================================== 
// G723DE_apply 
*/ 
XDAS_Void G723DE_apply(G723DE_Handle handle, XDAS_Int16 * ptrIn0, XDAS_Int16 * ptrOut0) 
{ 
    ALG_activate((IALG_Handle)handle); 
 
    handle->fxns->apply(handle, ptrIn0, ptrOut0); 
 
    ALG_deactivate((IALG_Handle)handle); 
}