FFmpeg
Loading...
Searching...
No Matches
aacencdsp.c File Reference
#include <string.h>
#include "libavutil/mem_internal.h"
#include "libavcodec/aacenc_utils.h"
#include "libavcodec/aacencdsp.h"
#include "libavcodec/aactab.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_float(buf, len)
 
#define randomize_elem(tab)
 
#define BUF_SIZE   1024
 

Functions

static void test_abs_pow34 (AACEncDSPContext *s)
 
static void test_quant_bands (AACEncDSPContext *s)
 
void checkasm_check_aacencdsp (void)
 

Macro Definition Documentation

◆ randomize_float

#define randomize_float ( buf,
len )
Value:
do { \
int i; \
for (i = 0; i < len; i++) { \
float f = (float)rnd() / (UINT_MAX >> 5) - 16.0f; \
buf[i] = f; \
} \
} while (0)
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define f(width, name)
Definition cbs_vp8.c:236
#define rnd
Definition checkasm.h:136
int len

Definition at line 31 of file aacencdsp.c.

Referenced by test_abs_pow34(), and test_quant_bands().

◆ randomize_elem

#define randomize_elem ( tab)
Value:
#define FF_ARRAY_ELEMS(a)
static const struct twinvq_data tab

Definition at line 40 of file aacencdsp.c.

Referenced by test_quant_bands().

◆ BUF_SIZE

#define BUF_SIZE   1024

Function Documentation

◆ test_abs_pow34()

static void test_abs_pow34 ( AACEncDSPContext * s)
static

Definition at line 42 of file aacencdsp.c.

Referenced by checkasm_check_aacencdsp().

◆ test_quant_bands()

static void test_quant_bands ( AACEncDSPContext * s)
static

Definition at line 67 of file aacencdsp.c.

Referenced by checkasm_check_aacencdsp().

◆ checkasm_check_aacencdsp()

void checkasm_check_aacencdsp ( void )

Definition at line 100 of file aacencdsp.c.