FFmpeg
Macros | Functions
hevc_add_res.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.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 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 29 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 38 of file hevc_add_res.c.

Function Documentation

◆ check_add_res()

static void check_add_res ( HEVCDSPContext  h,
int  bit_depth 
)
static

Definition at line 45 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 74 of file hevc_add_res.c.

r
const char * r
Definition: vf_curves.c:114
rnd
#define rnd()
Definition: checkasm.h:104
buf
void * buf
Definition: avisynth_c.h:766
AV_WN16A
#define AV_WN16A(p, v)
Definition: intreadwrite.h:534
size
int size
Definition: twinvq_data.h:11134