FFmpeg
Loading...
Searching...
No Matches
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)
int32_t
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define f(width, name)
Definition cbs_vp8.c:236
#define rnd
Definition checkasm.h:136
int len

Definition at line 26 of file lpc.c.

Referenced by test_window().

◆ 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.