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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/* Copyright 2012 Dietrich Epp <depp@zdome.net> */
#pragma once
#include "defs.h"
#include "filter.h"
/*
Resampling function naming convention:
lfr_resample_<atype><nchan><ftype>_<feature>
atype: audio data type, s16 or f32
nchan: number of channels, n1 or n2
ftype: filter coefficient type, s16 or f32
feature: CPU feature set required
*/
/* ======================================== */
void lfr_resample_s16n1s16_scalar(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n1s16_sse2(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n1s16_altivec(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
/* ======================================== */
void lfr_resample_s16n2s16_scalar(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n2s16_sse2(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n2s16_altivec(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
/* ======================================== */
void lfr_resample_s16n1f32_scalar(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n1f32_sse2(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n1f32_altivec(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
/* ======================================== */
void lfr_resample_s16n2f32_scalar( lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n2f32_sse2(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
void lfr_resample_s16n2f32_altivec(
lfr_fixed_t *pos, lfr_fixed_t inv_ratio, unsigned *dither,
void *out, int outlen, const void *in, int inlen,
const lfr_filter *filter);
|