#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <stdarg.h>
#include "libavutil/cpu.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 "libswscale/swscale.h"
Go to the source code of this file.
|
static uint64_t | getSSD (const uint8_t *src1, const uint8_t *src2, int stride1, int stride2, int w, int h) |
|
static int | doTest (const uint8_t *const 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 (const uint8_t *const ref[4], int refStride[4], int w, int h, enum AVPixelFormat srcFormat_in, enum AVPixelFormat dstFormat_in) |
|
static int | fileTest (const uint8_t *const 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) |
|
◆ isGray
Value:
@ AV_PIX_FMT_GRAY16BE
Y , 16bpp, big-endian.
@ AV_PIX_FMT_YA16BE
16 bits gray, 16 bits alpha (big-endian)
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
@ AV_PIX_FMT_YA16LE
16 bits gray, 16 bits alpha (little-endian)
@ AV_PIX_FMT_GRAY16LE
Y , 16bpp, little-endian.
@ AV_PIX_FMT_YA8
8 bits gray, 8 bits alpha
Definition at line 40 of file swscale.c.
◆ hasChroma
Value:
@ AV_PIX_FMT_MONOBLACK
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb.
@ AV_PIX_FMT_MONOWHITE
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb.
Definition at line 47 of file swscale.c.
◆ isALPHA
Value:
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_RGB32_1
#define AV_PIX_FMT_BGR32_1
Definition at line 51 of file swscale.c.
◆ getSSD()
◆ doTest()
static int doTest |
( |
const uint8_t *const |
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 |
◆ selfTest()
◆ fileTest()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |