FFmpeg
Macros | Functions
lpc.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/lpc.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_int32(buf, len)
 
#define EPS   0.005
 

Functions

static void test_window (int len)
 
static void test_compute_autocorr (ptrdiff_t len, int lag)
 
void checkasm_check_lpc (void)
 

Macro Definition Documentation

◆ randomize_int32

#define randomize_int32 (   buf,
  len 
)
Value:
do { \
for (int i = 0; i < len; i++) { \
int32_t f = ((int)(UINT32_MAX >> 17)) - ((int)(rnd() >> 16)); \
buf[i] = f; \
} \
} while (0)

Definition at line 26 of file lpc.c.

◆ EPS

#define EPS   0.005

Definition at line 34 of file lpc.c.

Function Documentation

◆ test_window()

static void test_window ( int  len)
static

Definition at line 36 of file lpc.c.

Referenced by checkasm_check_lpc().

◆ test_compute_autocorr()

static void test_compute_autocorr ( ptrdiff_t  len,
int  lag 
)
static

Definition at line 61 of file lpc.c.

Referenced by checkasm_check_lpc().

◆ checkasm_check_lpc()

void checkasm_check_lpc ( void  )

Definition at line 96 of file lpc.c.

rnd
#define rnd()
Definition: checkasm.h:172
f
f
Definition: af_crystalizer.c:122
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
len
int len
Definition: vorbis_enc_data.h:426
int
int
Definition: ffmpeg_filter.c:424