FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
flacdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/flacdsp.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define BUF_SIZE   256
 
#define MAX_CHANNELS   8
 
#define randomize_buffers()
 

Functions

static void check_decorrelate (uint8_t **ref_dst, uint8_t **ref_src, uint8_t **new_dst, uint8_t **new_src, int channels, int bits)
 
void checkasm_check_flacdsp (void)
 

Macro Definition Documentation

#define BUF_SIZE   256

Definition at line 28 of file flacdsp.c.

Referenced by check_decorrelate(), and checkasm_check_flacdsp().

#define MAX_CHANNELS   8

Definition at line 29 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

#define randomize_buffers ( )
Value:
do { \
int i, j; \
for (i = 0; i < BUF_SIZE; i += 4) { \
for (j = 0; j < channels; j++) { \
uint32_t r = rnd() & (1 << (bits - 2)) - 1; \
AV_WN32A(ref_src[j] + i, r); \
AV_WN32A(new_src[j] + i, r); \
} \
} \
} while (0)
#define AV_WN32A(p, v)
Definition: intreadwrite.h:538
uint8_t bits
Definition: crc.c:296
const char * r
Definition: vf_curves.c:107
#define BUF_SIZE
Definition: flacdsp.c:28
#define rnd()
Definition: checkasm.h:66
for(j=16;j >0;--j)

Definition at line 31 of file flacdsp.c.

Referenced by check_decorrelate().

Function Documentation

static void check_decorrelate ( uint8_t **  ref_dst,
uint8_t **  ref_src,
uint8_t **  new_dst,
uint8_t **  new_src,
int  channels,
int  bits 
)
static

Definition at line 43 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

void checkasm_check_flacdsp ( void  )

Definition at line 56 of file flacdsp.c.