FFmpeg  4.0
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 "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 31 of file audiodsp.c.

Referenced by checkasm_check_audiodsp().

◆ 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)
#define rnd()
Definition: checkasm.h:100
int len

Definition at line 33 of file audiodsp.c.

Referenced by checkasm_check_audiodsp().

◆ 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)
int size
#define A(x)
Definition: vp56_arith.h:28
const char * r
Definition: vf_curves.c:111
void * buf
Definition: avisynth_c.h:690
#define rnd()
Definition: checkasm.h:100
int len

Definition at line 42 of file audiodsp.c.

Referenced by checkasm_check_audiodsp().

Function Documentation

◆ checkasm_check_audiodsp()

void checkasm_check_audiodsp ( void  )

Definition at line 51 of file audiodsp.c.