FFmpeg
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

◆ BUF_SIZE

#define BUF_SIZE   256

Definition at line 28 of file flacdsp.c.

◆ MAX_CHANNELS

#define MAX_CHANNELS   8

Definition at line 29 of file flacdsp.c.

◆ randomize_buffers

#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)

Definition at line 31 of file flacdsp.c.

Function Documentation

◆ check_decorrelate()

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().

◆ checkasm_check_flacdsp()

void checkasm_check_flacdsp ( void  )

Definition at line 56 of file flacdsp.c.

r
const char * r
Definition: vf_curves.c:114
channels
channels
Definition: aptx.c:30
rnd
#define rnd()
Definition: checkasm.h:104
bits
uint8_t bits
Definition: vp3data.h:202
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:259
BUF_SIZE
#define BUF_SIZE
Definition: flacdsp.c:28