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 "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

#define MAX_SIZE   (32 * 128)

Definition at line 31 of file audiodsp.c.

Referenced by checkasm_check_audiodsp().

#define randomize_float (   buf,
  len 
)
Value:
do { \
for (i = 0; i < len; i++) { \
float f = (float)rnd() / (UINT_MAX >> 5) - 16.0f; \
buf[i] = f; \
} \
} while (0)
#define f(width, name)
Definition: cbs_vp9.c:255
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:259
void * buf
Definition: avisynth_c.h:766
int
#define rnd()
Definition: checkasm.h:106
int len
for(j=16;j >0;--j)

Definition at line 33 of file audiodsp.c.

Referenced by checkasm_check_audiodsp().

#define randomize_int (   buf,
  len,
  size,
  bits 
)
Value:
do { \
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)
#define AV_WN(s, p, v)
Definition: intreadwrite.h:225
ptrdiff_t size
Definition: opengl_enc.c:100
#define A(x)
Definition: vp56_arith.h:28
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:259
const char * r
Definition: vf_curves.c:114
uint8_t bits
Definition: vp3data.h:202
void * buf
Definition: avisynth_c.h:766
int
#define rnd()
Definition: checkasm.h:106
int len
for(j=16;j >0;--j)

Definition at line 42 of file audiodsp.c.

Referenced by checkasm_check_audiodsp().

Function Documentation

void checkasm_check_audiodsp ( void  )

Definition at line 51 of file audiodsp.c.