FFmpeg
Macros | Functions
sw_scale.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale_internal.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf, size)
 
#define LARGEST_INPUT_SIZE   512
 
#define LARGEST_FILTER   16
 
#define LARGEST_INPUT_SIZE   512
 
#define SRC_PIXELS   512
 
#define MAX_FILTER_WIDTH   40
 
#define FILTER_SIZES   6
 
#define HSCALE_PAIRS   2
 
#define LARGEST_INPUT_SIZE   512
 
#define INPUT_SIZES   6
 

Functions

static void yuv2planeX_8_ref (const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
 
static int cmp_off_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy)
 
static void print_data (uint8_t *p, size_t len, size_t offset)
 
static size_t show_differences (uint8_t *a, uint8_t *b, size_t len)
 
static void check_yuv2yuv1 (int accurate)
 
static void check_yuv2yuvX (int accurate)
 
static void check_hscale (void)
 
void checkasm_check_sw_scale (void)
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   buf,
  size 
)
Value:
do { \
int j; \
for (j = 0; j < size; j+=4) \
AV_WN32(buf + j, rnd()); \
} while (0)

Definition at line 32 of file sw_scale.c.

◆ LARGEST_INPUT_SIZE [1/3]

#define LARGEST_INPUT_SIZE   512

◆ LARGEST_FILTER

#define LARGEST_FILTER   16

◆ LARGEST_INPUT_SIZE [2/3]

#define LARGEST_INPUT_SIZE   512

◆ SRC_PIXELS

#define SRC_PIXELS   512

Definition at line 258 of file sw_scale.c.

◆ MAX_FILTER_WIDTH

#define MAX_FILTER_WIDTH   40

◆ FILTER_SIZES

#define FILTER_SIZES   6

◆ HSCALE_PAIRS

#define HSCALE_PAIRS   2

◆ LARGEST_INPUT_SIZE [3/3]

#define LARGEST_INPUT_SIZE   512

◆ INPUT_SIZES

#define INPUT_SIZES   6

Function Documentation

◆ yuv2planeX_8_ref()

static void yuv2planeX_8_ref ( const int16_t *  filter,
int  filterSize,
const int16_t **  src,
uint8_t *  dest,
int  dstW,
const uint8_t *  dither,
int  offset 
)
static

Definition at line 39 of file sw_scale.c.

Referenced by check_yuv2yuvX().

◆ cmp_off_by_n()

static int cmp_off_by_n ( const uint8_t *  ref,
const uint8_t *  test,
size_t  n,
int  accuracy 
)
static

Definition at line 55 of file sw_scale.c.

Referenced by check_yuv2yuv1(), and check_yuv2yuvX().

◆ print_data()

static void print_data ( uint8_t *  p,
size_t  len,
size_t  offset 
)
static

Definition at line 64 of file sw_scale.c.

Referenced by show_differences().

◆ show_differences()

static size_t show_differences ( uint8_t *  a,
uint8_t *  b,
size_t  len 
)
static

Definition at line 81 of file sw_scale.c.

Referenced by check_yuv2yuv1(), and check_yuv2yuvX().

◆ check_yuv2yuv1()

static void check_yuv2yuv1 ( int  accurate)
static

Definition at line 100 of file sw_scale.c.

Referenced by checkasm_check_sw_scale().

◆ check_yuv2yuvX()

static void check_yuv2yuvX ( int  accurate)
static

Definition at line 160 of file sw_scale.c.

Referenced by checkasm_check_sw_scale().

◆ check_hscale()

static void check_hscale ( void  )
static

Definition at line 260 of file sw_scale.c.

Referenced by checkasm_check_sw_scale().

◆ checkasm_check_sw_scale()

void checkasm_check_sw_scale ( void  )

Definition at line 362 of file sw_scale.c.

rnd
#define rnd()
Definition: checkasm.h:169
AV_WN32
#define AV_WN32(p, v)
Definition: intreadwrite.h:370
size
int size
Definition: twinvq_data.h:10344