32 # define sample_type int32_t
34 # define sample_type int16_t
38 # define FSUF AV_JOIN(SAMPLE_SIZE, p)
39 # define sample sample_type *
41 # define S(s, c, i) (s[c][i])
43 # define FSUF SAMPLE_SIZE
44 # define sample sample_type
46 # define S(s, c, i) (*s++)
49 #define FUNC(n) AV_JOIN(n ## _, FSUF)
52 int channels,
int len,
int shift)
57 for (j = 0; j <
len; j++)
58 for (i = 0; i < channels; i++)
59 S(samples, i, j) = in[i][j] << shift;
63 int channels,
int len,
int shift)
68 for (i = 0; i <
len; i++) {
71 S(samples, 0, i) = a << shift;
72 S(samples, 1, i) = (a -
b) << shift;
77 int channels,
int len,
int shift)
82 for (i = 0; i <
len; i++) {
85 S(samples, 0, i) = (a +
b) << shift;
86 S(samples, 1, i) = b << shift;
91 int channels,
int len,
int shift)
96 for (i = 0; i <
len; i++) {
100 S(samples, 0, i) = (a +
b) << shift;
101 S(samples, 1, i) = a << shift;