dts.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * dts.h
  3. * Copyright (C) 2004 Gildas Bazin <gbazin@videolan.org>
  4. *
  5. * This file is part of libdca, a free DTS Coherent Acoustics stream decoder.
  6. * See http://www.videolan.org/developers/libdca.html for updates.
  7. *
  8. * libdca 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 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * libdca 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 this program; if not, write to the
  20. * Free Software Foundation, Inc.,
  21. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  22. */
  23. #ifndef LIBDCA_COMPAT_H
  24. # define LIBDCA_COMPAT_H 1
  25. # include <dca.h>
  26. typedef struct dca_state_s dts_state_t;
  27. # define DTS_MONO DCA_MONO
  28. # define DTS_CHANNEL DCA_CHANNEL
  29. # define DTS_STEREO DCA_STEREO
  30. # define DTS_STEREO_SUMDIFF DCA_STEREO_SUMDIFF
  31. # define DTS_STEREO_TOTAL DCA_STEREO_TOTAL
  32. # define DTS_3F DCA_3F
  33. # define DTS_2F1R DCA_2F1R
  34. # define DTS_3F1R DCA_3F1R
  35. # define DTS_2F2R DCA_2F2R
  36. # define DTS_3F2R DCA_3F2R
  37. # define DTS_4F2R DCA_4F2R
  38. # define DTS_DOLBY DCA_DOLBY
  39. # define DTS_CHANNEL_MAX DCA_CHANNEL_MAX
  40. # define DTS_CHANNEL_BITS DCA_CHANNEL_BITS
  41. # define DTS_CHANNEL_MASK DCA_CHANNEL_MASK
  42. # define DTS_LFE DCA_LFE
  43. # define DTS_ADJUST_LEVEL DCA_ADJUST_LEVEL
  44. # define dts_init dca_init
  45. # define dts_syncinfo dca_syncinfo
  46. # define dts_frame dca_frame
  47. # define dts_dynrng dca_dynrng
  48. # define dts_blocks_num dca_blocks_num
  49. # define dts_block dca_block
  50. # define dts_samples dca_samples
  51. # define dts_free dca_free
  52. #endif