31 #define MAX_CHANNELS 8 
   33 #define randomize_buffers()                                 \ 
   36         for (i = 0; i < BUF_SIZE; i += 4) {                 \ 
   37             for (j = 0; j < channels; j++) {                \ 
   38                 uint32_t r = rnd() & (1 << (bits - 2)) - 1; \ 
   39                 AV_WN32A(ref_src[j] + i, r);                \ 
   40                 AV_WN32A(new_src[j] + i, r);                \ 
   45 static void check_decorrelate(uint8_t **ref_dst, uint8_t **ref_src, uint8_t **new_dst, uint8_t **new_src,
 
   60     int qlevel = 
rnd() % 16;
 
   61     int coeff_prec = (
rnd() % 15) + 1;
 
   72     for (
int i = 0; 
i < 32; 
i++)
 
   88     int qlevel = 
rnd() % 16;
 
   89     int coeff_prec = (
rnd() % 15) + 1;
 
   98     for (
int i = 0; 
i < 32; 
i++)
 
  117     int wasted = 
rnd() % 32;
 
  138     int wasted = 
rnd() % 33;
 
  146         residuals[
i] = 
rnd();
 
  165     static const char * 
const names[3] = { 
"ls", 
"rs", 
"ms" };
 
  166     static const struct {
 
  173     static const signed char pred_orders[] = { 13, 16, 29, 32 };
 
  177     for (
i = 0; 
i < 2; 
i++) {
 
  179         for (j = 0; j < 3; j++)
 
  180             if (
check_func(
h.decorrelate[j + 1], 
"flac_decorrelate_%s_%d", names[j], fmts[
i].bits))
 
  184             if (
check_func(
h.decorrelate[0], 
"flac_decorrelate_indep%d_%d", j, fmts[
i].bits))
 
  192         if (
check_func(
h.lpc16, 
"flac_lpc_16_%d", pred_orders[
i]))
 
  195         if (
check_func(
h.lpc32, 
"flac_lpc_32_%d", pred_orders[
i]))
 
  198         if (
check_func(
h.lpc33, 
"flac_lpc_33_%d", pred_orders[
i]))