]> git.sesse.net Git - kdenlive/blob - src/lib/audio/fftCorrelation.h
502b5067c0709b6a7474223ed8d2305c7072e32d
[kdenlive] / src / lib / audio / fftCorrelation.h
1 /*
2 Copyright (C) 2012  Simon A. Eugster (Granjow)  <simon.eu@gmail.com>
3 This file is part of kdenlive. See www.kdenlive.org.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 */
10
11 #ifndef FFTCORRELATION_H
12 #define FFTCORRELATION_H
13
14 #include <inttypes.h>
15
16 class FFTCorrelation
17 {
18 public:
19     static void convolute(const float *left, const int leftSize,
20                           const float *right, const int rightSize,
21                           float **out_convolved, int &out_size);
22
23     static void correlate(const int64_t *left, const int leftSize,
24                           const int64_t *right, const int rightSize,
25                           float **out_correlated, int &out_size);
26 };
27
28 #endif // FFTCORRELATION_H