gstfft.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* GStreamer
  2. * Copyright (C) <2007> Sebastian Dröge <[email protected]>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. */
  19. #include <glib.h>
  20. #include <math.h>
  21. #ifndef __GST_FFT_H__
  22. #define __GST_FFT_H__
  23. G_BEGIN_DECLS
  24. /**
  25. * GstFFTWindow:
  26. * @GST_FFT_WINDOW_RECTANGULAR: Rectangular window
  27. * @GST_FFT_WINDOW_HAMMING: Hamming window
  28. * @GST_FFT_WINDOW_HANN: Hann (sometimes also called Hanning) window
  29. * @GST_FFT_WINDOW_BARTLETT: Bartlett window
  30. * @GST_FFT_WINDOW_BLACKMAN: Blackman window
  31. *
  32. * The various window functions available.
  33. */
  34. typedef enum
  35. {
  36. GST_FFT_WINDOW_RECTANGULAR,
  37. GST_FFT_WINDOW_HAMMING,
  38. GST_FFT_WINDOW_HANN,
  39. GST_FFT_WINDOW_BARTLETT,
  40. GST_FFT_WINDOW_BLACKMAN
  41. } GstFFTWindow;
  42. /* Functions */
  43. gint gst_fft_next_fast_length (gint n) G_GNUC_CONST;
  44. G_END_DECLS
  45. #endif /* __GST_FFT_H__ */