FFmpeg
Macros | Enumerations | Functions
vp3dsp.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/vp3dsp.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf0, buf1, size)
 
#define TEST(NAME)   .name = #NAME, .offset = offsetof(VP3DSPContext, NAME)
 

Enumerations

enum  { MAX_STRIDE = 64, MIN_STRIDE = 8, HORIZONTAL_BUF_SIZE = ((8 - 1) * MAX_STRIDE + 4 + 7 ), VERTICAL_BUF_SIZE = ((4 - 1) * MAX_STRIDE + 8 + 7 ) }
 

Functions

static void vp3_check_loop_filter (void)
 
void checkasm_check_vp3dsp (void)
 

Macro Definition Documentation

◆ randomize_buffers

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

Definition at line 37 of file vp3dsp.c.

◆ TEST

#define TEST (   NAME)    .name = #NAME, .offset = offsetof(VP3DSPContext, NAME)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_STRIDE 
MIN_STRIDE 
HORIZONTAL_BUF_SIZE 

Horizontal tests operate on 4x8 blocks.

VERTICAL_BUF_SIZE 

Vertical tests operate on 8x4 blocks.

Definition at line 28 of file vp3dsp.c.

Function Documentation

◆ vp3_check_loop_filter()

static void vp3_check_loop_filter ( void  )
static

Definition at line 51 of file vp3dsp.c.

Referenced by checkasm_check_vp3dsp().

◆ checkasm_check_vp3dsp()

void checkasm_check_vp3dsp ( void  )

Definition at line 113 of file vp3dsp.c.

r
const char * r
Definition: vf_curves.c:127
rnd
#define rnd()
Definition: checkasm.h:190
size
int size
Definition: twinvq_data.h:10344