#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <stdarg.h>
#include "libavutil/mem.h"
#include "libavutil/avutil.h"
#include "libavutil/lfg.h"
#include "swscale.h"
Go to the source code of this file.
Defines | |
#define | isGray(x) |
#define | hasChroma(x) |
#define | isALPHA(x) |
#define | W 96 |
#define | H 96 |
Functions | |
const char * | sws_format_name (enum PixelFormat format) |
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) |
static void | selfTest (uint8_t *ref[4], int refStride[4], int w, int h) |
int | main (int argc, char **argv) |
#define H 96 |
Definition at line 226 of file swscale-test.c.
Referenced by idct(), init_demo(), main(), pred16x16_plane_compat_c(), and pred8x8_plane_c().
#define hasChroma | ( | x | ) |
Value:
(!( \ isGray(x) \ || (x)==PIX_FMT_MONOBLACK \ || (x)==PIX_FMT_MONOWHITE \ ))
Definition at line 41 of file swscale-test.c.
Referenced by doTest().
#define isALPHA | ( | x | ) |
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 46 of file swscale-test.c.
Referenced by doTest(), ff_yuv2rgb_c_init_tables(), reset_ptr(), and sws_getContext().
#define isGray | ( | x | ) |
Value:
( \ (x)==PIX_FMT_GRAY8 \ || (x)==PIX_FMT_GRAY16BE \ || (x)==PIX_FMT_GRAY16LE \ )
Definition at line 36 of file swscale-test.c.
Referenced by ff_get_unscaled_swscale(), sws_getColorspaceDetails(), and sws_setColorspaceDetails().
#define W 96 |
Definition at line 225 of file swscale-test.c.
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 | |||
) | [static] |
static uint64_t getSSD | ( | uint8_t * | src1, | |
uint8_t * | src2, | |||
int | stride1, | |||
int | stride2, | |||
int | w, | |||
int | h | |||
) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 228 of file swscale-test.c.
static void selfTest | ( | uint8_t * | ref[4], | |
int | refStride[4], | |||
int | w, | |||
int | h | |||
) | [static] |
const char* sws_format_name | ( | enum PixelFormat | format | ) |
Definition at line 153 of file utils.c.
Referenced by doTest(), ff_yuv2packedX_altivec(), ff_yuv2rgb_get_func_ptr(), ff_yuv2rgb_get_func_ptr_bfin(), palToRgbWrapper(), rgbToRgbWrapper(), selfTest(), and sws_getContext().