FFmpeg
Loading...
Searching...
No Matches
sbcdsp.c File Reference
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "checkasm.h"
#include "libavcodec/sbcdsp.h"
#include "libavcodec/sbcdsp_data.h"
#include "libavutil/macros.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define randomize_buffer(buf)
 
#define A_CONST(SIZE, ODDEVEN)
 

Enumerations

enum  { SBC_MAX_SUBBANDS = 8 }
 

Functions

static void check_sbc_analyze (SBCDSPContext *sbcdsp)
 
static void check_sbc_calc_scalefactors (const SBCDSPContext *const sbcdsp, int blocks)
 
void checkasm_check_sbcdsp (void)
 

Macro Definition Documentation

◆ randomize_buffer

#define randomize_buffer ( buf)
Value:
do { \
for (size_t k = 0; k < FF_ARRAY_ELEMS(buf); ++k) \
buf[k] = rnd(); \
} while (0)
#define rnd
Definition checkasm.h:136
#define FF_ARRAY_ELEMS(a)

Definition at line 33 of file sbcdsp.c.

Referenced by check_sbc_analyze().

◆ A_CONST

#define A_CONST ( SIZE,
ODDEVEN )
Value:
sbcdsp_analysis_consts_fixed ## SIZE ## _simd_ ## ODDEVEN
#define SIZE

Referenced by check_sbc_analyze().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SBC_MAX_SUBBANDS 

Definition at line 29 of file sbcdsp.c.

Function Documentation

◆ check_sbc_analyze()

static void check_sbc_analyze ( SBCDSPContext * sbcdsp)
static

Definition at line 39 of file sbcdsp.c.

Referenced by checkasm_check_sbcdsp().

◆ check_sbc_calc_scalefactors()

static void check_sbc_calc_scalefactors ( const SBCDSPContext *const sbcdsp,
int blocks )
static

Definition at line 73 of file sbcdsp.c.

Referenced by checkasm_check_sbcdsp().

◆ checkasm_check_sbcdsp()

void checkasm_check_sbcdsp ( void )

Definition at line 109 of file sbcdsp.c.