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.

53 lines
2.0KB

  1. /*
  2. * Copyright (c) 2012 Mans Rullgard
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #ifndef AVCODEC_SBRDSP_H
  21. #define AVCODEC_SBRDSP_H
  22. #include <stdint.h>
  23. typedef struct SBRDSPContext {
  24. void (*sum64x5)(float *z);
  25. float (*sum_square)(float (*x)[2], int n);
  26. void (*neg_odd_64)(float *x);
  27. void (*qmf_pre_shuffle)(float *z);
  28. void (*qmf_post_shuffle)(float W[32][2], const float *z);
  29. void (*qmf_deint_neg)(float *v, const float *src);
  30. void (*qmf_deint_bfly)(float *v, const float *src0, const float *src1);
  31. void (*autocorrelate)(const float x[40][2], float phi[3][2][2]);
  32. void (*hf_gen)(float (*X_high)[2], const float (*X_low)[2],
  33. const float alpha0[2], const float alpha1[2],
  34. float bw, int start, int end);
  35. void (*hf_g_filt)(float (*Y)[2], const float (*X_high)[40][2],
  36. const float *g_filt, int m_max, intptr_t ixh);
  37. void (*hf_apply_noise[4])(float (*Y)[2], const float *s_m,
  38. const float *q_filt, int noise,
  39. int kx, int m_max);
  40. } SBRDSPContext;
  41. extern const float ff_sbr_noise_table[][2];
  42. void ff_sbrdsp_init(SBRDSPContext *s);
  43. void ff_sbrdsp_init_arm(SBRDSPContext *s);
  44. void ff_sbrdsp_init_x86(SBRDSPContext *s);
  45. void ff_sbrdsp_init_mips(SBRDSPContext *s);
  46. #endif /* AVCODEC_SBRDSP_H */