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

Go to the source code of this file.

Macros

#define BUF_SIZE   1024
 
#define MIN_VAL   (-255 - 5 * 127)
 
#define MAX_VAL   ( 255 + 5 * 128)
 
#define randomize(buf, len)
 

Functions

static void test_ssd_int8_vs_int16 (SVQ1EncDSPContext *s)
 
void checkasm_check_svq1enc (void)
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   1024

Definition at line 27 of file svq1enc.c.

◆ MIN_VAL

#define MIN_VAL   (-255 - 5 * 127)

Definition at line 28 of file svq1enc.c.

◆ MAX_VAL

#define MAX_VAL   ( 255 + 5 * 128)

Definition at line 29 of file svq1enc.c.

◆ randomize

#define randomize (   buf,
  len 
)
Value:
do { \
for (int i = 0; i < len; i++) \
buf[i] = ((rnd() % (MAX_VAL - MIN_VAL + 1)) + MIN_VAL); \
} while (0)

Definition at line 31 of file svq1enc.c.

Function Documentation

◆ test_ssd_int8_vs_int16()

static void test_ssd_int8_vs_int16 ( SVQ1EncDSPContext s)
static

Definition at line 37 of file svq1enc.c.

Referenced by checkasm_check_svq1enc().

◆ checkasm_check_svq1enc()

void checkasm_check_svq1enc ( void  )

Definition at line 63 of file svq1enc.c.

rnd
#define rnd()
Definition: checkasm.h:172
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
len
int len
Definition: vorbis_enc_data.h:426
MIN_VAL
#define MIN_VAL
Definition: svq1enc.c:28
MAX_VAL
#define MAX_VAL
Definition: svq1enc.c:29