-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampling_F.h
More file actions
39 lines (23 loc) · 952 Bytes
/
sampling_F.h
File metadata and controls
39 lines (23 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "base.h"
#ifdef __cplusplus
namespace fastdsp {
namespace sampling{
#endif
/*! @brief Resampling signal by poly a0 + a1 * x
*/
EXTERN void sampling_resample_poly1_F(float32 *ov, float32 *iv, count_t n_out, count_t n_in);
/*! @brief Resampling signal by poly a0 + a1 * x + a2 * x^2 + a3 * x^3
* @warning input and output vector pointers must be not equal! Maybe in latest versions it fixed :)
*/
EXTERN void sampling_resample_poly3_F(float32 *ov, float32 *iv, count_t n_out, count_t n_in);
/*! @brief Signal decimation. Calc ov[i] = iv[i*factor]
*/
EXTERN void sampling_decimate_F(float32 *ov, float32 *iv, count_t n, count_t factor);
/*! @brief Signal oversample. Calc ov[i] = sum(iv[i*factor] + iv[i*factor + 1] + ... + iv[(i+1)*factor - 1])
*/
EXTERN void sampling_oversample_F(float32 *ov, float32 *iv, count_t n, count_t factor);
#ifdef __cplusplus
}; //namespace sampling
}; //namespace fastdsp
#endif