29 #define MAX_CHANNELS 2
31 #define randomize_buffers() \
34 for (i = 0; i < BUF_SIZE*MAX_CHANNELS; i++) { \
35 int32_t r = sign_extend(rnd(), 24); \
51 int len = (
rnd() & 0xFF) + 1;
59 if (memcmp(ref[0],
new[0], len *
sizeof(
int32_t)) ||
60 memcmp(ref[1],
new[1], len *
sizeof(
int32_t)))
65 report(
"decorrelate_stereo");
68 #undef randomize_buffers
69 #define randomize_buffers() \
72 for (i = 0; i < BUF_SIZE; i++) { \
73 for (j = 0; j < ch; j++) { \
74 int32_t r = sign_extend(rnd(), 24); \
93 static const char *
const channels[2] = {
"mono",
"stereo" };
97 for (ch = 1; ch <= 2; ch++) {
99 int len = (
rnd() & 0xFF) + 1;
105 if ( memcmp(ref[0],
new[0], len *
sizeof(
int32_t)) ||
106 (ch == 2 && memcmp(ref[1],
new[1], len *
sizeof(
int32_t))))
112 report(
"append_extra_bits");
static int shift(int a, int b)
void checkasm_check_alacdsp(void)
#define declare_func(ret,...)
static void check_decorrelate_stereo(void)
common internal API header
static void check_append_extra_bits(void)
#define randomize_buffers()
#define check_func(func,...)
void(* append_extra_bits[2])(int32_t *buffer[2], int32_t *extra_bits_buffer[2], int extra_bits, int channels, int nb_samples)
static int weight(int i, int blen, int offset)
common internal and external API header
static int ref[MAX_W *MAX_W]
void(* decorrelate_stereo)(int32_t *buffer[2], int nb_samples, int decorr_shift, int decorr_left_weight)
#define LOCAL_ALIGNED_16(t, v,...)
av_cold void ff_alacdsp_init(ALACDSPContext *c)