FFmpeg
Loading...
Searching...
No Matches
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)
 

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

◆ MAX_STRIDE

◆ 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))

◆ 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)
#define rnd
Definition checkasm.h:136
#define r
Definition input.c:42

Definition at line 40 of file hpeldsp.c.

Referenced by checkasm_check_hpeldsp().

◆ TEST

#define TEST ( NAME,
NB )
Value:
{ .name = #NAME, .offset = offsetof(HpelDSPContext, NAME), .nb_blocksizes = NB }
Half-pel DSP context.
Definition hpeldsp.h:46

Referenced by checkasm_check_hpeldsp().

Function Documentation

◆ checkasm_check_hpeldsp()

void checkasm_check_hpeldsp ( void )

Definition at line 54 of file hpeldsp.c.