FFmpeg
Macros | Functions
scene_sad.c File Reference
#include "checkasm.h"
#include "libavfilter/scene_sad.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Macros

#define WIDTH   256
 
#define HEIGHT   256
 
#define STRIDE   WIDTH
 
#define randomize_buffers(type, buf, size, mask)
 

Functions

static void check_scene_sad (int depth)
 
void checkasm_check_scene_sad (void)
 

Macro Definition Documentation

◆ WIDTH

#define WIDTH   256

Definition at line 23 of file scene_sad.c.

◆ HEIGHT

#define HEIGHT   256

Definition at line 24 of file scene_sad.c.

◆ STRIDE

#define STRIDE   WIDTH

Definition at line 25 of file scene_sad.c.

◆ randomize_buffers

#define randomize_buffers (   type,
  buf,
  size,
  mask 
)
Value:
do { \
int j; \
type *tmp_buf = (type *) buf; \
for (j = 0; j < size; j++) \
tmp_buf[j] = rnd() & mask; \
} while (0)

Definition at line 27 of file scene_sad.c.

Function Documentation

◆ check_scene_sad()

static void check_scene_sad ( int  depth)
static

Definition at line 35 of file scene_sad.c.

Referenced by checkasm_check_scene_sad().

◆ checkasm_check_scene_sad()

void checkasm_check_scene_sad ( void  )

Definition at line 66 of file scene_sad.c.

mask
int mask
Definition: mediacodecdec_common.c:154
type
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
Definition: writing_filters.txt:86
rnd
#define rnd()
Definition: checkasm.h:183
size
int size
Definition: twinvq_data.h:10344