decode.h
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:1k
源码类别:

DVD

开发平台:

Unix_Linux

  1. /* 
  2.  *  decode.h
  3.  *
  4.  * Copyright (C) Aaron Holtzman - May 1999
  5.  *
  6.  *  This file is part of ac3dec, a free Dolby AC-3 stream decoder.
  7.  *
  8.  *  ac3dec is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2, or (at your option)
  11.  *  any later version.
  12.  *   
  13.  *  ac3dec is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *   
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with GNU Make; see the file COPYING.  If not, write to
  20.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  21.  *
  22.  */
  23. #ifdef DO_NIST
  24. #include <athread.hh>
  25. #include <fstream.h>
  26. #include <iostream.h>
  27. #include <sys/sem.h>
  28. #include <error.hh>
  29. #include <debug.hh>
  30. #include <util.hh>
  31. #include <sync.hh>
  32. #include <mpeg2const.hh>
  33. #include <mpeg2buff.hh>
  34. #include <mpeg2audio.hh>
  35. extern Synchronization *s;
  36. extern AudioStream *inputstream;
  37. #endif
  38. typedef struct stream_coeffs_s
  39. {
  40. float fbw[5][256];
  41. float lfe[256];
  42. } stream_coeffs_t;
  43. typedef struct stream_samples_s
  44. {
  45. float channel[6][512];
  46. } stream_samples_t;
  47. #define DECODE_MAGIC_NUMBER 0xdeadbeef
  48. void decode_sanity_check_init(void);
  49. void decode_sanity_check(void);