26 #define SAMPLE_SIZE 16
37 #define SAMPLE_SIZE 32
47 int pred_order,
int qlevel,
int len)
51 for (
i = pred_order;
i <
len - 1;
i += 2, decoded += 2) {
55 for (j = 1; j < pred_order; j++) {
62 d = decoded[j] += (
SUINT)(
s0 >> qlevel);
64 decoded[j + 1] += (
SUINT)(
s1 >> qlevel);
68 for (j = 0; j < pred_order; j++)
69 sum += coeffs[j] * (
SUINT)decoded[j];
70 decoded[j] = decoded[j] + (unsigned)(sum >> qlevel);
75 int pred_order,
int qlevel,
int len)
79 for (
i = pred_order;
i <
len;
i++, decoded++) {
81 for (j = 0; j < pred_order; j++)
82 sum += (int64_t)coeffs[j] * decoded[j];
83 decoded[j] += sum >> qlevel;
93 c->lpc16_encode = flac_lpc_encode_c_16;
94 c->lpc32_encode = flac_lpc_encode_c_32;
98 c->decorrelate[0] = flac_decorrelate_indep_c_32;
99 c->decorrelate[1] = flac_decorrelate_ls_c_32;
100 c->decorrelate[2] = flac_decorrelate_rs_c_32;
101 c->decorrelate[3] = flac_decorrelate_ms_c_32;
105 c->decorrelate[0] = flac_decorrelate_indep_c_32p;
106 c->decorrelate[1] = flac_decorrelate_ls_c_32p;
107 c->decorrelate[2] = flac_decorrelate_rs_c_32p;
108 c->decorrelate[3] = flac_decorrelate_ms_c_32p;
112 c->decorrelate[0] = flac_decorrelate_indep_c_16;
113 c->decorrelate[1] = flac_decorrelate_ls_c_16;
114 c->decorrelate[2] = flac_decorrelate_rs_c_16;
115 c->decorrelate[3] = flac_decorrelate_ms_c_16;
119 c->decorrelate[0] = flac_decorrelate_indep_c_16p;
120 c->decorrelate[1] = flac_decorrelate_ls_c_16p;
121 c->decorrelate[2] = flac_decorrelate_rs_c_16p;
122 c->decorrelate[3] = flac_decorrelate_ms_c_16p;