FFmpeg
Macros | Functions
flacdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/flacdsp.h"
#include "libavcodec/mathops.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.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)
 
static void check_lpc (int pred_order, int bps)
 
static void check_lpc33 (int pred_order)
 
static void check_wasted32 (void)
 
static void check_wasted33 (void)
 
void checkasm_check_flacdsp (void)
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   256

Definition at line 30 of file flacdsp.c.

◆ MAX_CHANNELS

#define MAX_CHANNELS   8

Definition at line 31 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 33 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 45 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ check_lpc()

static void check_lpc ( int  pred_order,
int  bps 
)
static

Definition at line 58 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ check_lpc33()

static void check_lpc33 ( int  pred_order)
static

Definition at line 86 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ check_wasted32()

static void check_wasted32 ( void  )
static

Definition at line 115 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ check_wasted33()

static void check_wasted33 ( void  )
static

Definition at line 136 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ checkasm_check_flacdsp()

void checkasm_check_flacdsp ( void  )

Definition at line 155 of file flacdsp.c.

r
const char * r
Definition: vf_curves.c:127
rnd
#define rnd()
Definition: checkasm.h:177
bits
uint8_t bits
Definition: vp3data.h:128
channels
channels
Definition: aptx.h:31
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
BUF_SIZE
#define BUF_SIZE
Definition: flacdsp.c:30