FFmpeg
Loading...
Searching...
No Matches
blockdsp.c File Reference
#include <string.h>
#include "checkasm.h"
#include "libavcodec/blockdsp.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 randomize_buffers(size)
 
#define check_clear(func, size)
 

Functions

static void check_fill (BlockDSPContext *h)
 
void checkasm_check_blockdsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers ( size)
Value:
do { \
int i; \
for (i = 0; i < size; i++) { \
uint16_t r = rnd(); \
AV_WN16A(buf0 + i, r); \
AV_WN16A(buf1 + i, r); \
} \
} while (0)
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define rnd
Definition checkasm.h:136
#define r
Definition input.c:42
int size

Definition at line 32 of file blockdsp.c.

◆ check_clear

#define check_clear ( func,
size )
Value:
do { \
if (check_func(h.func, "blockdsp." #func)) { \
declare_func(void, int16_t *block); \
randomize_buffers(size); \
call_ref(buf0); \
call_new(buf1); \
if (memcmp(buf0, buf1, sizeof(*buf0) * size)) \
fail(); \
bench_new(buf0); \
} \
} while (0)
static int16_t block[64]
Definition dct.c:125
#define check_func
Definition test.h:481
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition jacosubdec.c:66

Definition at line 42 of file blockdsp.c.

Referenced by checkasm_check_blockdsp().

Function Documentation

◆ check_fill()

static void check_fill ( BlockDSPContext * h)
static

Definition at line 55 of file blockdsp.c.

Referenced by checkasm_check_blockdsp().

◆ checkasm_check_blockdsp()

void checkasm_check_blockdsp ( void )

Definition at line 78 of file blockdsp.c.