FFmpeg
Macros | Functions
pixelutils.c File Reference
#include "libavutil/pixelutils.c"

Go to the source code of this file.

Macros

#define W1   320
 
#define H1   240
 
#define W2   640
 
#define H2   480
 
#define RANDOM_INIT(buf, size)
 

Functions

static int run_single_test (const char *test, const uint8_t *block1, ptrdiff_t stride1, const uint8_t *block2, ptrdiff_t stride2, int align, int n)
 
static int run_test (const char *test, const uint8_t *b1, const uint8_t *b2)
 
int main (void)
 

Macro Definition Documentation

◆ W1

#define W1   320

Definition at line 21 of file pixelutils.c.

◆ H1

#define H1   240

Definition at line 22 of file pixelutils.c.

◆ W2

#define W2   640

Definition at line 23 of file pixelutils.c.

◆ H2

#define H2   480

Definition at line 24 of file pixelutils.c.

◆ RANDOM_INIT

#define RANDOM_INIT (   buf,
  size 
)
Value:
do { \
int k; \
for (k = 0; k < size; k++) { \
state = state * 1664525 + 1013904223; \
buf[k] = state>>24; \
} \
} while (0)

Function Documentation

◆ run_single_test()

static int run_single_test ( const char *  test,
const uint8_t *  block1,
ptrdiff_t  stride1,
const uint8_t *  block2,
ptrdiff_t  stride2,
int  align,
int  n 
)
static

Definition at line 26 of file pixelutils.c.

Referenced by main(), and run_test().

◆ run_test()

static int run_test ( const char *  test,
const uint8_t *  b1,
const uint8_t *  b2 
)
static

Definition at line 50 of file pixelutils.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 73 of file pixelutils.c.

state
static struct @320 state
size
int size
Definition: twinvq_data.h:10344