#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/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/lfg.h"
#include "libavutil/sfc64.h"
#include "libswscale/swscale.h"
Go to the source code of this file.
|
static av_always_inline int | isALPHA (enum AVPixelFormat pix_fmt) |
|
static uint64_t | getSSD (const uint8_t *src1, const uint8_t *src2, int stride1, int stride2, int w, int h) |
|
static uint64_t | getSSD0 (int ref, const uint8_t *src1, int stride1, 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
◆ hasChroma
◆ isALPHA()
◆ getSSD()
static uint64_t getSSD |
( |
const uint8_t * |
src1, |
|
|
const uint8_t * |
src2, |
|
|
int |
stride1, |
|
|
int |
stride2, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
◆ getSSD0()
static uint64_t getSSD0 |
( |
int |
ref, |
|
|
const uint8_t * |
src1, |
|
|
int |
stride1, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
static |
◆ 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 |
|
) |
| |
◆ prob
◆ prng_state