FFmpeg
Loading...
Searching...
No Matches
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)
 
#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)
#define rnd
Definition checkasm.h:136
#define r
Definition input.c:42
int size
static double b1(void *priv, double x, double y)
Definition vf_xfade.c:2034
static double b0(void *priv, double x, double y)
Definition vf_xfade.c:2033

Definition at line 28 of file vp3dsp.c.

Referenced by vp3_check_idct(), vp3_check_loop_filter(), and vp3_check_put_no_rnd_pixels_l2().

◆ TEST

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

Referenced by vp3_check_loop_filter().

◆ IDCT_TEST

#define IDCT_TEST ( func,
mask )
Value:
if (check_func(vp3dsp.func, #func)) \
vp3_check_idct(mask); \
report(#func)
#define check_func
Definition test.h:481
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition jacosubdec.c:66
static const uint16_t mask[17]
Definition lzw.c:38

Referenced by checkasm_check_vp3dsp().

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.