FFmpeg
Macros | Functions
hpeldsp.c File Reference
#include <assert.h>
#include <stddef.h>
#include "checkasm.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/macros.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/hpeldsp.h"

Go to the source code of this file.

Macros

#define MAX_BLOCK_SIZE   16
 
#define MAX_HEIGHT   16
 
#define MAX_STRIDE   64
 
#define BUF_SIZE   ((MAX_HEIGHT - 1) * MAX_STRIDE + MAX_BLOCK_SIZE)
 
#define INPUT_BUF_SIZE   (MAX_HEIGHT * MAX_STRIDE + MAX_BLOCK_SIZE + 1 + (MAX_BLOCK_SIZE - 1))
 
#define randomize_buffers(buf0, buf1)
 
#define TEST(NAME, NB)   { .name = #NAME, .offset = offsetof(HpelDSPContext, NAME), .nb_blocksizes = NB }
 

Functions

void checkasm_check_hpeldsp (void)
 

Macro Definition Documentation

◆ MAX_BLOCK_SIZE

#define MAX_BLOCK_SIZE   16

Definition at line 29 of file hpeldsp.c.

◆ MAX_HEIGHT

#define MAX_HEIGHT   16

Definition at line 30 of file hpeldsp.c.

◆ MAX_STRIDE

#define MAX_STRIDE   64

Definition at line 31 of file hpeldsp.c.

◆ BUF_SIZE

#define BUF_SIZE   ((MAX_HEIGHT - 1) * MAX_STRIDE + MAX_BLOCK_SIZE)

Definition at line 33 of file hpeldsp.c.

◆ INPUT_BUF_SIZE

#define INPUT_BUF_SIZE   (MAX_HEIGHT * MAX_STRIDE + MAX_BLOCK_SIZE + 1 + (MAX_BLOCK_SIZE - 1))

Definition at line 38 of file hpeldsp.c.

◆ randomize_buffers

#define randomize_buffers (   buf0,
  buf1 
)
Value:
do { \
static_assert(sizeof(buf0) == sizeof(buf1), "Incompatible buffers"); \
static_assert(!(sizeof(buf0) % 4), "Tail handling needed"); \
static_assert(sizeof(buf0[0]) == 1 && sizeof(buf1[0]) == 1, \
"Pointer arithmetic needs to be adapted"); \
for (size_t k = 0; k < sizeof(buf0); k += 4) { \
uint32_t r = rnd(); \
AV_WN32A(buf0 + k, r); \
AV_WN32A(buf1 + k, r); \
} \
} while (0)

Definition at line 40 of file hpeldsp.c.

◆ TEST

#define TEST (   NAME,
  NB 
)    { .name = #NAME, .offset = offsetof(HpelDSPContext, NAME), .nb_blocksizes = NB }

Function Documentation

◆ checkasm_check_hpeldsp()

void checkasm_check_hpeldsp ( void  )

Definition at line 54 of file hpeldsp.c.

r
const char * r
Definition: vf_curves.c:127
rnd
#define rnd()
Definition: checkasm.h:186