sbcdsp_data.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Bluetooth low-complexity, subband codec (SBC)
  3. *
  4. * Copyright (C) 2017 Aurelien Jacobs <aurel@gnuage.org>
  5. * Copyright (C) 2008-2010 Nokia Corporation
  6. * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
  7. * Copyright (C) 2004-2005 Henryk Ploetz <henryk@ploetzli.ch>
  8. * Copyright (C) 2005-2006 Brad Midgley <bmidgley@xmission.com>
  9. *
  10. * This file is part of FFmpeg.
  11. *
  12. * FFmpeg is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU Lesser General Public
  14. * License as published by the Free Software Foundation; either
  15. * version 2.1 of the License, or (at your option) any later version.
  16. *
  17. * FFmpeg is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. * Lesser General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Lesser General Public
  23. * License along with FFmpeg; if not, write to the Free Software
  24. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  25. */
  26. /**
  27. * @file
  28. * miscellaneous SBC tables
  29. */
  30. #ifndef AVCODEC_SBCDSP_DATA_H
  31. #define AVCODEC_SBCDSP_DATA_H
  32. #include "sbc.h"
  33. #define SBC_PROTO_FIXED_SCALE 16
  34. #define SBC_COS_TABLE_FIXED_SCALE 15
  35. /*
  36. * Constant tables for the use in SIMD optimized analysis filters
  37. * Each table consists of two parts:
  38. * 1. reordered "proto" table
  39. * 2. reordered "cos" table
  40. *
  41. * Due to non-symmetrical reordering, separate tables for "even"
  42. * and "odd" cases are needed
  43. */
  44. extern const int16_t ff_sbcdsp_analysis_consts_fixed4_simd_even[];
  45. extern const int16_t ff_sbcdsp_analysis_consts_fixed4_simd_odd[];
  46. extern const int16_t ff_sbcdsp_analysis_consts_fixed8_simd_even[];
  47. extern const int16_t ff_sbcdsp_analysis_consts_fixed8_simd_odd[];
  48. #endif /* AVCODEC_SBCDSP_DATA_H */