FFmpeg
Macros | Functions
dcadsp.c File Reference
#include <stdint.h>
#include <string.h>
#include "libavcodec/dcadata.h"
#include "libavcodec/dcadsp.h"
#include "libavutil/common.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define N   32
 
#define BLOCKSIZE   128
 
#define BUF_SIZE   (N * BLOCKSIZE)
 
#define LFE_HISTORY   8
 
#define LFE_SIZE   (N + LFE_HISTORY + 1)
 
#define randomize(buf, len)
 
#define EPS   0.0005f
 

Functions

static void test_lfe_fir_float (const DCADSPContext *dca)
 
static void test_lfe_fir_fixed (void)
 
void checkasm_check_dcadsp (void)
 

Macro Definition Documentation

◆ N

#define N   32

Definition at line 29 of file dcadsp.c.

◆ BLOCKSIZE

#define BLOCKSIZE   128

Definition at line 30 of file dcadsp.c.

◆ BUF_SIZE

#define BUF_SIZE   (N * BLOCKSIZE)

Definition at line 31 of file dcadsp.c.

◆ LFE_HISTORY

#define LFE_HISTORY   8

Definition at line 32 of file dcadsp.c.

◆ LFE_SIZE

#define LFE_SIZE   (N + LFE_HISTORY + 1)

Definition at line 33 of file dcadsp.c.

◆ randomize

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

Definition at line 38 of file dcadsp.c.

◆ EPS

#define EPS   0.0005f

Definition at line 43 of file dcadsp.c.

Function Documentation

◆ test_lfe_fir_float()

static void test_lfe_fir_float ( const DCADSPContext dca)
static

Definition at line 45 of file dcadsp.c.

Referenced by checkasm_check_dcadsp().

◆ test_lfe_fir_fixed()

static void test_lfe_fir_fixed ( void  )
static

Definition at line 69 of file dcadsp.c.

Referenced by checkasm_check_dcadsp().

◆ checkasm_check_dcadsp()

void checkasm_check_dcadsp ( void  )

Definition at line 89 of file dcadsp.c.

rnd
#define rnd()
Definition: checkasm.h:188
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
len
int len
Definition: vorbis_enc_data.h:426