FFmpeg
Macros | Functions
pixelutils.c File Reference
#include <stdio.h>
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#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 25 of file pixelutils.c.

◆ H1

#define H1   240

Definition at line 26 of file pixelutils.c.

◆ W2

#define W2   640

Definition at line 27 of file pixelutils.c.

◆ H2

#define H2   480

Definition at line 28 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 30 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 54 of file pixelutils.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 77 of file pixelutils.c.

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