FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pixelutils-test.c File Reference
#include "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

#define W1   320

Definition at line 21 of file pixelutils-test.c.

Referenced by main(), and run_test().

#define H1   240

Definition at line 22 of file pixelutils-test.c.

Referenced by main().

#define W2   640

Definition at line 23 of file pixelutils-test.c.

Referenced by main(), and run_test().

#define H2   480

Definition at line 24 of file pixelutils-test.c.

Referenced by main().

#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)
ptrdiff_t size
Definition: opengl_enc.c:101
void * buf
Definition: avisynth_c.h:553
static struct @227 state
for(j=16;j >0;--j)

Referenced by main().

Function Documentation

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-test.c.

Referenced by main(), and 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-test.c.

Referenced by main().

int main ( void  )

Definition at line 73 of file pixelutils-test.c.