FFmpeg
Loading...
Searching...
No Matches
vf_fspp.c File Reference
#include <stddef.h>
#include <stdint.h>
#include "checkasm.h"
#include "libavfilter/vf_fsppdsp.h"
#include "libavcodec/mathops.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf)
 
#define randomize_mask_buffers(buf, buf2, nb_elems, nb_bits)
 
#define randomize_buffer_range(buf, min, max)
 

Functions

static void check_store_slice (void)
 
static void check_mul_thrmat (void)
 
static void check_column_fidct (void)
 
void checkasm_check_vf_fspp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers ( buf)
Value:
do { \
for (size_t j = 0; j < FF_ARRAY_ELEMS(buf); ++j) \
buf[j] = rnd(); \
} while (0)
#define rnd
Definition checkasm.h:135
#define FF_ARRAY_ELEMS(a)

Definition at line 27 of file vf_fspp.c.

Referenced by check_column_fidct(), check_mul_thrmat(), and check_store_slice().

◆ randomize_mask_buffers

#define randomize_mask_buffers ( buf,
buf2,
nb_elems,
nb_bits )
Value:
do { \
for (size_t j = 0; j < nb_elems; ++j) \
buf[j] = buf2[j] = sign_extend(rnd(), nb_bits); \
} while (0)
static av_const int sign_extend(int val, unsigned bits)
Definition mathops.h:135

Definition at line 33 of file vf_fspp.c.

Referenced by check_store_slice().

◆ randomize_buffer_range

#define randomize_buffer_range ( buf,
min,
max )
Value:
do { \
for (size_t j = 0; j < FF_ARRAY_ELEMS(buf); ++j) \
buf[j] = min + rnd() % (max - min + 1); \
} while (0)
#define min(a, b)
#define max(a, b)

Definition at line 39 of file vf_fspp.c.

Referenced by check_column_fidct().

Function Documentation

◆ check_store_slice()

static void check_store_slice ( void )
static

in elements, not in bytes; 32 is arbitrary

Definition at line 45 of file vf_fspp.c.

Referenced by checkasm_check_vf_fspp().

◆ check_mul_thrmat()

static void check_mul_thrmat ( void )
static

Definition at line 112 of file vf_fspp.c.

Referenced by checkasm_check_vf_fspp().

◆ check_column_fidct()

static void check_column_fidct ( void )
static

< arbitrary

Definition at line 133 of file vf_fspp.c.

Referenced by checkasm_check_vf_fspp().

◆ checkasm_check_vf_fspp()

void checkasm_check_vf_fspp ( void )

Definition at line 165 of file vf_fspp.c.