FFmpeg
Loading...
Searching...
No Matches
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() & 0xff; \
} while (0)
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define rnd
Definition checkasm.h:136
#define src
Definition vp8dsp.c:248

Definition at line 27 of file rv40dsp.c.

Referenced by check_chroma_mc().

◆ 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, mx = 0; x < 2; x++, mx = 1 + (rnd() % 7)) { \
for (int y = 0, my = 0; y < 2; y++, my = 1 + (rnd() % 7)) { \
memcpy(dst0, src, 16 * 18); \
memcpy(dst1, src, 16 * 18); \
call_ref(dst0, src, 16, 16, mx, my); \
call_new(dst1, src, 16, 16, mx, my); \
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)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t my
Definition dsp.h:57
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t mx
Definition dsp.h:57
#define check_func
Definition test.h:481
const char * name
Definition qsvenc.c:142
int size

Referenced by check_chroma_mc().

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.