FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 { \
int i; \
for (i = 0; i < len; i++) { \
float f = (float)rnd() / (UINT_MAX >> 5) - 16.0f; \
buf[i] = f; \
} \
} while (0)
void * buf
Definition: avisynth_c.h:690
int
#define rnd()
Definition: checkasm.h:74
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 { \
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)
uint8_t bits
Definition: crc.c:296
#define AV_WN(s, p, v)
Definition: intreadwrite.h:225
ptrdiff_t size
Definition: opengl_enc.c:101
#define A(x)
Definition: vp56_arith.h:28
const char * r
Definition: vf_curves.c:111
void * buf
Definition: avisynth_c.h:690
int
#define rnd()
Definition: checkasm.h:74
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.