www.pudn.com > w_ipp-sample-media_p_5.0.017.zip > cipic_hrtf_parser.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 __CIPIC_HRTF_PARSER_H__ 
#define __CIPIC_HRTF_PARSER_H__ 
 
#include "umc_cyclic_buffer.h" 
#include "umc_structures.h" 
#include "umc_base_codec.h" 
#include "umc_file_reader.h" 
#include "base_hrtf_parser.h" 
#include "ipps.h" 
 
namespace UMC { 
  class   cipic_hrtf_parser:public base_hrtf_parser { 
    DYNAMIC_CAST_DECL(cipic_hrtf_parser, base_hrtf_parser) 
 
  public: 
 
    cipic_hrtf_parser(void); 
           ~cipic_hrtf_parser(void); 
 
    Status  Init(vm_char * NameDataBase); 
 
    int     GetFilterFromDataBase(float *filter_left, float *filter_right, 
                                  float azimuth, float elevation); 
 
    Status  Close(); 
 
// Status Reset(); 
 
    Status  GetInfo(BaseCodecParams * info); 
 
// Status SetParams(BaseCodecParams* params); 
 
  protected: 
 
    struct sHRIR { 
      double *hrir_left; 
      double *hrir_right; 
      double *itd; 
    } HRIR_DataBase; 
 
    FileReaderParams *m_DataBaseFileReaderParams; 
    FileReader *m_DataBaseFileReader; 
 
    Status  DataBaseStatus; 
    Status  Parser(FileReader * hrtf_base, sHRIR * thrir); 
  }; 
} 
#endif             // __CIPIC_HRTF_PARSER_H__ 
/* EOF */