FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#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)
ptrdiff_t size
Definition: opengl_enc.c:101
const char * r
Definition: vf_curves.c:111
#define AV_WN16A(p, v)
Definition: intreadwrite.h:539
void * buf
Definition: avisynth_c.h:690
int
#define rnd()
Definition: checkasm.h:74
for(j=16;j >0;--j)

Definition at line 29 of file hevc_add_res.c.

Referenced by check_add_res().

#define randomize_buffers2 (   buf,
  size 
)
Value:
do { \
int j; \
for (j = 0; j < size; j++) \
AV_WN16A(buf + j * 2, rnd() & 0x3FF); \
} while (0)
ptrdiff_t size
Definition: opengl_enc.c:101
#define AV_WN16A(p, v)
Definition: intreadwrite.h:539
void * buf
Definition: avisynth_c.h:690
int
#define rnd()
Definition: checkasm.h:74
for(j=16;j >0;--j)

Definition at line 38 of file hevc_add_res.c.

Referenced by check_add_res().

Function Documentation

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().

void checkasm_check_hevc_add_res ( void  )

Definition at line 74 of file hevc_add_res.c.