FFmpeg
Loading...
Searching...
No Matches
llviddsp.c File Reference
#include <stddef.h>
#include <string.h>
#include "libavutil/cpu.h"
#include "libavutil/macros.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, size_t aligned_width)
 
static void check_add_median_pred (LLVidDSPContext *c, int width, size_t aligned_width)
 
static void check_add_left_pred (LLVidDSPContext *c, int width, size_t aligned_width, int acc)
 
static void check_add_left_pred_16 (LLVidDSPContext *c, unsigned mask, int width, size_t align, unsigned acc)
 
static void check_add_gradient_pred (LLVidDSPContext *c, int w, size_t align)
 
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)
#define rnd
Definition checkasm.h:135
int size

Definition at line 32 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));\
cl_device_type type
#define width
Definition dsp.h:89
static double a0(void *priv, double x, double y)
Definition vf_xfade.c:2028
static double a1(void *priv, double x, double y)
Definition vf_xfade.c:2029

Definition at line 40 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,
size_t aligned_width )
static

Definition at line 46 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_median_pred()

static void check_add_median_pred ( LLVidDSPContext * c,
int width,
size_t aligned_width )
static

Definition at line 72 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_left_pred()

static void check_add_left_pred ( LLVidDSPContext * c,
int width,
size_t aligned_width,
int acc )
static

Definition at line 108 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,
size_t align,
unsigned acc )
static

Definition at line 134 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ check_add_gradient_pred()

static void check_add_gradient_pred ( LLVidDSPContext * c,
int w,
size_t align )
static

Definition at line 164 of file llviddsp.c.

Referenced by checkasm_check_llviddsp().

◆ checkasm_check_llviddsp()

void checkasm_check_llviddsp ( void )

Definition at line 190 of file llviddsp.c.