⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sbrdec_api_int.h

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 H
字号:
/*//////////////////////////////////////////////////////////////////////////////////                  INTEL CORPORATION PROPRIETARY INFORMATION//     This software is supplied under the terms of a license agreement or//     nondisclosure agreement with Intel Corporation and may not be copied//     or disclosed except in accordance with the terms of that agreement.//          Copyright(c) 2005 Intel Corporation. All Rights Reserved.//*/#ifndef __SBRDEC_API_INT_H__#define __SBRDEC_API_INT_H__#include "ippac.h"#include "ipps.h"#include "sbrdec.h"#include "sbrdec_setting_int.h"#include "aaccmn_chmap.h"typedef struct { // specification Filter  IppsFFTSpec_C_32s* pFFTSpecQMFA;  IppsFFTSpec_C_32sc* pFFTSpecQMFS;  Ipp8u*             pMemSpecQMFA;  Ipp8u*             pMemSpecQMFS;  Ipp32s* pAnalysisBufDelay;  Ipp32s* pSynthesisBufDelay;} sSbrDecFilter;typedef struct { //  sbr matrix's work space/* main-matrix * * UMC name | ISO name *  Xbuf    |   Xlow *  YBuf    |   Xhigh & Y - identity *  Zbuf    |     X * * Please, to watch closely */  Ipp32s*  iXBufRe[2][40];  Ipp32s*  iXBufIm[2][40];  Ipp32s*  iYBufRe[2][40];  Ipp32s*  iYBufIm[2][40];  Ipp32s*  iZBufRe[2][40];  Ipp32s*  iZBufIm[2][40];  /* these descriptors contain pointer to the allocatable memory (main matrix).  /  It is need, because mixing wiil be done  */  Ipp32s* _dcMemoryMatrix[2];/* HF adjustment: these buffers keep Noise & Gain data */  int  iBufGain[2][MAX_NUM_ENV][MAX_NUM_ENV_VAL];  int  iBufNoise[2][MAX_NUM_ENV][MAX_NUM_ENV_VAL];/* LP mode */  //Ipp32f  degPatched[2][MAX_NUM_ENV_VAL];  Ipp32s vEOrig[2][5*64];  Ipp32s vScaleFactorsEOrig[2][5];  Ipp32s vNoiseOrig[2][2*5];  /* for HF generation */  Ipp32s  bwArray[2][MAX_NUM_NOISE_VAL];  Ipp32s  AnalysisBufDelay[2][320];  Ipp32s  SynthesisBufDelay[2][1280];} sSbrDecWorkSpace;typedef struct {  sSbrDecCommon    sbr_com;  sSbrDecWorkSpace sbr_WS;} sSbrBlock;#ifdef  __cplusplusextern  "C" {#endif /* algorithm */  Ipp32s sbrDequantization( sSbrDecCommon* pSbrCom, sSbrDecWorkSpace* pSbrWS,                            int* vScaleFactorsEnv, Ipp32s ch, int bs_amp_res );  Ipp32s sbrGenerationHF(Ipp32s** iXBufRe,   Ipp32s** iXBufIm,                         Ipp32s** iYBufRe,   Ipp32s** iYBufIm,                         sSbrDecCommon* sbr_com, Ipp32s* bwArray, Ipp32f* degPatched,                         Ipp32s ch, int decode_mode, Ipp32s* pWorkBuffer);  void sbrAdjustmentHF(                       Ipp32s**  iYBufRe, Ipp32s**  iYBufIm,                       Ipp32s* vEOrig, Ipp32s* vNoiseOrig,                       Ipp32s* vScaleFactorsEOrig,                       int    iBufGain[][MAX_NUM_ENV_VAL],int    iBufNoise[][MAX_NUM_ENV_VAL],                       sSbrDecCommon* sbr_com, Ipp32f *degPatched, Ipp8u *WorkBuffer,                       Ipp32s reset, Ipp32s ch, Ipp32s decode_mode);/* SBR GENERAL HIGH LEVEL API: FIXED POINT VERSION */ // init()  Ipp32s sbrdecInitFilter( sSbrDecFilter** pDC, int* vecSizeWorkBuf );  sSbrBlock *sbrInitDecoder( void ); // reset()  Ipp32s sbrdecReset( sSbrBlock* pSbr ); // get_frame()Ipp32s sbrGetFrame(Ipp32s *pSrc, Ipp32s *pDst,                   sSbrBlock * pSbr, sSbrDecFilter* sbr_filter,                   Ipp32s ch, Ipp32s decode_mode,                   Ipp32s dwnsmpl_mode, Ipp8u* pWorkBuffer, int* scaleFactor ); // free()  Ipp32s sbrdecFreeFilter( sSbrDecFilter* pDC );  Ipp32s sbrFreeDecoder(sSbrBlock * pDst);/* end */#ifdef  __cplusplus}#endif#endif             /* __SBRDEC_API_INT_H__ *//* EOF */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -