FFmpeg
Loading...
Searching...
No Matches
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)
channels
Definition aptx.h:31
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define rnd
Definition checkasm.h:136
static const uint8_t bits[8]
Definition fastaudio.c:100
#define r
Definition input.c:42
#define BUF_SIZE
Definition setpts.c:159

Definition at line 33 of file flacdsp.c.

Referenced by check_decorrelate().

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 99 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ check_wasted32()

static void check_wasted32 ( void )
static

Definition at line 141 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ check_wasted33()

static void check_wasted33 ( void )
static

Definition at line 162 of file flacdsp.c.

Referenced by checkasm_check_flacdsp().

◆ checkasm_check_flacdsp()

void checkasm_check_flacdsp ( void )

Definition at line 181 of file flacdsp.c.