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

Go to the source code of this file.

Macros

#define randomize_exp(buf, len)
 
#define randomize_i24(buf, len)
 
#define randomize_float(buf, len)
 
#define MAX_COEFS   256
 
#define MAX_CTXT   6
 
#define EXP_SIZE   (MAX_CTXT * MAX_COEFS)
 
#define MAX_EXPS   3072
 
#define BUF_SIZE   1024
 
#define ELEMS   240
 

Functions

static void check_ac3_exponent_min (AC3DSPContext *c)
 
static void check_ac3_extract_exponents (AC3DSPContext *c)
 
static void check_float_to_fixed24 (AC3DSPContext *c)
 
static void check_ac3_sum_square_butterfly_int32 (AC3DSPContext *c)
 
static void check_ac3_sum_square_butterfly_float (AC3DSPContext *c)
 
void checkasm_check_ac3dsp (void)
 

Macro Definition Documentation

◆ randomize_exp

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

Definition at line 32 of file ac3dsp.c.

◆ randomize_i24

#define randomize_i24 (   buf,
  len 
)
Value:
do { \
int i; \
for (i = 0; i < len; i++) { \
int32_t v = (int32_t)rnd(); \
int32_t u = (v & 0xFFFFFF); \
buf[i] = (v < 0) ? -u : u; \
} \
} while (0)

Definition at line 40 of file ac3dsp.c.

◆ 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 50 of file ac3dsp.c.

◆ MAX_COEFS

#define MAX_COEFS   256

◆ MAX_CTXT

#define MAX_CTXT   6

◆ EXP_SIZE

#define EXP_SIZE   (MAX_CTXT * MAX_COEFS)

◆ MAX_EXPS

#define MAX_EXPS   3072

◆ BUF_SIZE

#define BUF_SIZE   1024

◆ ELEMS

#define ELEMS   240

Function Documentation

◆ check_ac3_exponent_min()

static void check_ac3_exponent_min ( AC3DSPContext c)
static

Definition at line 59 of file ac3dsp.c.

Referenced by checkasm_check_ac3dsp().

◆ check_ac3_extract_exponents()

static void check_ac3_extract_exponents ( AC3DSPContext c)
static

Definition at line 91 of file ac3dsp.c.

Referenced by checkasm_check_ac3dsp().

◆ check_float_to_fixed24()

static void check_float_to_fixed24 ( AC3DSPContext c)
static

Definition at line 117 of file ac3dsp.c.

Referenced by checkasm_check_ac3dsp().

◆ check_ac3_sum_square_butterfly_int32()

static void check_ac3_sum_square_butterfly_int32 ( AC3DSPContext c)
static

Definition at line 142 of file ac3dsp.c.

Referenced by checkasm_check_ac3dsp().

◆ check_ac3_sum_square_butterfly_float()

static void check_ac3_sum_square_butterfly_float ( AC3DSPContext c)
static

Definition at line 168 of file ac3dsp.c.

Referenced by checkasm_check_ac3dsp().

◆ checkasm_check_ac3dsp()

void checkasm_check_ac3dsp ( void  )

Definition at line 193 of file ac3dsp.c.

u
#define u(width, name, range_min, range_max)
Definition: cbs_h2645.c:251
rnd
#define rnd()
Definition: checkasm.h:177
float
float
Definition: af_crystalizer.c:122
f
f
Definition: af_crystalizer.c:122
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
len
int len
Definition: vorbis_enc_data.h:426
int32_t
int32_t
Definition: audioconvert.c:56