FFmpeg
Macros | Functions
rv40dsp.c File Reference
#include <string.h>
#include <stdint.h>
#include "checkasm.h"
#include "libavcodec/rv40dsp.c"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define randomize_buffers()
 
#define CHECK_CHROMA_MC(name)
 

Functions

static void check_chroma_mc (void)
 
void checkasm_check_rv40dsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers ( )
Value:
do { \
for (int i = 0; i < 16*18*2; i++) \
src[i] = rnd() & 0x3; \
} while (0)

Definition at line 27 of file rv40dsp.c.

◆ CHECK_CHROMA_MC

#define CHECK_CHROMA_MC (   name)
Value:
do { \
if (check_func(h.name## _pixels_tab[size], #name "_mc%d", 1 << (3 - size))) { \
for (int x = 0; x < 2; x++) { \
for (int y = 0; y < 2; y++) { \
memcpy(dst0, src, 16 * 18); \
memcpy(dst1, src, 16 * 18); \
call_ref(dst0, src, 16, 16, x, y); \
call_new(dst1, src, 16, 16, x, y); \
if (memcmp(dst0, dst1, 16 * 16)) { \
fprintf(stderr, #name ": x:%i, y:%i\n", x, y); \
fail(); \
} \
bench_new(dst1, src, 16, 16, x, y); \
} \
} \
} \
} while (0)

Function Documentation

◆ check_chroma_mc()

static void check_chroma_mc ( void  )
static

Definition at line 33 of file rv40dsp.c.

Referenced by checkasm_check_rv40dsp().

◆ checkasm_check_rv40dsp()

void checkasm_check_rv40dsp ( void  )

Definition at line 71 of file rv40dsp.c.

name
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
Definition: writing_filters.txt:88
check_func
#define check_func(func,...)
Definition: checkasm.h:179
rnd
#define rnd()
Definition: checkasm.h:172
size
int size
Definition: twinvq_data.h:10344
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256
h
h
Definition: vp9dsp_template.c:2070
src
#define src
Definition: vp8dsp.c:248