FFmpeg
Macros | Functions
vp3dsp.c File Reference
#include <stddef.h>
#include <string.h>
#include "checkasm.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/macros.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/vp3dsp.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf0, buf1, size)
 
#define TEST(NAME)   .name = #NAME, .offset = offsetof(VP3DSPContext, NAME)
 
#define IDCT_TEST(func, mask)
 

Functions

static void vp3_check_put_no_rnd_pixels_l2 (const VP3DSPContext *const vp3dsp)
 
static void vp3_check_idct (int nb_bits)
 
static void vp3_check_loop_filter (const VP3DSPContext *const vp3dsp)
 
void checkasm_check_vp3dsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   buf0,
  buf1,
  size 
)
Value:
do { \
char *b0 = (char*)buf0, *b1 = (char*)buf1; \
for (size_t k = 0; k < (size & ~3); k += 4) { \
uint32_t r = rnd(); \
AV_WN32A(b0 + k, r); \
AV_WN32A(b1 + k, r); \
} \
for (size_t k = size & ~3; k < size; ++k) \
b0[k] = b1[k] = rnd(); \
} while (0)

Definition at line 28 of file vp3dsp.c.

◆ TEST

#define TEST (   NAME)    .name = #NAME, .offset = offsetof(VP3DSPContext, NAME)

◆ IDCT_TEST

#define IDCT_TEST (   func,
  mask 
)
Value:
if (check_func(vp3dsp.func, #func)) \
vp3_check_idct(mask); \
report(#func)

Function Documentation

◆ vp3_check_put_no_rnd_pixels_l2()

static void vp3_check_put_no_rnd_pixels_l2 ( const VP3DSPContext *const  vp3dsp)
static

< only used height, so only tested height

< WIDTH-1 to use misaligned input

Definition at line 40 of file vp3dsp.c.

Referenced by checkasm_check_vp3dsp().

◆ vp3_check_idct()

static void vp3_check_idct ( int  nb_bits)
static

Definition at line 85 of file vp3dsp.c.

◆ vp3_check_loop_filter()

static void vp3_check_loop_filter ( const VP3DSPContext *const  vp3dsp)
static

Horizontal tests operate on 4x8 blocks

Vertical tests operate on 8x4 blocks

Definition at line 126 of file vp3dsp.c.

Referenced by checkasm_check_vp3dsp().

◆ checkasm_check_vp3dsp()

void checkasm_check_vp3dsp ( void  )

Definition at line 193 of file vp3dsp.c.

func
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition: jacosubdec.c:66
r
const char * r
Definition: vf_curves.c:127
mask
int mask
Definition: mediacodecdec_common.c:154
check_func
#define check_func(func,...)
Definition: checkasm.h:214
b1
static double b1(void *priv, double x, double y)
Definition: vf_xfade.c:2034
rnd
#define rnd()
Definition: checkasm.h:207
size
int size
Definition: twinvq_data.h:10344
b0
static double b0(void *priv, double x, double y)
Definition: vf_xfade.c:2033