27 #define SAMPLE_SIZE 16
37 #define SAMPLE_SIZE 32
46 int pred_order,
int qlevel,
int len)
50 for (
i = pred_order;
i <
len - 1;
i += 2, decoded += 2) {
54 for (j = 1; j < pred_order; j++) {
61 d = decoded[j] += (
SUINT)(s0 >> qlevel);
63 decoded[j + 1] += (
SUINT)(s1 >> qlevel);
67 for (j = 0; j < pred_order; j++)
68 sum += coeffs[j] * (
SUINT)decoded[j];
69 decoded[j] = decoded[j] + (unsigned)(sum >> qlevel);
74 int pred_order,
int qlevel,
int len)
78 for (
i = pred_order;
i <
len;
i++, decoded++) {
80 for (j = 0; j < pred_order; j++)
81 sum += (
int64_t)coeffs[j] * decoded[j];
82 decoded[j] += sum >> qlevel;
88 const int coeffs[32],
int pred_order,
93 for (
i = pred_order;
i <
len;
i++, decoded++) {
95 for (j = 0; j < pred_order; j++)
96 sum += (
int64_t)coeffs[j] * (uint64_t)decoded[j];
97 decoded[j] = residual[
i] + (sum >> qlevel);
103 for (
int i = 0;
i <
len;
i++)
104 decoded[
i] = (
unsigned)decoded[
i] << wasted;
110 for (
int i = 0;
i <
len;
i++)
111 decoded[
i] = (uint64_t)residual[
i] << wasted;
125 c->decorrelate[0] = flac_decorrelate_indep_c_32;
126 c->decorrelate[1] = flac_decorrelate_ls_c_32;
127 c->decorrelate[2] = flac_decorrelate_rs_c_32;
128 c->decorrelate[3] = flac_decorrelate_ms_c_32;
132 c->decorrelate[0] = flac_decorrelate_indep_c_32p;
133 c->decorrelate[1] = flac_decorrelate_ls_c_32p;
134 c->decorrelate[2] = flac_decorrelate_rs_c_32p;
135 c->decorrelate[3] = flac_decorrelate_ms_c_32p;
139 c->decorrelate[0] = flac_decorrelate_indep_c_16;
140 c->decorrelate[1] = flac_decorrelate_ls_c_16;
141 c->decorrelate[2] = flac_decorrelate_rs_c_16;
142 c->decorrelate[3] = flac_decorrelate_ms_c_16;
146 c->decorrelate[0] = flac_decorrelate_indep_c_16p;
147 c->decorrelate[1] = flac_decorrelate_ls_c_16p;
148 c->decorrelate[2] = flac_decorrelate_rs_c_16p;
149 c->decorrelate[3] = flac_decorrelate_ms_c_16p;