FFmpeg
Macros | Functions
aacencdsp.c File Reference
#include <string.h>
#include "libavutil/mem_internal.h"
#include "libavcodec/aacenc_utils.h"
#include "libavcodec/aacencdsp.h"
#include "libavcodec/aactab.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_float(buf, len)
 
#define randomize_elem(tab)   (tab[rnd() % FF_ARRAY_ELEMS(tab)])
 
#define BUF_SIZE   1024
 

Functions

static void test_abs_pow34 (AACEncDSPContext *s)
 
static void test_quant_bands (AACEncDSPContext *s)
 
void checkasm_check_aacencdsp (void)
 

Macro Definition Documentation

◆ randomize_float

#define randomize_float (   buf,
  len 
)
Value:
do { \
int i; \
for (i = 0; i < len; i++) { \
float f = (float)rnd() / (UINT_MAX >> 5) - 16.0f; \
buf[i] = f; \
} \
} while (0)

Definition at line 31 of file aacencdsp.c.

◆ randomize_elem

#define randomize_elem (   tab)    (tab[rnd() % FF_ARRAY_ELEMS(tab)])

Definition at line 40 of file aacencdsp.c.

◆ BUF_SIZE

#define BUF_SIZE   1024

Function Documentation

◆ test_abs_pow34()

static void test_abs_pow34 ( AACEncDSPContext s)
static

Definition at line 42 of file aacencdsp.c.

Referenced by checkasm_check_aacencdsp().

◆ test_quant_bands()

static void test_quant_bands ( AACEncDSPContext s)
static

Definition at line 67 of file aacencdsp.c.

Referenced by checkasm_check_aacencdsp().

◆ checkasm_check_aacencdsp()

void checkasm_check_aacencdsp ( void  )

Definition at line 100 of file aacencdsp.c.

rnd
#define rnd()
Definition: checkasm.h:169
float
float
Definition: af_crystalizer.c:121
f
f
Definition: af_crystalizer.c:121
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
len
int len
Definition: vorbis_enc_data.h:426