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;
94 c->decorrelate[0] = flac_decorrelate_indep_c_32;
95 c->decorrelate[1] = flac_decorrelate_ls_c_32;
96 c->decorrelate[2] = flac_decorrelate_rs_c_32;
97 c->decorrelate[3] = flac_decorrelate_ms_c_32;
101 c->decorrelate[0] = flac_decorrelate_indep_c_32p;
102 c->decorrelate[1] = flac_decorrelate_ls_c_32p;
103 c->decorrelate[2] = flac_decorrelate_rs_c_32p;
104 c->decorrelate[3] = flac_decorrelate_ms_c_32p;
108 c->decorrelate[0] = flac_decorrelate_indep_c_16;
109 c->decorrelate[1] = flac_decorrelate_ls_c_16;
110 c->decorrelate[2] = flac_decorrelate_rs_c_16;
111 c->decorrelate[3] = flac_decorrelate_ms_c_16;
115 c->decorrelate[0] = flac_decorrelate_indep_c_16p;
116 c->decorrelate[1] = flac_decorrelate_ls_c_16p;
117 c->decorrelate[2] = flac_decorrelate_rs_c_16p;
118 c->decorrelate[3] = flac_decorrelate_ms_c_16p;