FFmpeg
Macros | Functions
pixelutils.c File Reference
#include <stdio.h>
#include "libavutil/avassert.h"
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixelutils.c"
#include "libavutil/pixfmt.h"

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 void check_pixfmt_descriptors (void)
 
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 29 of file pixelutils.c.

◆ H1

#define H1   240

Definition at line 30 of file pixelutils.c.

◆ W2

#define W2   640

Definition at line 31 of file pixelutils.c.

◆ H2

#define H2   480

Definition at line 32 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

◆ check_pixfmt_descriptors()

static void check_pixfmt_descriptors ( void  )
static

Definition at line 34 of file pixelutils.c.

Referenced by main().

◆ 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 82 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 106 of file pixelutils.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 121 of file pixelutils.c.

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