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.4KB

  1. /*
  2. * copyright (c) 2008 Michael Niedermayer <michaelni@gmx.at>
  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_SYNTH_FILTER_H
  21. #define AVCODEC_SYNTH_FILTER_H
  22. #include "fft.h"
  23. #include "dcadct.h"
  24. typedef struct SynthFilterContext {
  25. void (*synth_filter_float)(FFTContext *imdct,
  26. float *synth_buf_ptr, int *synth_buf_offset,
  27. float synth_buf2[32], const float window[512],
  28. float out[32], const float in[32],
  29. float scale);
  30. void (*synth_filter_float_64)(FFTContext *imdct,
  31. float *synth_buf_ptr, int *synth_buf_offset,
  32. float synth_buf2[64], const float window[1024],
  33. float out[64], const float in[64], float scale);
  34. void (*synth_filter_fixed)(DCADCTContext *imdct,
  35. int32_t *synth_buf_ptr, int *synth_buf_offset,
  36. int32_t synth_buf2[32], const int32_t window[512],
  37. int32_t out[32], const int32_t in[32]);
  38. void (*synth_filter_fixed_64)(DCADCTContext *imdct,
  39. int32_t *synth_buf_ptr, int *synth_buf_offset,
  40. int32_t synth_buf2[64], const int32_t window[1024],
  41. int32_t out[64], const int32_t in[64]);
  42. } SynthFilterContext;
  43. void ff_synth_filter_init(SynthFilterContext *c);
  44. void ff_synth_filter_init_aarch64(SynthFilterContext *c);
  45. void ff_synth_filter_init_arm(SynthFilterContext *c);
  46. void ff_synth_filter_init_x86(SynthFilterContext *c);
  47. #endif /* AVCODEC_SYNTH_FILTER_H */