FFmpeg
Macros | Functions
alacdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/alacdsp.h"
#include "libavcodec/mathops.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define BUF_SIZE   256
 
#define MAX_CHANNELS   2
 
#define randomize_buffers()
 
#define randomize_buffers()
 

Functions

static void check_decorrelate_stereo (void)
 
static void check_append_extra_bits (void)
 
void checkasm_check_alacdsp (void)
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   256

Definition at line 29 of file alacdsp.c.

◆ MAX_CHANNELS

#define MAX_CHANNELS   2

Definition at line 30 of file alacdsp.c.

◆ randomize_buffers [1/2]

#define randomize_buffers ( )
Value:
do { \
int i; \
for (i = 0; i < BUF_SIZE*MAX_CHANNELS; i++) { \
int32_t r = sign_extend(rnd(), 24); \
ref_buf[i] = r; \
new_buf[i] = r; \
} \
} while (0)

Definition at line 70 of file alacdsp.c.

◆ randomize_buffers [2/2]

#define randomize_buffers ( )
Value:
do { \
int i, j; \
for (i = 0; i < BUF_SIZE; i++) { \
for (j = 0; j < ch; j++) { \
int32_t r = sign_extend(rnd(), 24); \
ref[j][i] = r; \
new[j][i] = r; \
r = rnd() & 0xFF; \
ref_ebb[j][i] = r; \
new_ebb[j][i] = r; \
} \
} \
} while (0)

Definition at line 70 of file alacdsp.c.

Function Documentation

◆ check_decorrelate_stereo()

static void check_decorrelate_stereo ( void  )
static

Definition at line 42 of file alacdsp.c.

Referenced by checkasm_check_alacdsp().

◆ check_append_extra_bits()

static void check_append_extra_bits ( void  )
static

Definition at line 85 of file alacdsp.c.

Referenced by checkasm_check_alacdsp().

◆ checkasm_check_alacdsp()

void checkasm_check_alacdsp ( void  )

Definition at line 116 of file alacdsp.c.

MAX_CHANNELS
#define MAX_CHANNELS
Definition: alacdsp.c:30
r
const char * r
Definition: vf_curves.c:116
rnd
#define rnd()
Definition: checkasm.h:115
BUF_SIZE
#define BUF_SIZE
Definition: alacdsp.c:29
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:269
sign_extend
static av_const int sign_extend(int val, unsigned bits)
Definition: mathops.h:132