FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#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)
uint8_t
ptrdiff_t size
Definition: opengl_enc.c:101
void * buf
Definition: avisynth_c.h:690
int
#define rnd()
Definition: checkasm.h:100
for(j=16;j >0;--j)

Definition at line 31 of file llviddsp.c.

#define init_buffer (   a0,
  a1,
  type,
  width 
)
Value:
if (!a0 || !a1)\
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
#define fail()
Definition: checkasm.h:116
GLint GLenum type
Definition: opengl_enc.c:105
#define randomize_buffers(buf, size)
Definition: llviddsp.c:31

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

static void check_add_bytes ( LLVidDSPContext  c,
int  width 
)
static

Definition at line 45 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

static void check_add_median_pred ( LLVidDSPContext  c,
int  width 
)
static

Definition at line 73 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

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().

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().

static void check_add_gradient_pred ( LLVidDSPContext  c,
int  w 
)
static

Definition at line 168 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

void checkasm_check_llviddsp ( void  )

Definition at line 195 of file llviddsp.c.