FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
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
 

Macros

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

Functions

static uint64_t getSSD (const uint8_t *src1, const 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 AVPixelFormat srcFormat, enum AVPixelFormat 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 AVPixelFormat srcFormat_in, enum AVPixelFormat dstFormat_in)
 
static int fileTest (uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp, enum AVPixelFormat srcFormat_in, enum AVPixelFormat dstFormat_in)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define isGray (   x)
Value:
((x) == AV_PIX_FMT_GRAY8 || \
(x) == AV_PIX_FMT_YA8 || \
(x) == AV_PIX_FMT_GRAY16BE || \
(x) == AV_PIX_FMT_GRAY16LE || \
(x) == AV_PIX_FMT_YA16BE || \

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

Referenced by sws_init_swscale(), sws_setColorspaceDetails(), and swscale().

#define hasChroma (   x)
Value:
(!(isGray(x) || \

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

Referenced by doTest().

#define isALPHA (   x)
#define W   96

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

Referenced by main().

#define H   96

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

Referenced by for(), idct(), loop_filter(), loopfilter_sb(), and main().

Function Documentation

static uint64_t getSSD ( const uint8_t src1,
const uint8_t src2,
int  stride1,
int  stride2,
int  w,
int  h 
)
static

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

Referenced by doTest().

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

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

Referenced by fileTest(), and selfTest().

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

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

Referenced by main().

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

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

Referenced by main().

int main ( int  argc,
char **  argv 
)

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