FFmpeg
Macros | Functions
hevc_add_res.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/hevcdsp.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf, size)
 
#define randomize_buffers2(buf, size, mask)
 

Functions

static void compare_add_res (int size, ptrdiff_t stride, int overflow_test, int mask)
 
static void check_add_res (HEVCDSPContext *h, int bit_depth)
 
void checkasm_check_hevc_add_res (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   buf,
  size 
)
Value:
do { \
int j; \
for (j = 0; j < size; j++) { \
int16_t r = rnd(); \
AV_WN16A(buf + j, r >> 3); \
} \
} while (0)

Definition at line 30 of file hevc_add_res.c.

◆ randomize_buffers2

#define randomize_buffers2 (   buf,
  size,
  mask 
)
Value:
do { \
int j; \
for (j = 0; j < size; j++) \
AV_WN16A(buf + j * 2, rnd() & mask); \
} while (0)

Definition at line 39 of file hevc_add_res.c.

Function Documentation

◆ compare_add_res()

static void compare_add_res ( int  size,
ptrdiff_t  stride,
int  overflow_test,
int  mask 
)
static

Definition at line 46 of file hevc_add_res.c.

Referenced by check_add_res().

◆ check_add_res()

static void check_add_res ( HEVCDSPContext h,
int  bit_depth 
)
static

Definition at line 69 of file hevc_add_res.c.

Referenced by checkasm_check_hevc_add_res().

◆ checkasm_check_hevc_add_res()

void checkasm_check_hevc_add_res ( void  )

Definition at line 87 of file hevc_add_res.c.

r
const char * r
Definition: vf_curves.c:126
rnd
#define rnd()
Definition: checkasm.h:122
mask
static const uint16_t mask[17]
Definition: lzw.c:38
AV_WN16A
#define AV_WN16A(p, v)
Definition: intreadwrite.h:532
size
int size
Definition: twinvq_data.h:10344