FFmpeg
Macros | Functions
lls.c File Reference
#include <float.h>
#include "libavutil/lls.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffer(buf)
 

Functions

static void test_update (LLSModel *lls, const double *var)
 
static void test_evaluate (LLSModel *lls, const double *param, int order)
 
void checkasm_check_lls (void)
 

Macro Definition Documentation

◆ randomize_buffer

#define randomize_buffer (   buf)
Value:
do { \
double bmg[2], stddev = 10.0; \
for (size_t i = 0; i < MAX_VARS_ALIGN; i += 2) { \
av_bmg_get(&checkasm_lfg, bmg); \
buf[i] = bmg[0] * stddev; \
buf[i + 1] = bmg[1] * stddev; \
} \
} while(0);

Definition at line 23 of file lls.c.

Function Documentation

◆ test_update()

static void test_update ( LLSModel lls,
const double var 
)
static

Definition at line 34 of file lls.c.

Referenced by checkasm_check_lls().

◆ test_evaluate()

static void test_evaluate ( LLSModel lls,
const double param,
int  order 
)
static

Definition at line 64 of file lls.c.

Referenced by checkasm_check_lls().

◆ checkasm_check_lls()

void checkasm_check_lls ( void  )

Definition at line 84 of file lls.c.

checkasm_lfg
AVLFG checkasm_lfg
Definition: checkasm.c:411
MAX_VARS_ALIGN
#define MAX_VARS_ALIGN
Definition: lls.h:30
for
for(k=2;k<=8;++k)
Definition: h264pred_template.c:425
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256