tf_main.h
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:7k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /************************* MPEG-2 NBC Audio Decoder **************************
  2.  *                                                                           *
  3.  "This software module was originally developed by 
  4.  Fraunhofer Gesellschaft IIS / University of Erlangen (UER)
  5.  and edited by
  6.  Takashi Koike (Sony Corporation)
  7.  in the course of 
  8.  development of the MPEG-2 NBC/MPEG-4 Audio standard ISO/IEC 13818-7, 
  9.  14496-1,2 and 3. This software module is an implementation of a part of one or more 
  10.  MPEG-2 NBC/MPEG-4 Audio tools as specified by the MPEG-2 NBC/MPEG-4 
  11.  Audio standard. ISO/IEC  gives users of the MPEG-2 NBC/MPEG-4 Audio 
  12.  standards free license to this software module or modifications thereof for use in 
  13.  hardware or software products claiming conformance to the MPEG-2 NBC/MPEG-4
  14.  Audio  standards. Those intending to use this software module in hardware or 
  15.  software products are advised that this use may infringe existing patents. 
  16.  The original developer of this software module and his/her company, the subsequent 
  17.  editors and their companies, and ISO/IEC have no liability for use of this software 
  18.  module or modifications thereof in an implementation. Copyright is not released for 
  19.  non MPEG-2 NBC/MPEG-4 Audio conforming products.The original developer
  20.  retains full right to use the code for his/her  own purpose, assign or donate the 
  21.  code to a third party and to inhibit third party from using the code for non 
  22.  MPEG-2 NBC/MPEG-4 Audio conforming products. This copyright notice must
  23.  be included in all copies or derivative works." 
  24.  Copyright(c)1996.
  25.  *                                                                           *
  26.  ****************************************************************************/
  27. /* CREATED BY :  Bernhard Grill -- June-96  */
  28. /* 28-Aug-1996  NI: added "NO_SYNCWORD" to enum TRANSPORT_STREAM */
  29. #ifndef _TF_MAIN_H_INCLUDED
  30. #define _TF_MAIN_H_INCLUDED
  31. #include "nttNew.h"
  32. void buffer2freq( double           p_in_data[],      /* Input: Time signal              */   
  33.                   double           p_out_mdct[],     /* Output: MDCT cofficients        */
  34.                   double           p_overlap[],
  35.                   WINDOW_SEQUENCE  windowSequence,
  36.                   WINDOW_SHAPE     wfun_select,      /* offers the possibility to select different window functions */
  37.                   WINDOW_SHAPE     wfun_select_prev,
  38.                   int              nlong,            /* shift length for long windows   */
  39.                   int              nmed,             /* shift length for medium windows */
  40.                   int              nshort,           /* shift length for short windows  */
  41.                   Mdct_in          overlap_select,   /* select mdct input *TK*          */
  42.                   int              num_short_win);   /* number of short windows to      
  43.                                                         transform                       */
  44. void freq2buffer( double           p_in_data[],      /* Input: MDCT coefficients                */
  45.                   double           p_out_data[],     /* Output:time domain reconstructed signal */
  46.                   double           p_overlap[],  
  47.                   WINDOW_SEQUENCE  windowSequence,
  48.                   int              nlong,            /* shift length for long windows   */
  49.                   int              nmed,             /* shift length for medium windows */
  50.                   int              nshort,           /* shift length for short windows  */
  51.                   WINDOW_SHAPE     wfun_select,      /* offers the possibility to select different window functions */
  52.                   WINDOW_SHAPE     wfun_select_prev, /* YB : 971113 */
  53.                   Imdct_out        overlap_select,   /* select imdct output *TK*        */
  54.                   int              num_short_win );  /* number of short windows to  transform */
  55. void mdct( double in_data[], double out_data[], int len);
  56. void imdct(double in_data[], double out_data[], int len);
  57. void fft( double in[], double out[], int len );
  58. void aacScaleableDecodeInit( void );
  59. void aacScaleableDecode ( BsBitStream*       fixed_stream,
  60.                           BsBitStream*       gc_WRstream[],
  61.                           WINDOW_SEQUENCE        windowSequence[MAX_TIME_CHANNELS],
  62.                           int*               decodedBits,
  63.                           double*            spectral_line_vector[MAX_TF_LAYER][MAX_TIME_CHANNELS],
  64.                           int                block_size_samples,
  65.                           int                output_select,
  66.                           Info**             sfbInfo,
  67.                           int                numChannels,
  68.                           long int           samplRateFw,
  69.                           int                lopLong,
  70.                           int                lopShort,
  71.                           float              normBw,
  72.                           WINDOW_SHAPE*      windowShape,
  73.                           QC_MOD_SELECT      qc_select,
  74.                           HANDLE_RESILIENCE  hResilience,
  75.                           HANDLE_BUFFER      hVm,
  76.                           HANDLE_BUFFER      hHcrSpecData,
  77.                           HANDLE_HCR         hHcrInfo,
  78.                           FRAME_DATA*        fd,
  79.                           HANDLE_EP_INFO     hEPInfo,
  80.                           HANDLE_CONCEALMENT hConcealment );
  81. void aacScaleableFlexMuxDecode ( BsBitStream*       fixed_stream,
  82.                                  BsBitStream*       gc_WRstream[],
  83.                                  WINDOW_SEQUENCE        windowSequence[MAX_TIME_CHANNELS],
  84.                                  int*               flexMuxBits,
  85.                                  double*            spectral_line_vector[MAX_TF_LAYER][MAX_TIME_CHANNELS],
  86.                                  int                output_select,
  87.                                  Info**             sfbInfo,
  88.                                  int                numChannels,
  89.                                  int                lopLong,
  90.                                  int                lopShort,
  91.                                  float              normBw,
  92.                                  WINDOW_SHAPE*      windowShape,
  93.                                  QC_MOD_SELECT      qc_select,
  94.                                  HANDLE_RESILIENCE  hResilience,
  95.                                  HANDLE_BUFFER      hVm,
  96.                                  HANDLE_BUFFER      hHcrSpecData,
  97.                                  HANDLE_HCR         hHcrInfo,
  98.                                  FRAME_DATA*        fd,
  99.                                  TF_DATA*           tfData,
  100.                                  ntt_DATA*          nttData,
  101.                                  HANDLE_EP_INFO     hEPInfo,
  102.                                  HANDLE_CONCEALMENT hConcealment,
  103.  NOK_LT_PRED_STATUS** nok_lt_status,
  104.  int                med_win_in_long,
  105.  int                short_win_in_long,
  106.  PRED_TYPE          pred_type);
  107. void    printOpModeInfo(FILE * helpStream);
  108. #endif  /* #ifndef _TF_MAIN_H_INCLUDED */