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

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));\

Definition at line 39 of file llviddsp.c.

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.

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
a1
#define a1
Definition: regdef.h:47
rnd
#define rnd()
Definition: checkasm.h:122
width
#define width
size
int size
Definition: twinvq_data.h:10344
a0
#define a0
Definition: regdef.h:46