You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.7KB

  1. /*
  2. * AAC Spectral Band Replication function declarations
  3. * Copyright (c) 2008-2009 Robert Swain ( rob opendot cl )
  4. * Copyright (c) 2010 Alex Converse <alex.converse@gmail.com>
  5. *
  6. * This file is part of Libav.
  7. *
  8. * Libav is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * Libav 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 GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with Libav; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. /**
  23. * @file
  24. * AAC Spectral Band Replication function declarations
  25. * @author Robert Swain ( rob opendot cl )
  26. */
  27. #ifndef AVCODEC_AACSBR_H
  28. #define AVCODEC_AACSBR_H
  29. #include "get_bits.h"
  30. #include "aac.h"
  31. #include "sbr.h"
  32. /** Initialize SBR. */
  33. void ff_aac_sbr_init(void);
  34. /** Initialize one SBR context. */
  35. void ff_aac_sbr_ctx_init(AACContext *ac, SpectralBandReplication *sbr);
  36. /** Close one SBR context. */
  37. void ff_aac_sbr_ctx_close(SpectralBandReplication *sbr);
  38. /** Decode one SBR element. */
  39. int ff_decode_sbr_extension(AACContext *ac, SpectralBandReplication *sbr,
  40. GetBitContext *gb, int crc, int cnt, int id_aac);
  41. /** Apply one SBR element to one AAC element. */
  42. void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac,
  43. float* L, float *R);
  44. #endif /* AVCODEC_AACSBR_H */