Home
last modified time | relevance | path

Searched refs:sample_t (Results 1 – 5 of 5) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/sox/git/src/
H A Drate_poly_fir.h39 sample_t const * input = stage_read_p(p); in FUNCTION()
41 sample_t * output = fifo_reserve(output_fifo, max_num_out); in FUNCTION()
47 sample_t const * in = input + (int)at; in FUNCTION()
51 sample_t x = fraction * (1 << PHASE_BITS) - phase; in FUNCTION()
53 sample_t sum = 0; in FUNCTION()
64 sample_t const * in = input + p->at.parts.integer; in FUNCTION()
68 sample_t x = (sample_t) (fraction << PHASE_BITS) * (1 / MULT32); in FUNCTION()
70 sample_t sum = 0; in FUNCTION()
H A Drate.c38 #define sample_t float
42 #define sample_t double macro
55 static sample_t * prepare_coefs(raw_coef_t const * coefs, int num_coefs, in prepare_coefs()
59 sample_t * result = malloc(length * (interp_order + 1) * sizeof(*result)); in prepare_coefs()
86 sample_t * poly_fir_coefs;
123 #define stage_read_p(s) ((sample_t *)fifo_read_ptr(&(s)->fifo) + (s)->pre)
128 sample_t const * input = stage_read_p(p); in cubic_stage_fn()
129 sample_t * output = fifo_reserve(output_fifo, max_num_out); in cubic_stage_fn()
132 sample_t const * s = input + p->at.parts.integer; in cubic_stage_fn()
133 sample_t x = p->at.parts.fraction * (1 / MULT32); in cubic_stage_fn()
[all …]
H A Drate_poly_fir0.h25 sample_t const * input = stage_read_p(p); in FUNCTION()
27 sample_t * output = fifo_reserve(output_fifo, max_num_out); in FUNCTION()
32 sample_t const * at = input + divided.quot; in FUNCTION()
33 sample_t sum = 0; in FUNCTION()
H A Drate_filters.h18 static const sample_t half_fir_coefs_8[] = {
29 static const sample_t half_fir_coefs_9[] = {
40 static const sample_t half_fir_coefs_10[] = {
52 static const sample_t half_fir_coefs_11[] = {
64 static const sample_t half_fir_coefs_12[] = {
76 static const sample_t half_fir_coefs_13[] = {
H A Drate_half_fir.h24 sample_t const * input = stage_read_p(p); in FUNCTION()
26 sample_t * output = fifo_reserve(output_fifo, num_out); in FUNCTION()
30 sample_t sum = input[0] * .5; in FUNCTION()