FFmpeg
Macros | Functions | Variables
sw_yuv2rgb.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.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 MAX_LINE_SIZE   1920
 

Functions

static int cmp_off_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy)
 
static int cmp_555_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy)
 
static int cmp_565_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy)
 
static void check_yuv2rgb (int src_pix_fmt)
 
void checkasm_check_sw_yuv2rgb (void)
 

Variables

static const int dst_fmts []
 

Macro Definition Documentation

◆ randomize_buffers

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

Definition at line 31 of file sw_yuv2rgb.c.

◆ MAX_LINE_SIZE

#define MAX_LINE_SIZE   1920

Function Documentation

◆ 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 63 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ cmp_555_by_n()

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

Definition at line 72 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ cmp_565_by_n()

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

Definition at line 87 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ check_yuv2rgb()

static void check_yuv2rgb ( int  src_pix_fmt)
static

Definition at line 102 of file sw_yuv2rgb.c.

Referenced by checkasm_check_sw_yuv2rgb().

◆ checkasm_check_sw_yuv2rgb()

void checkasm_check_sw_yuv2rgb ( void  )

Definition at line 203 of file sw_yuv2rgb.c.

Variable Documentation

◆ dst_fmts

const int dst_fmts[]
static
AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:76
AV_PIX_FMT_BGRA
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:102
rnd
#define rnd()
Definition: checkasm.h:170
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:100
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:101
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:75
AV_WN32
#define AV_WN32(p, v)
Definition: intreadwrite.h:370
size
int size
Definition: twinvq_data.h:10344
AV_PIX_FMT_BGR555
#define AV_PIX_FMT_BGR555
Definition: pixfmt.h:471
AV_PIX_FMT_ARGB
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:99
AV_PIX_FMT_RGB555
#define AV_PIX_FMT_RGB555
Definition: pixfmt.h:466
AV_PIX_FMT_BGR565
#define AV_PIX_FMT_BGR565
Definition: pixfmt.h:470
AV_PIX_FMT_RGB565
#define AV_PIX_FMT_RGB565
Definition: pixfmt.h:465