Go to the documentation of this file.
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)
57 for (j = 0; j <
len; j++)
68 for (
i = 0;
i <
len;
i++) {
69 unsigned a = in[0][
i];
70 unsigned b = in[1][
i];
82 for (
i = 0;
i <
len;
i++) {
83 unsigned a = in[0][
i];
84 unsigned b = in[1][
i];
96 for (
i = 0;
i <
len;
i++) {
97 unsigned a = in[0][
i];
static void FUNC() flac_decorrelate_rs_c(uint8_t **out, int32_t **in, int channels, int len, int shift)
static void FUNC() flac_decorrelate_ms_c(uint8_t **out, int32_t **in, int channels, int len, int shift)
static void FUNC() flac_decorrelate_ls_c(uint8_t **out, int32_t **in, int channels, int len, int shift)
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
#define i(width, name, range_min, range_max)
Filter the word “frame” indicates either a video frame or a group of audio samples
static int shift(int a, int b)
static void FUNC() flac_decorrelate_indep_c(uint8_t **out, int32_t **in, int channels, int len, int shift)