FFmpeg
Macros | Functions
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)

Definition at line 27 of file vf_fspp.c.

◆ 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)

Definition at line 33 of file vf_fspp.c.

◆ 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)

Definition at line 39 of file vf_fspp.c.

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.

max
#define max(a, b)
Definition: cuda_runtime.h:33
rnd
#define rnd()
Definition: checkasm.h:199
FF_ARRAY_ELEMS
#define FF_ARRAY_ELEMS(a)
Definition: sinewin_tablegen.c:29
sign_extend
static av_const int sign_extend(int val, unsigned bits)
Definition: mathops.h:135
min
float min
Definition: vorbis_enc_data.h:429