FFmpeg
Macros | Functions
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

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)

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_emms(AV_CPU_FLAG_MMX, 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)

Definition at line 42 of file blockdsp.c.

Function Documentation

◆ checkasm_check_blockdsp()

void checkasm_check_blockdsp ( void  )

Definition at line 55 of file blockdsp.c.

func
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition: jacosubdec.c:68
r
const char * r
Definition: vf_curves.c:116
check_func
#define check_func(func,...)
Definition: checkasm.h:118
rnd
#define rnd()
Definition: checkasm.h:111
size
int size
Definition: twinvq_data.h:10344
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:271
AV_CPU_FLAG_MMX
#define AV_CPU_FLAG_MMX
standard MMX
Definition: cpu.h:29
block
The exact code depends on how similar the blocks are and how related they are to the block
Definition: filter_design.txt:207
h
h
Definition: vp9dsp_template.c:2038