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)
 

Functions

static void compare_add_res (int size, ptrdiff_t stride, int overflow_test)
 
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 
)
Value:
do { \
int j; \
for (j = 0; j < size; j++) \
AV_WN16A(buf + j * 2, rnd() & 0x3FF); \
} 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 
)
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 86 of file hevc_add_res.c.

r
const char * r
Definition: vf_curves.c:116
rnd
#define rnd()
Definition: checkasm.h:118
AV_WN16A
#define AV_WN16A(p, v)
Definition: intreadwrite.h:534
size
int size
Definition: twinvq_data.h:10344