30 #define MAX_CHANNELS 8
32 #define randomize_buffers() \
35 for (i = 0; i < BUF_SIZE; i += 4) { \
36 for (j = 0; j < channels; j++) { \
37 uint32_t r = rnd() & (1 << (bits - 2)) - 1; \
38 AV_WN32A(ref_src[j] + i, r); \
39 AV_WN32A(new_src[j] + i, r); \
44 static void check_decorrelate(uint8_t **ref_dst, uint8_t **ref_src, uint8_t **new_dst, uint8_t **new_src,
59 int qlevel =
rnd() % 16;
66 for (
int i = 0;
i < 32;
i++)
89 static const char *
const names[3] = {
"ls",
"rs",
"ms" };
97 static const signed char pred_orders[] = { 13, 16, 29, 32 };
101 for (
i = 0;
i < 2;
i++) {
103 for (j = 0; j < 3; j++)
104 if (
check_func(
h.decorrelate[j + 1],
"flac_decorrelate_%s_%d", names[j], fmts[
i].bits))
108 if (
check_func(
h.decorrelate[0],
"flac_decorrelate_indep%d_%d", j, fmts[
i].bits))
116 if (
check_func(
h.lpc16,
"flac_lpc_16_%d", pred_orders[
i]))
119 if (
check_func(
h.lpc32,
"flac_lpc_32_%d", pred_orders[
i]))