FFmpeg
Macros | Functions
audiodsp.c File Reference
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "libavcodec/audiodsp.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define MAX_SIZE   (32 * 128)
 
#define randomize_float(buf, len)
 
#define randomize_int(buf, len, size, bits)
 

Functions

void checkasm_check_audiodsp (void)
 

Macro Definition Documentation

◆ MAX_SIZE

#define MAX_SIZE   (32 * 128)

Definition at line 32 of file audiodsp.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 34 of file audiodsp.c.

◆ randomize_int

#define randomize_int (   buf,
  len,
  size,
  bits 
)
Value:
do { \
int i; \
for (i = 0; i < len; i++) { \
uint ## size ## _t r = rnd() & ((1LL << bits) - 1); \
AV_WN ## size ## A(buf + i, -(1LL << (bits - 1)) + r); \
} \
} while (0)

Definition at line 43 of file audiodsp.c.

Function Documentation

◆ checkasm_check_audiodsp()

void checkasm_check_audiodsp ( void  )

Definition at line 52 of file audiodsp.c.

r
const char * r
Definition: vf_curves.c:116
A
#define A(x)
Definition: vp56_arith.h:28
rnd
#define rnd()
Definition: checkasm.h:111
bits
uint8_t bits
Definition: vp3data.h:141
f
#define f(width, name)
Definition: cbs_vp9.c:255
size
int size
Definition: twinvq_data.h:10344
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:271
len
int len
Definition: vorbis_enc_data.h:426