FFmpeg  4.0
Macros | Functions
llviddsp.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/lossless_videodsp.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf, size)
 
#define init_buffer(a0, a1, type, width)
 

Functions

static void check_add_bytes (LLVidDSPContext c, int width)
 
static void check_add_median_pred (LLVidDSPContext c, int width)
 
static void check_add_left_pred (LLVidDSPContext c, int width, int acc, const char *report)
 
static void check_add_left_pred_16 (LLVidDSPContext c, unsigned mask, int width, unsigned acc, const char *report)
 
static void check_add_gradient_pred (LLVidDSPContext c, int w)
 
void checkasm_check_llviddsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   buf,
  size 
)
Value:
do { \
int j; \
uint8_t *tmp_buf = (uint8_t *)buf;\
for (j = 0; j < size; j++) \
tmp_buf[j] = rnd() & 0xFF; \
} while (0)
int size
uint8_t
void * buf
Definition: avisynth_c.h:690
#define rnd()
Definition: checkasm.h:100

Definition at line 31 of file llviddsp.c.

◆ init_buffer

#define init_buffer (   a0,
  a1,
  type,
  width 
)
Value:
if (!a0 || !a1)\
fail();\
randomize_buffers(a0, width * sizeof(type));\
memcpy(a1, a0, width*sizeof(type));\
#define a0
Definition: regdef.h:46
#define a1
Definition: regdef.h:47
uint16_t width
Definition: gdv.c:47
cl_device_type type

Definition at line 39 of file llviddsp.c.

Referenced by check_add_bytes(), check_add_gradient_pred(), check_add_left_pred(), check_add_left_pred_16(), and check_add_median_pred().

Function Documentation

◆ check_add_bytes()

static void check_add_bytes ( LLVidDSPContext  c,
int  width 
)
static

Definition at line 45 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_median_pred()

static void check_add_median_pred ( LLVidDSPContext  c,
int  width 
)
static

Definition at line 73 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_left_pred()

static void check_add_left_pred ( LLVidDSPContext  c,
int  width,
int  acc,
const char *  report 
)
static

Definition at line 110 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_left_pred_16()

static void check_add_left_pred_16 ( LLVidDSPContext  c,
unsigned  mask,
int  width,
unsigned  acc,
const char *  report 
)
static

Definition at line 139 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_gradient_pred()

static void check_add_gradient_pred ( LLVidDSPContext  c,
int  w 
)
static

Definition at line 168 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ checkasm_check_llviddsp()

void checkasm_check_llviddsp ( void  )

Definition at line 195 of file llviddsp.c.