libswscale/swscale-test.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <stdarg.h>
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/avutil.h"
#include "libavutil/crc.h"
#include "libavutil/pixdesc.h"
#include "libavutil/lfg.h"
#include "swscale.h"

Go to the source code of this file.

Data Structures

struct  Results

Defines

#define isGray(x)
#define hasChroma(x)
#define isALPHA(x)
#define W   96
#define H   96

Functions

static uint64_t getSSD (uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h)
static int doTest (uint8_t *ref[4], int refStride[4], int w, int h, enum PixelFormat srcFormat, enum PixelFormat dstFormat, int srcW, int srcH, int dstW, int dstH, int flags, struct Results *r)
static void selfTest (uint8_t *ref[4], int refStride[4], int w, int h, enum PixelFormat srcFormat_in, enum PixelFormat dstFormat_in)
static int fileTest (uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp, enum PixelFormat srcFormat_in, enum PixelFormat dstFormat_in)
int main (int argc, char **argv)


Define Documentation

#define H   96

Definition at line 336 of file swscale-test.c.

Referenced by idct(), init_demo(), main(), pred16x16_plane_compat(), pred8x8_plane(), and put_image().

#define hasChroma (  ) 

Value:

(!(          \
            isGray(x)               \
        || (x)==PIX_FMT_MONOBLACK   \
        || (x)==PIX_FMT_MONOWHITE   \
    ))

Definition at line 43 of file swscale-test.c.

Referenced by doTest().

#define isALPHA (  ) 

Value:

(           \
           (x)==PIX_FMT_BGR32       \
        || (x)==PIX_FMT_BGR32_1     \
        || (x)==PIX_FMT_RGB32       \
        || (x)==PIX_FMT_RGB32_1     \
        || (x)==PIX_FMT_YUVA420P    \
    )

Definition at line 48 of file swscale-test.c.

Referenced by doTest(), ff_yuv2rgb_c_init_tables(), reset_ptr(), and sws_init_context().

#define isGray (  ) 

#define W   96

Definition at line 335 of file swscale-test.c.


Function Documentation

static int doTest ( uint8_t *  ref[4],
int  refStride[4],
int  w,
int  h,
enum PixelFormat  srcFormat,
enum PixelFormat  dstFormat,
int  srcW,
int  srcH,
int  dstW,
int  dstH,
int  flags,
struct Results r 
) [static]

Definition at line 80 of file swscale-test.c.

Referenced by fileTest(), and selfTest().

static int fileTest ( uint8_t *  ref[4],
int  refStride[4],
int  w,
int  h,
FILE *  fp,
enum PixelFormat  srcFormat_in,
enum PixelFormat  dstFormat_in 
) [static]

Definition at line 285 of file swscale-test.c.

Referenced by main().

static uint64_t getSSD ( uint8_t *  src1,
uint8_t *  src2,
int  stride1,
int  stride2,
int  w,
int  h 
) [static]

Definition at line 56 of file swscale-test.c.

Referenced by doTest().

int main ( int  argc,
char **  argv 
)

Definition at line 338 of file swscale-test.c.

static void selfTest ( uint8_t *  ref[4],
int  refStride[4],
int  w,
int  h,
enum PixelFormat  srcFormat_in,
enum PixelFormat  dstFormat_in 
) [static]

Definition at line 238 of file swscale-test.c.

Referenced by main().


Generated on Fri Oct 26 02:38:22 2012 for FFmpeg by  doxygen 1.5.8