FFmpeg  4.0
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)
int size
const char * r
Definition: vf_curves.c:111
void * buf
Definition: avisynth_c.h:690
#define rnd()
Definition: checkasm.h:100

Definition at line 29 of file hevc_add_res.c.

Referenced by check_add_res().

◆ 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)
int size
#define AV_WN16A(p, v)
Definition: intreadwrite.h:534
void * buf
Definition: avisynth_c.h:690
#define rnd()
Definition: checkasm.h:100

Definition at line 38 of file hevc_add_res.c.

Referenced by check_add_res().

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.